Bug 1701164

Summary: neutron.tests.unit.extensions.test_expose_port_forwarding_in_fip.TestExtendFipPortForwardingExtension.test_create_port_forwarding_and_remove_subnets unit test fails
Product: Red Hat OpenStack Reporter: Bernard Cafarelli <bcafarel>
Component: openstack-neutronAssignee: Bernard Cafarelli <bcafarel>
Status: CLOSED CURRENTRELEASE QA Contact: Eran Kuris <ekuris>
Severity: high Docs Contact:
Priority: high    
Version: 14.0 (Rocky)CC: abregman, amuller, chrisw, scohen
Target Milestone: ---Keywords: AutomationBlocker, Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-21 13:32:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1740093    
Bug Blocks:    

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)