Stein: testing _make_floatingip fails in Debian Sid

Bug #1837169 reported by Thomas Goirand on 2019-07-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Undecided
Unassigned

Bug Description

Hi,

I'm trying to build Stein Neutron from Buster to Sid.

There's the following 4 unit tests failing when building the debian package in Sid, all located in neutron.tests.unit.extensions:

test_extraroute.ExtraRouteDBIntTestCase.test_floatingip_via_router_interface_returns_201
test_extraroute.ExtraRouteDBSepTestCase.test_floatingip_via_router_interface_returns_201
test_l3.L3NatDBIntTestCase.test_floatingip_via_router_interface_returns_201
test_l3.L3NatDBSepTestCase.test_floatingip_via_router_interface_returns_201

All of these tests fails with more or less the same stack dump, as seen below.

(unstable-amd64-sbuild)root@buzig2:~/neutron# PYTOHN=python3 PYTHONPATH=`pwd`/debian/tmp/usr/lib/python3/dist-packages stestr run --subunit neutron.tests.unit.extensions.test_extraroute.ExtraRouteDBIntTestCase.test_floatingip_via_router_interface_returns_201 | subunit2pyunit
neutron.tests.unit.extensions.test_extraroute.ExtraRouteDBIntTestCase.test_floatingip_via_router_interface_returns_201
neutron.tests.unit.extensions.test_extraroute.ExtraRouteDBIntTestCase.test_floatingip_via_router_interface_returns_201 ... FAIL

======================================================================
FAIL: neutron.tests.unit.extensions.test_extraroute.ExtraRouteDBIntTestCase.test_floatingip_via_router_interface_returns_201
neutron.tests.unit.extensions.test_extraroute.ExtraRouteDBIntTestCase.test_floatingip_via_router_interface_returns_201
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/root/neutron/neutron/tests/base.py", line 176, in func
    return f(self, *args, **kwargs)
  File "/root/neutron/neutron/tests/base.py", line 176, in func
    return f(self, *args, **kwargs)
  File "/root/neutron/neutron/tests/unit/extensions/test_l3.py", line 3183, in test_floatingip_via_router_interface_returns_201
    self._test_floatingip_via_router_interface(exc.HTTPCreated.code)
  File "/root/neutron/neutron/tests/unit/extensions/test_l3.py", line 3137, in _test_floatingip_via_router_interface
    http_status=http_status)
  File "/root/neutron/neutron/tests/unit/extensions/test_l3.py", line 510, in _make_floatingip
    self.assertEqual(http_status, res.status_int)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 411, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: 201 != 500

----------------------------------------------------------------------
Ran 1 test in 11.585s

FAILED (failures=1)

Thomas Goirand (thomas-goirand) wrote :

Looks like this is fixed in 14.0.2, and that the bug only appeared in 14.0.1. Sorry for the noise.

Hongbin Lu (hongbin.lu) wrote :

As comment #1 suggested, this bug is fixed and I am going to close this ticket, but feel free to re-open it if needed.

Changed in neutron:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers