Installing the Nova Controller Services in OpenStack Installation Guide for Red Hat Enterprise Linux, CentOS, and Fedora  - havana

Bug #1247323 reported by Ian Pilcher
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Fix Released
Undecided
Lana

Bug Description

I ran into a problem when creating the network:

[root@controller ~]# nova network-create vmnet --fixed-range-v4=172.31.249.64/26 --bridge-interface=br100 --multi-host=T
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-ff04b570-2a3f-4874-9502-2161a3532c1f)

/var/log/nova/api.log (on the controller) contained:

nova/api.log:2013-11-01 19:09:59.613 8487 ERROR nova.api.openstack [req-bd9abc19-e3fa-43a6-8ea0-dcc6f8d7264b 4872804ba93d4c40bbd752608f8726a5 9d1efb2fbc3c4ae6b1050f631162ea88] Caught error: Timeout while waiting on RPC response - topic: "network", RPC method: "create_networks" info: "<unknown>"

lsof on the compute node showed that nova-network did not actually have any TCP connections open, and /var/log/nova/network.log (on the compute node) was full of:

2013-11-01 21:23:16.886 2249 WARNING nova.openstack.common.db.sqlalchemy.session [req-9fc0ca4d-5748-4ca1-baa0-bbef4f694941 None None] SQL connection failed. infinite attempts left.

I tracked this down to the fact that /etc/nova/nova.conf contained:

[database]
...
connection=mysql://nova:NOVA_DBPASS@localhost/nova

This obviously works on the controller but not on the compute node. (I had scp'ed nova.conf over.) I'm not sure how this got set, but changing it to use the hostname of the controller and restarting nova-network on the compute node appears to make things work:

openstack-config --set /etc/nova/nova.conf database connection mysql://nova:NOVA_DBPASS@controller/nova

-----------------------------------
Built: 2013-11-01T23:01:49 00:00
git SHA: 0dd2d310b7acfe1aa0079286c36ba06b8168f264
URL: http://docs.openstack.org/havana/install-guide/install/yum/content/nova-controller.html
source File: file:/home/jenkins/workspace/openstack-install-deploy-guide-fedora/doc/install-guide/section_nova-controller.xml
xml:id: nova-controller

Revision history for this message
Ian Pilcher (arequipeno) wrote :

Could "openstack-db --init" be setting the database URI back to localhost?

tags: added: install-guide
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-manuals (master)

Fix proposed to branch: master
Review: https://review.openstack.org/55783

Changed in openstack-manuals:
assignee: nobody → Lana (loquacity)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-manuals (master)

Reviewed: https://review.openstack.org/55783
Committed: http://github.com/openstack/openstack-manuals/commit/7d39198c1f5dd05af6d4b368c78f4fee3532a99d
Submitter: Jenkins
Branch: master

commit 7d39198c1f5dd05af6d4b368c78f4fee3532a99d
Author: Lana Brindley <email address hidden>
Date: Mon Nov 11 14:55:02 2013 +1000

    Removed instructions to copy .conf files

    Bug 1247323 states a requirement to remove the
    instructions to copy .conf files between the controller and compute
    nodes. Bug 1245968 mentions this as a possible cause of the issue.
    This patch progresses both bugs, but resolves neither. Also fixes for
    some minor layout and wording issues.

    Change-Id: Ia92fbaf9152df561aa38dac4c91e9f38bd425964
    backport: havana
    Partial-Bug: #1247323
    Partial-Bug: #1245968

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-manuals (stable/havana)

Fix proposed to branch: stable/havana
Review: https://review.openstack.org/56137

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-manuals (stable/havana)

Reviewed: https://review.openstack.org/56137
Committed: http://github.com/openstack/openstack-manuals/commit/0bb7f55597714fc04970440f288c148087116fdb
Submitter: Jenkins
Branch: stable/havana

commit 0bb7f55597714fc04970440f288c148087116fdb
Author: Lana Brindley <email address hidden>
Date: Mon Nov 11 14:55:02 2013 +1000

    Removed instructions to copy .conf files

    Bug 1247323 states a requirement to remove the
    instructions to copy .conf files between the controller and compute
    nodes. Bug 1245968 mentions this as a possible cause of the issue.
    This patch progresses both bugs, but resolves neither. Also fixes for
    some minor layout and wording issues.

    Change-Id: Ia92fbaf9152df561aa38dac4c91e9f38bd425964
    backport: havana
    Partial-Bug: #1247323
    Partial-Bug: #1245968
    (cherry picked from commit 7d39198c1f5dd05af6d4b368c78f4fee3532a99d)

tags: added: in-stable-havana
Anne Gentle (annegentle)
Changed in openstack-manuals:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.