Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bz1123301 nova metadata haproxy #336

Merged

Conversation

jguiditta
Copy link
Member

Add listener to haproxy config

@cwolferh
Copy link

cwolferh commented Aug 5, 2014

Re-enabling is causing the following issue with openstack-status for me. Not sure what the issue is yet.

[root@d1a1 ~(openstack_admin)]# openstack-status
== Nova services ==
openstack-nova-api:                     failed
openstack-nova-cert:                    inactive
openstack-nova-compute:                 inactive  (disabled on boot)
openstack-nova-network:                 inactive  (disabled on boot)
openstack-nova-scheduler:               inactive
openstack-nova-volume:                  inactive  (disabled on boot)
openstack-nova-conductor:               inactive
...
== Nova managed services ==
ERROR: HTTPConnectionPool(host='192.168.201.66', port=8774): Max retries exceeded with url: /v2/5d8d4790b5dd4360827cf18713b26b21/os-services
== Nova networks ==
ERROR: HTTPConnectionPool(host='192.168.201.66', port=8774): Max retries exceeded with url: /v2/5d8d4790b5dd4360827cf18713b26b21/os-networks
== Nova instance flavors ==
ERROR: HTTPConnectionPool(host='192.168.201.66', port=8774): Max retries exceeded with url: /v2/5d8d4790b5dd4360827cf18713b26b21/flavors/detail
== Nova instances ==
ERROR: HTTPConnectionPool(host='192.168.201.66', port=8774): Max retries exceeded with url: /v2/5d8d4790b5dd4360827cf18713b26b21/servers/detail

@cwolferh
Copy link

cwolferh commented Aug 5, 2014

Further debugging:

# From nova-api.log:
014-08-05 16:03:41.894 28810 INFO nova.osapi_compute.wsgi.server [-] (28810) wsgi starting up on http://192.168.200.110:8774/
2014-08-05 16:03:41.896 28811 INFO nova.osapi_compute.wsgi.server [-] (28811) wsgi starting up on http://192.168.200.110:8774/
2014-08-05 16:03:42.005 28781 ERROR nova.wsgi [-] Could not bind to 0.0.0.0:8775
2014-08-05 16:03:42.006 28781 CRITICAL nova [-] error: [Errno 98] Address already in use

It looks like metadata_host in /etc/nova/nova.conf needs to be defined to avoid this error (i.e. bind on just the backend_ip instead of 0.0.0.0).

@cwolferh
Copy link

@jguiditta , I was able to get this PR to work with the addition of this commit: cwolferh@73a342a (the branch it is coming from is https://github.com/cwolferh/astapor/commits/bz1123301_nova-metadata-haproxy_testing) -- so maybe just cherry-pick that commit onto your branch. Note that I called out the wrong config value in my last comment; it is actually metadata_listen, not metadata_host.

Tested on nova network and neutron HA controllers, and non-HA nova network controller.

jguiditta and others added 2 commits August 13, 2014 09:22
…aproxy.cfg

https://bugzilla.redhat.com/show_bug.cgi?id=1123301

This was already in the puppet, but had been disabled for a previous release.
This patch re-enables it to see if it now works as expected.
https://bugzilla.redhat.com/show_bug.cgi?id=1123301

Otherwise openstack-nova-api attempts to listen on 0.0.0.0,
causing the error:

ERROR nova.wsgi [-] Could not bind to 0.0.0.0:8775
CRITICAL nova [-] error: [Errno 98] Address already in use

(cherry picked from commit 73a342a)
@jguiditta
Copy link
Member Author

@cwolferh pulled in your commit, not sure who should merge it now though...

@cwolferh
Copy link

Merging with blessing from morazi.

cwolferh added a commit that referenced this pull request Aug 13, 2014
@cwolferh cwolferh merged commit 60db8e9 into redhat-openstack:master Aug 13, 2014
@jguiditta jguiditta deleted the bz1123301-nova-metadata-haproxy branch February 3, 2015 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants