Comment 6 for bug 1641136

Revision history for this message
Alexei Sheplyakov (asheplyakov) wrote : Re: nova-{api,scheduler,cert,consoleauth} service fail to start due to a wrong SQL request (or a wrong DB schema?)

> Apparently nova-manage db sync fails, however puppet continues deployment instead of failing or retrying

nova-manage db sync is triggered via refresh:

https://github.com/openstack/puppet-nova/blob/stable/mitaka/manifests/db/sync.pp#L19-L29

and puppet does NOT consider a failed exec as a failure if refreshonly is true, see

https://tickets.puppetlabs.com/browse/PUP-1223
https://tickets.puppetlabs.com/browse/PUP-2280

Perhaps 'nova-db-sync' should use onlyif (with a command which checks if the actual DB version
matches the expected one) instead of refreshonly