Bug 1045009

Summary: Packstack do not create nova database when nova-api service is being configured to run on another node
Product: Red Hat OpenStack Reporter: Gabriel Szasz <gszasz>
Component: openstack-packstackAssignee: Martin Magr <mmagr>
Status: CLOSED CURRENTRELEASE QA Contact: Ami Jeain <ajeain>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.0CC: aortega, derekh, yeylon
Target Milestone: ---   
Target Release: 5.0 (RHEL 7)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-24 20:32:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Contents of /var/tmp/packstack/20131219-071251-QerX0R none

Description Gabriel Szasz 2013-12-19 12:50:57 UTC
Created attachment 838970 [details]
Contents of /var/tmp/packstack/20131219-071251-QerX0R

Description of problem:

Packstack does not create nova table in MySQL database when parameter CONFIG_NOVA_API_HOST was set to different IP and the same IP was added to EXCLUDE_SERVERS parameter.


Version-Release number of selected component (if applicable):

4.0 - 2013-12-18.2 puddle


How reproducible:
100%


Steps to Reproduce:
1. Setup RHEL 6.5
2. Run packstack --gen-answer-file=/root/packstack-answer-file
3. Set CONFIG_NOVA_API_HOST and EXCLUDE_SERVERS to different IP than current host.
3. Run packstack --answer-file=packstack-answer-file

Actual results:
Setup failed with error message:

ERROR : Error appeared during Puppet run: 10.16.96.111_nova.pp
Error: /Stage[main]/Nova::Network/Nova::Manage::Floating[nova-vm-floating]/Nova_floating[nova-vm-floating]: Could not evaluate: Execution of '/usr/bin/nova-manage floating list' returned 1: 2013-12-19 07:20:49.795 24868 DEBUG nova.openstack.common.lockutils [req-fb37350a-69f9-466b-ab75-534c90b37089 None None] Got semaphore "dbapi_backend" lock /usr/lib/python2.6/site-packages/nova/openstack/common/lockutils.py:166
You will find full trace in log /var/tmp/packstack/20131219-071251-QerX0R/manifests/10.16.96.111_nova.pp.log
Please check log file /var/tmp/packstack/20131219-071251-QerX0R/openstack-setup.log for more information

Expected results:
Successful setup

Additional info:
It turned out that the nova database does not contain any tables. After recreating tables manually (with "nova-manage db sync" command) one can rerun packstack without error.

Comment 2 Martin Magr 2014-06-24 20:32:10 UTC
Due to simplification changes CONFIG_NOVA_API_HOST has been removed. I'm closing this bug. In case similar problem appears in current version please feel free to reopen the bug.