nova-db-sync install error

asked 2014-08-27 11:24:40 -0500

gherasima gravatar image

updated 2014-08-27 11:26:42 -0500

mpetason gravatar image

Hi all

Centos 6.5 fresh install with RDO it fail at:

Error: /Stage[main]/Nova::Api/Exec[nova-db-sync]: Failed to call refresh: /usr/bin/nova-manage db sync returned 1 instead of one of [0]
Error: /Stage[main]/Nova::Api/Exec[nova-db-sync]: /usr/bin/nova-manage db sync returned 1 instead of one of [0]

Thanks in advance

edit retag flag offensive close merge delete


What says /var/log/nova/nova-api.log ? I would also check other nova logs.

dbaxps gravatar imagedbaxps ( 2014-08-27 11:37:09 -0500 )edit

Thaks for the quick replay

  1. Command failed, please check log for more info
  2. cat: /var/log/nova/nova-api.log: No such file or directory

This is a fresh install

gherasima gravatar imagegherasima ( 2014-08-27 11:43:50 -0500 )edit

Applying [ ERROR ] Applying Puppet manifests [ ERROR ]

ERROR : Error appeared during Puppet run: Error: /Stage[main]/Nova::Api/Exec[nova-db-sync]: Failed to call refresh: /u

gherasima gravatar imagegherasima ( 2014-08-27 11:52:05 -0500 )edit

Have no luck. I Try to install RDO on RHEL7 and CentOS7 but it failed with different errors. Now it failed on CentOS 6 too, should I try RHEL 6?

gherasima gravatar imagegherasima ( 2014-08-27 11:54:09 -0500 )edit

On CentOS 7 has been installed several time OK with workaround

dbaxps gravatar imagedbaxps ( 2014-08-27 11:58:18 -0500 )edit

News: I restart the server and reran the install, ofcourse if failed but I was abble to run nova-manage db sync but it is thinking forever...

gherasima gravatar imagegherasima ( 2014-08-27 11:58:19 -0500 )edit

cat /var/log/nova/nova-manage.log 2014-08-27 16:59:05.334 10903 WARNING nova.openstack.common.db.sqlalchemy.session [-] SQL connection failed. infinite attempts left. 2014-08-27 16:59:15.345 10903 WARNING nova.openstack.common.db.sqlalchemy.session [-] SQL connection failed. infinite attempts left.

gherasima gravatar imagegherasima ( 2014-08-27 11:59:31 -0500 )edit

I read that but it didnt work for me.

gherasima gravatar imagegherasima ( 2014-08-27 12:02:31 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-08-27 11:27:51 -0500

mpetason gravatar image

updated 2014-08-29 17:56:36 -0500

smaffulli gravatar image

See if you can do it manually. Source the openrc file in the root dir and type:

nova-manage db sync

This should give you the actual error output instead of the return code. That will help you understand the root cause.

Also, find the mysql option in nova.conf on the controller.

grep -i connection /etc/nova/nova.conf

Make sure that you can connect to mysql on that port with the same user/password. Nova-manage db sync can take a while to run, let it finish out.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-08-27 11:24:40 -0500

Seen: 3,435 times

Last updated: Aug 29 '14