yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #01655
[Bug 1157058] Re: netaddr 0.7.5 raises UnboundLocalError
** Changed in: nova
Status: Fix Committed => Fix Released
** Changed in: nova
Milestone: None => grizzly-rc1
--
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/1157058
Title:
netaddr 0.7.5 raises UnboundLocalError
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
Test job http://logs.openstack.org/21491/2/check/gate-nova-
python26/18946/testr_results.html.gz failed with trace:
ft608.12: nova.tests.test_utils.GenericUtilsTestCase.test_get_shortened_ipv6_cidr_StringException: Empty attachments:
pythonlogging:'nova'
stderr
stdout
Traceback (most recent call last):
File "/home/jenkins/workspace/gate-nova-python26/nova/tests/test_utils.py", line 530, in test_get_shortened_ipv6_cidr
"127.0.0.1")
File "/home/jenkins/workspace/gate-nova-python26/.tox/py26/lib/python2.6/site-packages/testtools/testcase.py", line 394, in assertRaises
self.assertThat(our_callable, matcher)
File "/home/jenkins/workspace/gate-nova-python26/.tox/py26/lib/python2.6/site-packages/testtools/testcase.py", line 406, in assertThat
mismatch = matcher.match(matchee)
File "/home/jenkins/workspace/gate-nova-python26/.tox/py26/lib/python2.6/site-packages/testtools/matchers/_exception.py", line 97, in match
mismatch = self.exception_matcher.match(exc_info)
File "/home/jenkins/workspace/gate-nova-python26/.tox/py26/lib/python2.6/site-packages/testtools/matchers/_higherorder.py", line 61, in match
mismatch = matcher.match(matchee)
File "/home/jenkins/workspace/gate-nova-python26/.tox/py26/lib/python2.6/site-packages/testtools/testcase.py", line 386, in match
reraise(*matchee)
File "/home/jenkins/workspace/gate-nova-python26/.tox/py26/lib/python2.6/site-packages/testtools/matchers/_exception.py", line 90, in match
result = matchee()
File "/home/jenkins/workspace/gate-nova-python26/.tox/py26/lib/python2.6/site-packages/testtools/testcase.py", line 846, in __call__
return self._callable_object(*self._args, **self._kwargs)
File "/home/jenkins/workspace/gate-nova-python26/nova/utils.py", line 916, in get_shortened_ipv6_cidr
net = netaddr.IPNetwork(address, version=6)
File "/usr/lib/python2.6/dist-packages/netaddr/ip/__init__.py", line 906, in __init__
implicit_prefix=implicit_prefix, flags=flags)
File "/usr/lib/python2.6/dist-packages/netaddr/ip/__init__.py", line 782, in parse_ip_network
value = ip._value
UnboundLocalError: local variable 'ip' referenced before assignment
This issue is discussed here: https://github.com/drkjam/netaddr/issues/2.
The bug in netaddr was fixed in 0.7.6 on 13th Sep 2011.
Need to require at least this version in pip-requires.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1157058/+subscriptions