Skip IPv6 tests for eventlet dns
Eventlet address resolving doesn't support IPv6. This is causing the
gate to fail.
The failure happens when the dnspython package is installed in the
environment. When dnspython is there then eventlet takes over
getaddrinfo, and eventlet's getaddrinfo doesn't support IPv6. If
dnspython isn't there, then the eventlet patching doesn't happen
and IPv6 address resolution works.
It appears that the pip dependencies have recently been updated
so that dnspython gets installed now.
The fix is to skip the 3 tests that force the server to listen
on "::1".
Fixes bug 1176204
Once eventlet is updated, we can add the tests back in. Here's the
eventlet code in question:
e0f578180d/eventlet/support/greendns.py
?at=0.12#cl-166
Change-Id: Ib7a5a5f0dcac82229b7b7fb3df4b1ef141586c5f
This commit is contained in:
parent
3aa0f45466
commit
b874c8f581
|
@ -348,6 +348,11 @@ class TestCase(NoModule, unittest.TestCase):
|
|||
|
||||
@staticmethod
|
||||
def skip_if_no_ipv6():
|
||||
|
||||
# TODO(blk-u): lp 1176204. At this time, eventlet address resolution
|
||||
# doesn't support IPv6. Once it does, remove the next line.
|
||||
raise nose.exc.SkipTest("Eventlet doesn't support IPv6, lp 1176204")
|
||||
|
||||
try:
|
||||
s = socket.socket(socket.AF_INET6)
|
||||
except socket.error as e:
|
||||
|
|
Loading…
Reference in New Issue