Bug 909441
| Summary: | packstack fails to setup nova db | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Jon Thomas <jthomas> | ||||
| Component: | openstack-packstack | Assignee: | Martin Magr <mmagr> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | Nir Magnezi <nmagnezi> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 2.0 (Folsom) | CC: | aortega, derekh, mmagr, ykaul | ||||
| Target Milestone: | --- | Keywords: | Triaged | ||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2013-02-14 21:17:02 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: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Jon Thomas
2013-02-08 19:34:01 UTC
Created attachment 695218 [details]
packstack output, ifconfig, mysql users table
oh, the above should say that after the packstack run, the nova db gets created but no tables get created. # rpm -qa | grep openstack openstack-nova-console-2012.2.2-9.el6ost.noarch openstack-glance-2012.2.1-5.el6ost.noarch openstack-quantum-metaplugin-2012.2.1-6.el6ost.noarch openstack-swift-proxy-1.7.4-7.el6ost.noarch python-django-openstack-auth-1.0.2-3.1.el6.noarch openstack-swift-1.7.4-7.el6ost.noarch openstack-nova-volume-2012.2.2-9.el6ost.noarch openstack-glance-doc-2012.2.1-5.el6ost.noarch openstack-quantum-linuxbridge-2012.2.1-6.el6ost.noarch openstack-keystone-2012.2.1-2.el6ost.noarch openstack-swift-plugin-swift3-1.0.0-0.20120711git.el6.noarch openstack-quantum-2012.2.1-6.el6ost.noarch openstack-nova-compute-2012.2.2-9.el6ost.noarch openstack-nova-cert-2012.2.2-9.el6ost.noarch openstack-cinder-doc-2012.2.1-7.el6ost.noarch openstack-quantum-nec-2012.2.1-6.el6ost.noarch openstack-quantum-ryu-2012.2.1-6.el6ost.noarch openstack-swift-account-1.7.4-7.el6ost.noarch openstack-swift-doc-1.7.4-7.el6ost.noarch openstack-nova-common-2012.2.2-9.el6ost.noarch openstack-nova-api-2012.2.2-9.el6ost.noarch openstack-nova-objectstore-2012.2.2-9.el6ost.noarch openstack-cinder-2012.2.1-7.el6ost.noarch openstack-nova-doc-2012.2.2-9.el6ost.noarch openstack-quantum-nicira-2012.2.1-6.el6ost.noarch openstack-packstack-2012.2.2-0.8.dev346.el6ost.noarch openstack-swift-container-1.7.4-7.el6ost.noarch openstack-keystone-doc-2012.2.1-2.el6ost.noarch openstack-utils-2012.2-6.el6.noarch openstack-nova-scheduler-2012.2.2-9.el6ost.noarch openstack-nova-novncproxy-0.4-2.el6.noarch openstack-quantum-cisco-2012.2.1-6.el6ost.noarch openstack-dashboard-2012.2.1-3.el6ost.noarch openstack-nova-network-2012.2.2-9.el6ost.noarch openstack-nova-2012.2.2-9.el6ost.noarch openstack-quantum-openvswitch-2012.2.1-6.el6ost.noarch openstack-swift-object-1.7.4-7.el6ost.noarch So apparently this command will work to create the tables after the packstack failure. runuser -s /bin/sh nova -c "nova-manage db sync" It looks like the problem here is that nova-manage is using a different config than /etc/nova/nova.conf. $ nova-manage config list | grep mysql sql_connection = mysql://nova:1f20be4bcf3946fd.2.113/nova $ grep mysql /etc/nova/nova.conf sql_connection=mysql://nova:nova_default_password.0.1/nova ok, this was fixed by rm /root/nova.conf I had put an old nova.conf version there as a backup from a previous install. I can't find any documentation for this, but apparently nova-manage looks for this file and overrides /etc/nova/nova.conf. You can see what it;s using by: nova-manage config list | grep config_file |