nova-db-sync install error

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

gherasima gravatar image

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

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 -0600 )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 -0600 )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 -0600 )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 -0600 )edit

On CentOS 7 has been installed several time OK with workaround

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

1 answer

Sort by ยป oldest newest most voted

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

mpetason gravatar image

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

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 -0600

Seen: 3,647 times

Last updated: Aug 29 '14