Ask Your Question
2

ironic-dbsync create_schema shows error

asked 2014-11-27 22:24:34 -0500

rice gravatar image

updated 2014-11-28 00:19:50 -0500

Hi,
After I install the devstack,
http://docs.openstack.org/developer/devstack/guides/multinode-lab.html (http://docs.openstack.org/developer/d...)
I try to install bare metal service.
http://docs.openstack.org/developer/ironic/deploy/install-guide.html (http://docs.openstack.org/developer/i...)

When I create the database tables, it shows error:

root@myhost:~# ironic-dbsync --config-file /path/to/ironic.conf create_schema
usage: ironic-dbsync [-h] [--config-dir DIR] [--config-file PATH] [--debug]
[--log-config-append PATH]
[--log-date-format DATE_FORMAT] [--log-dir LOG_DIR]
[--log-file PATH] [--log-format FORMAT] [--nodebug]
[--nouse-syslog] [--noverbose]
[--syslog-log-facility SYSLOG_LOG_FACILITY]
[--use-syslog] [--verbose] [--version]
{upgrade,downgrade,stamp,revision,version} ...
ironic-dbsync: error: argument command: invalid choice: 'create_schema' (choose from 'upgrade', 'downgrade', 'stamp', 'revision', 'version')

Here is my ironic-dbsync version:
root@myhost:~# ironic-dbsync --version
2014.1.rc1

edit retag flag offensive close merge delete

Comments

I am also having the same issue.

ironic gravatar imageironic ( 2014-12-16 18:53:11 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-08-13 13:38:11 -0500

I had the same problem, but I could continue the tutorial replacing create_schema for update "ironic-dbsync --config-file /path/to/ironic.conf update". The "update" created the tables into the ironic db.

edit flag offensive delete link more

Comments

"update" is not available in the available options. I hope, its "upgrade" .

I hope documentation needs to updated .

Venkatesh6114 gravatar imageVenkatesh6114 ( 2017-02-21 07:27:55 -0500 )edit
0

answered 2014-12-11 13:21:57 -0500

afaranha gravatar image

Same issue here. I installed devstack with neutron on my machine and try to install baremetal following the guide and stoped at the same place :/

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-11-27 22:24:34 -0500

Seen: 196 times

Last updated: Aug 13 '15