nova-cloud-controller next charm fails to set neutron.conf bind_host correctly

Bug #1377003 reported by Brad Marshall
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nova-cloud-controller (Juju Charms Collection)
Fix Released
High
James Page

Bug Description

We're setting up Openstack with a 3 node HA cluster for the infrastructure, using Trusty and icehost, and revno 105 of the nova-cloud-controller next charm doesn't set bind_host correctly.

An extract of the /etc/neutron/neutron.conf file is:

[DEFAULT]
state_path = /var/lib/neutron
lock_path = $state_path/lock
bind_host =

which causes in the server.log:

2014-10-03 04:05:07.623 10072 ERROR neutron.service [-] Unrecoverable error: please check log for details.
2014-10-03 04:05:07.623 10072 TRACE neutron.service Traceback (most recent call last):
2014-10-03 04:05:07.623 10072 TRACE neutron.service File "/usr/lib/python2.7/dist-packages/neutron/service.py", line 105, in serve_wsgi
2014-10-03 04:05:07.623 10072 TRACE neutron.service service.start()
2014-10-03 04:05:07.623 10072 TRACE neutron.service File "/usr/lib/python2.7/dist-packages/neutron/service.py", line 74, in start
2014-10-03 04:05:07.623 10072 TRACE neutron.service self.wsgi_app = _run_wsgi(self.app_name)
2014-10-03 04:05:07.623 10072 TRACE neutron.service File "/usr/lib/python2.7/dist-packages/neutron/service.py", line 179, in _run_wsgi
2014-10-03 04:05:07.623 10072 TRACE neutron.service workers=cfg.CONF.api_workers)
2014-10-03 04:05:07.623 10072 TRACE neutron.service File "/usr/lib/python2.7/dist-packages/neutron/wsgi.py", line 209, in start
2014-10-03 04:05:07.623 10072 TRACE neutron.service backlog=backlog)
2014-10-03 04:05:07.623 10072 TRACE neutron.service File "/usr/lib/python2.7/dist-packages/neutron/wsgi.py", line 182, in _get_socket
2014-10-03 04:05:07.623 10072 TRACE neutron.service eventlet.sleep(0.1)
2014-10-03 04:05:07.623 10072 TRACE neutron.service File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/excutils.py", line 82, in __exit__
2014-10-03 04:05:07.623 10072 TRACE neutron.service six.reraise(self.type_, self.value, self.tb)
2014-10-03 04:05:07.623 10072 TRACE neutron.service File "/usr/lib/python2.7/dist-packages/neutron/wsgi.py", line 174, in _get_socket
2014-10-03 04:05:07.623 10072 TRACE neutron.service family=family)
2014-10-03 04:05:07.623 10072 TRACE neutron.service File "/usr/lib/python2.7/dist-packages/eventlet/convenience.py", line 38, in listen
2014-10-03 04:05:07.623 10072 TRACE neutron.service sock.bind(addr)
2014-10-03 04:05:07.623 10072 TRACE neutron.service File "/usr/lib/python2.7/socket.py", line 224, in meth
2014-10-03 04:05:07.623 10072 TRACE neutron.service return getattr(self._sock,name)(*args)
2014-10-03 04:05:07.623 10072 TRACE neutron.service error: [Errno 99] Cannot assign requested address
2014-10-03 04:05:07.623 10072 TRACE neutron.service
2014-10-03 04:05:07.624 10072 CRITICAL neutron [-] [Errno 99] Cannot assign requested address

If I set the bind_host by hand to 0.0.0.0, the neutron-server daemon restarts correctly - or at least, no longer complains about the "Cannot assign requested address."

Please let us know if you need any further information.

Revision history for this message
James Page (james-page) wrote :

This is a regression from the recently landed prefer-ipv6 work.

Changed in nova-cloud-controller (Juju Charms Collection):
assignee: nobody → James Page (james-page)
status: New → In Progress
James Page (james-page)
Changed in nova-cloud-controller (Juju Charms Collection):
importance: Undecided → High
Changed in nova-cloud-controller (Juju Charms Collection):
status: In Progress → Fix Committed
tags: added: openstack
Changed in nova-cloud-controller (Juju Charms Collection):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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