yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #51387
[Bug 1584614] Re: tox py27 unit test for neutron-vpnaas is failed
Can't reproduce neither when executing the whole suite nor when running
just the test case you mentioned. For master branch.
** Changed in: neutron
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1584614
Title:
tox py27 unit test for neutron-vpnaas is failed
Status in neutron:
Invalid
Bug description:
The neutron-vpnaas py27 unit test case is failed:
"neutron_vpnaas.tests.unit.services.vpn.device_drivers.test_ipsec.TestOpenSwanProcess.test__get_nexthop_fqdn_peer_addr_is_not_resolved"
--------------------
stable/kilo branch:
--------------------
==============================
Failed 1 tests - output below:
==============================
neutron_vpnaas.tests.unit.services.vpn.device_drivers.test_ipsec.TestOpenSwanProcess.test__get_nexthop_fqdn_peer_addr_is_not_resolved
-------------------------------------------------------------------------------------------------------------------------------------
Captured pythonlogging:
~~~~~~~~~~~~~~~~~~~~~~~
2016-05-23 14:57:12,345 ERROR [neutron.agent.linux.utils]
Command: ['sudo', 'ip', 'netns', 'exec', '<ANY>', 'ip', 'route', 'get', '183.207.232.253']
Exit code: 1
Stdin:
Stdout:
Stderr: Cannot open network namespace "<ANY>": No such file or directory
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "neutron_vpnaas/tests/unit/services/vpn/device_drivers/test_ipsec.py", line 635, in test__get_nexthop_fqdn_peer_addr_is_not_resolved
'fake-conn-id')
File "/home/zhaoy/projects/openstack-github/neutron-vpnaas/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 434, in assertRaises
self.assertThat(our_callable, matcher)
File "/home/zhaoy/projects/openstack-github/neutron-vpnaas/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 445, in assertThat
mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
File "/home/zhaoy/projects/openstack-github/neutron-vpnaas/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 495, in _matchHelper
mismatch = matcher.match(matchee)
File "/home/zhaoy/projects/openstack-github/neutron-vpnaas/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 108, in match
mismatch = self.exception_matcher.match(exc_info)
File "/home/zhaoy/projects/openstack-github/neutron-vpnaas/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
mismatch = matcher.match(matchee)
File "/home/zhaoy/projects/openstack-github/neutron-vpnaas/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 426, in match
reraise(*matchee)
File "/home/zhaoy/projects/openstack-github/neutron-vpnaas/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
result = matchee()
File "/home/zhaoy/projects/openstack-github/neutron-vpnaas/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 982, in __call__
return self._callable_object(*self._args, **self._kwargs)
File "neutron_vpnaas/services/vpn/device_drivers/ipsec.py", line 392, in _get_nexthop
routes = self._execute(['ip', 'route', 'get', ip_addr])
File "neutron_vpnaas/services/vpn/device_drivers/ipsec.py", line 339, in _execute
extra_ok_codes=extra_ok_codes)
File "/home/zhaoy/projects/openstack-github/neutron-vpnaas/.tox/py27/src/neutron/neutron/agent/linux/ip_lib.py", line 620, in execute
log_fail_as_error=log_fail_as_error, **kwargs)
File "/home/zhaoy/projects/openstack-github/neutron-vpnaas/.tox/py27/src/neutron/neutron/agent/linux/utils.py", line 137, in execute
raise RuntimeError(m)
RuntimeError:
Command: ['sudo', 'ip', 'netns', 'exec', '<ANY>', 'ip', 'route', 'get', '183.207.232.253']
Exit code: 1
Stdin:
Stdout:
Stderr: Cannot open network namespace "<ANY>": No such file or directory
--------------------
master branch:
--------------------
# tox -e py27 neutron_vpnaas.tests.unit.services.vpn.device_drivers.test_ipsec.TestOpenSwanProcess.test__get_nexthop_fqdn_peer_addr_is_not_resolved
...
{0} neutron_vpnaas.tests.unit.services.vpn.device_drivers.test_ipsec.TestOpenSwanProcess.test__get_nexthop_fqdn_peer_addr_is_not_resolved [0.339711s] ... FAILED
==============================
Failed 1 tests - output below:
==============================
neutron_vpnaas.tests.unit.services.vpn.device_drivers.test_ipsec.TestOpenSwanProcess.test__get_nexthop_fqdn_peer_addr_is_not_resolved
-------------------------------------------------------------------------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "neutron_vpnaas/tests/unit/services/vpn/device_drivers/test_ipsec.py", line 1197, in test__get_nexthop_fqdn_peer_addr_is_not_resolved
'fake-conn-id')
File "/home/zhaoy/projects/openstack-github/neutron-vpnaas/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 485, in assertRaises
self.assertThat(our_callable, matcher)
File "/home/zhaoy/projects/openstack-github/neutron-vpnaas/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 498, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: <bound method OpenSwanProcess._get_nexthop of <neutron_vpnaas.services.vpn.device_drivers.ipsec.OpenSwanProcess object at 0x7fc5c35814d0>> returned <MagicMock name='_execute().split().__getitem__()' id='140487355892880'>
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1584614/+subscriptions
References