listening on ipv6 fails

Bug #1394328 reported by Harm Weites
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
Fix Released
Medium
Pradeep Kumar Singh

Bug Description

When specifying an ipv6 api_host in the [service:api] section (like ::1) I see the following in my logs:

2014-11-19 20:09:32.759 15401 ERROR designate.openstack.common.threadgroup [-] (-3, 'Lookup timed out')
2014-11-19 20:09:32.759 15401 TRACE designate.openstack.common.threadgroup Traceback (most recent call last):
2014-11-19 20:09:32.759 15401 TRACE designate.openstack.common.threadgroup File "/usr/lib/python2.7/site-packages/designate/openstack/common/threadgroup.py", line 125, in wait
2014-11-19 20:09:32.759 15401 TRACE designate.openstack.common.threadgroup x.wait()
2014-11-19 20:09:32.759 15401 TRACE designate.openstack.common.threadgroup File "/usr/lib/python2.7/site-packages/designate/openstack/common/threadgroup.py", line 47, in wait
2014-11-19 20:09:32.759 15401 TRACE designate.openstack.common.threadgroup return self.thread.wait()
2014-11-19 20:09:32.759 15401 TRACE designate.openstack.common.threadgroup File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 173, in wait
2014-11-19 20:09:32.759 15401 TRACE designate.openstack.common.threadgroup return self._exit_event.wait()
2014-11-19 20:09:32.759 15401 TRACE designate.openstack.common.threadgroup File "/usr/lib/python2.7/site-packages/eventlet/event.py", line 121, in wait
2014-11-19 20:09:32.759 15401 TRACE designate.openstack.common.threadgroup return hubs.get_hub().switch()
2014-11-19 20:09:32.759 15401 TRACE designate.openstack.common.threadgroup File "/usr/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 293, in switch
2014-11-19 20:09:32.759 15401 TRACE designate.openstack.common.threadgroup return self.greenlet.switch()
2014-11-19 20:09:32.759 15401 TRACE designate.openstack.common.threadgroup File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 212, in main
2014-11-19 20:09:32.759 15401 TRACE designate.openstack.common.threadgroup result = function(*args, **kwargs)
2014-11-19 20:09:32.759 15401 TRACE designate.openstack.common.threadgroup File "/usr/lib/python2.7/site-packages/designate/openstack/common/service.py", line 490, in run_service
2014-11-19 20:09:32.759 15401 TRACE designate.openstack.common.threadgroup service.start()
2014-11-19 20:09:32.759 15401 TRACE designate.openstack.common.threadgroup File "/usr/lib/python2.7/site-packages/designate/openstack/deprecated/wsgi.py", line 132, in start
2014-11-19 20:09:32.759 15401 TRACE designate.openstack.common.threadgroup self._socket = self._get_socket(self._host, self._port, self._backlog)
2014-11-19 20:09:32.759 15401 TRACE designate.openstack.common.threadgroup File "/usr/lib/python2.7/site-packages/designate/openstack/deprecated/wsgi.py", line 91, in _get_socket
2014-11-19 20:09:32.759 15401 TRACE designate.openstack.common.threadgroup socket.SOCK_STREAM)[0]
2014-11-19 20:09:32.759 15401 TRACE designate.openstack.common.threadgroup File "/usr/lib/python2.7/site-packages/eventlet/support/greendns.py", line 184, in getaddrinfo
2014-11-19 20:09:32.759 15401 TRACE designate.openstack.common.threadgroup rrset = resolve(host)
2014-11-19 20:09:32.759 15401 TRACE designate.openstack.common.threadgroup File "/usr/lib/python2.7/site-packages/eventlet/support/greendns.py", line 140, in resolve
2014-11-19 20:09:32.759 15401 TRACE designate.openstack.common.threadgroup raise socket.gaierror(error)
2014-11-19 20:09:32.759 15401 TRACE designate.openstack.common.threadgroup gaierror: (-3, 'Lookup timed out')
2014-11-19 20:09:32.759 15401 TRACE designate.openstack.common.threadgroup

While this looks like a perfectly fine issue in greendns.py (see [1]), is it possible to change to something else? Other Openstack projects listen perfectly fine for IPv6.

I'm asuming this affects the others services as well, though I only verified/tested with api.

[1] https://github.com/eventlet/eventlet/blob/master/eventlet/support/greendns.py#L220

Kiall Mac Innes (kiall)
Changed in designate:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Harm Weites (harmw) wrote :

I noticed Glance fixed the same issue a while back: https://bugs.launchpad.net/glance/+bug/1331885

Changed in designate:
assignee: nobody → pradeep kumar singh (pradeep-singh-u)
Kiall Mac Innes (kiall)
tags: added: low-hanging-fruit
Revision history for this message
Pradeep Kumar Singh (pradeep-singh-u) wrote :

Hi Kiall,

I have tested this bug and it seems it is fixed by two things:
1) by having eventlet version >0.17.0
     https://github.com/eventlet/eventlet/commit/a6ce444265d36fb23361809d40da73caf4864487
2) if we don't upgrade eventlet version and keep it to 0.16.1, then your patch fixes this too,
     https://review.openstack.org/#/c/191496/

Can we close this issue?

Revision history for this message
Kiall Mac Innes (kiall) wrote :

Yes, thanks pradeep for validating this one!

Changed in designate:
milestone: none → liberty-2
status: Triaged → Fix Released
Thierry Carrez (ttx)
Changed in designate:
milestone: liberty-2 → 1.0.0
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.