Ask Your Question
0

Nova-manage can't sync DB

asked 2013-06-18 15:02:38 -0500

ecstaticemil gravatar image

I am trying to set up an two node openstack, on fresh ubuntu 12.04 installations. As beginner following strictly the guide at http://openstack-folsom-install-guide.readthedocs.org/en/latest/ (http://openstack-folsom-install-guide...) , only replacing the ip's from the both nodes.

The controller/network-node (192.168.80.151) seems to be okay/ready/no errors, the compute-node (cn01, 192.168.80.152) throws some errors during setup of nova....

After configuration holding tight to the guide (see at the bottom), first errors (my fix-intentions and following error further down the page) appeared, while trying to "nova-manage db sync":

    """""" error #1 """""""""
    root@cn01:~# nova-manage db sync
    2013-06-18 15:30:31 DEBUG nova.utils [-] backend <module 'nova.db.sqlalchemy.migration' from '/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/migration.pyc'> from (pid=6360) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:663
    Command failed, please check log for more info
    2013-06-18 15:30:31 CRITICAL nova [-] <VerNum(161)>
    2013-06-18 15:30:31 TRACE nova Traceback (most recent call last):
    2013-06-18 15:30:31 TRACE nova   File "/usr/bin/nova-manage", line 1746, in <module>
    2013-06-18 15:30:31 TRACE nova     main()
    2013-06-18 15:30:31 TRACE nova   File "/usr/bin/nova-manage", line 1733, in main
    2013-06-18 15:30:31 TRACE nova     fn(*fn_args, **fn_kwargs)
    2013-06-18 15:30:31 TRACE nova   File "/usr/bin/nova-manage", line 1102, in sync
    2013-06-18 15:30:31 TRACE nova     return migration.db_sync(version)
    2013-06-18 15:30:31 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/db/migration.py", line 30, in db_sync
    2013-06-18 15:30:31 TRACE nova     return IMPL.db_sync(version=version)
    2013-06-18 15:30:31 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/migration.py", line 53, in db_sync
    2013-06-18 15:30:31 TRACE nova     versioning_api.upgrade(FLAGS.sql_connection, repo_path, version)
    2013-06-18 15:30:31 TRACE nova   File "/usr/lib/python2.7/dist-packages/migrate/versioning/api.py", line 186, in upgrade
    2013-06-18 15:30:31 TRACE nova     return _migrate(url, repository, version, upgrade=True, err=err, **opts)
    2013-06-18 15:30:31 TRACE nova   File "<string>", line 2, in _migrate
    2013-06-18 15:30:31 TRACE nova   File "/usr/lib/python2.7/dist-packages/migrate/versioning/util/__init__.py", line 159, in with_engine
    2013-06-18 15:30:31 TRACE nova     return f(*a, **kw)
    2013-06-18 15:30:31 TRACE nova   File "/usr/lib/python2.7/dist-packages/migrate/versioning/api.py", line 345, in _migrate
    2013-06-18 15:30:31 TRACE nova     changeset = schema.changeset(version)
    2013-06-18 15:30:31 TRACE nova   File "/usr/lib/python2.7/dist-packages/migrate/versioning/schema.py", line 80, in changeset
    2013-06-18 15:30:31 TRACE nova     changeset = self.repository.changeset(database, start_ver, version)
    2013-06-18 15:30:31 TRACE nova   File "/usr/lib/python2.7/dist-packages/migrate/versioning/repository.py", line 225, in changeset
    2013-06-18 15:30:31 TRACE nova     changes = [self.version(v).script(database, op) for v in versions]
    2013-06-18 15:30:31 TRACE nova   File "/usr/lib/python2.7/dist-packages/migrate/versioning/repository.py", line 189, in version
    2013-06-18 ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
1

answered 2013-06-20 08:39:59 -0500

liyingjun gravatar image

Seems like you use a wrong sql ip address in nova.conf

sql_connection=mysql://novaUser:novaPass@10.32.14.232/nova

edit flag offensive delete link more
0

answered 2013-06-20 09:00:04 -0500

ecstaticemil gravatar image

Thanks Liyingjun, that solved my question.

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: 2013-06-18 15:02:38 -0500

Seen: 1,884 times

Last updated: Jun 20 '13