Bug 1045009 - Packstack do not create nova database when nova-api service is being configured to run on another node
Summary: Packstack do not create nova database when nova-api service is being configur...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-packstack
Version: 4.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 5.0 (RHEL 7)
Assignee: Martin Magr
QA Contact: Ami Jeain
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-19 12:50 UTC by Gabriel Szasz
Modified: 2014-09-08 05:42 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-24 20:32:10 UTC
Target Upstream Version:


Attachments (Terms of Use)
Contents of /var/tmp/packstack/20131219-071251-QerX0R (11.50 KB, application/x-gzip)
2013-12-19 12:50 UTC, Gabriel Szasz
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.