yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #83175
[Bug 1883885] Re: ipv6 wsgi unit tests fails with "[Errno 99] Cannot assign requested address"
Reviewed: https://review.opendev.org/736167
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=01e3c8778d8f3db19e7366201a9730f9316b2552
Submitter: Zuul
Branch: master
commit 01e3c8778d8f3db19e7366201a9730f9316b2552
Author: Balazs Gibizer <balazs.gibizer@xxxxxxxx>
Date: Wed Jun 17 13:50:34 2020 +0200
Extend is_ipv6_supported() to cover more error cases
It seems that with certain host configuration the ipv6 wsgi tests are
failing as the test only skipped if no ipv6 interface is available but
it does not check if the test will be able to bind to a port on that
interface. So this patch extends the skip criteria by checking if
binding is possible.
Change-Id: Iffea0586f02e8d4020cadc8c513bafe984e07a6e
Closes-Bug: #1883885
** Changed in: nova
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1883885
Title:
ipv6 wsgi unit tests fails with "[Errno 99] Cannot assign requested
address"
Status in OpenStack Compute (nova):
Fix Released
Bug description:
On my recently upgraded Debian SID the I see the following nova unit
test failure. The same failure does not happen on an ubuntu 18.04
machine.
nova.tests.unit.test_service.TestWSGIService.test_service_random_port_with_ipv6
-------------------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/home/gibizer/upstream/git/nova/.tox/py38/lib/python3.8/site-packages/mock/mock.py", line 1330, in patched
return func(*args, **keywargs)
File "/home/gibizer/upstream/git/nova/nova/tests/unit/test_service.py", line 323, in test_service_random_port_with_ipv6
test_service = service.WSGIService("test_service")
File "/home/gibizer/upstream/git/nova/nova/service.py", line 365, in __init__
self.server = wsgi.Server(name,
File "/home/gibizer/upstream/git/nova/nova/wsgi.py", line 93, in __init__
self._socket = eventlet.listen(bind_addr, family, backlog=backlog)
File "/home/gibizer/upstream/git/nova/.tox/py38/lib/python3.8/site-packages/eventlet/convenience.py", line 78, in listen
sock.bind(addr)
OSError: [Errno 99] Cannot assign requested address
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1883885/+subscriptions
References