Bug 1701164 - neutron.tests.unit.extensions.test_expose_port_forwarding_in_fip.TestExtendFipPortForwardingExtension.test_create_port_forwarding_and_remove_subnets unit test fails
Summary: neutron.tests.unit.extensions.test_expose_port_forwarding_in_fip.TestExtendFi...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-neutron
Version: 14.0 (Rocky)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Bernard Cafarelli
QA Contact: Eran Kuris
URL:
Whiteboard:
: 1734810 (view as bug list)
Depends On: 1740093
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-18 09:33 UTC by Bernard Cafarelli
Modified: 2019-08-21 13:33 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-21 13:32:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gerrithub.io 464545 0 None None None 2019-08-12 10:06:56 UTC

Description Bernard Cafarelli 2019-04-18 09:33:50 UTC
With latest OSP 14, this unit test fails:

neutron.tests.unit.extensions.test_expose_port_forwarding_in_fip.TestExtendFipPortForwardingExtension.test_create_port_forwarding_and_remove_subnets
----------------------------------------------------------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "neutron/tests/base.py", line 179, in func
        return f(self, *args, **kwargs)
      File "neutron/tests/unit/extensions/test_expose_port_forwarding_in_fip.py", line 197, in test_create_port_forwarding_and_remove_subnets
        insub3['subnet']['id'], None)
      File "neutron/tests/unit/extensions/test_l3.py", line 420, in _router_interface_action
        self.assertEqual(expected_code, res.status_int, msg)
      File "/usr/lib/python2.7/site-packages/testtools/testcase.py", line 350, in assertEqual
        self.assertThat(observed, matcher, message)
      File "/usr/lib/python2.7/site-packages/testtools/testcase.py", line 435, in assertThat
        raise mismatch_error
    testtools.matchers._impl.MismatchError: 200 != 409

I think I spotted it once on earlier CI runs but it fails most of the time now

Comment 5 Nate Johnston 2019-08-01 15:07:24 UTC
*** Bug 1734810 has been marked as a duplicate of this bug. ***

Comment 6 Bernard Cafarelli 2019-08-08 13:30:37 UTC
OK, I think I found the root cause. This is apparently caused by the sqlite version we have in UT runners (coming from an OSP 10 override). Switching back to system sqlite makes the test passing locally.

I will test further and confirm

Comment 7 Bernard Cafarelli 2019-08-09 09:47:46 UTC
Switching back to system sqlite showed https://bugs.launchpad.net/neutron/+bug/1839595 let's fix this one first before merging the octario change

Comment 8 Bernard Cafarelli 2019-08-12 10:06:57 UTC
Once Depends-On bug is in, we can apply https://review.gerrithub.io/c/redhat-openstack/octario/+/464545 and fix this one

Comment 10 Bernard Cafarelli 2019-08-21 13:32:45 UTC
Closing this bug, octario fix is now in (and outside of osp scope)


Note You need to log in before you can comment on or make changes to this bug.