Bug 1924668

Summary: Unit tests failing : networking_ovn.tests.unit.ovsdb.test_impl_idl_ovn.TestNBImplIdlOvn
Product: Red Hat OpenStack Reporter: Eran Kuris <ekuris>
Component: python-networking-ovnAssignee: Terry Wilson <twilson>
Status: CLOSED ERRATA QA Contact: Eran Kuris <ekuris>
Severity: high Docs Contact:
Priority: high    
Version: 16.2 (Train)CC: apevec, lhh, lmartins, majopela, scohen, twilson
Target Milestone: betaKeywords: Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-networking-ovn-7.3.1-2.20210218144959.43dfc62.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-15 07:11:47 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: 1944224    
Bug Blocks:    

Description Eran Kuris 2021-02-03 12:22:35 UTC
Description of problem:



==============================
Failed 2 tests - output below:
==============================

networking_ovn.tests.unit.ovsdb.test_impl_idl_ovn.TestNBImplIdlOvn.test_get_floatingip_in_nat_or_lb
---------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    b'Traceback (most recent call last):'
    b'  File "/networking-ovn/networking_ovn/tests/unit/ovsdb/test_impl_idl_ovn.py", line 816, in test_get_floatingip_in_nat_or_lb'
    b'    lb = self.nb_ovn_idl.get_floatingip_in_nat_or_lb(fip_id)'
    b'  File "/networking-ovn/networking_ovn/ovsdb/impl_idl_ovn.py", line 645, in get_floatingip_in_nat_or_lb'
    b'    ovn_const.OVN_FIP_EXT_ID_KEY: fip_id})).execute(check_error=True)'
    b'  File "/networking-ovn/.tox/py36/lib/python3.6/site-packages/ovsdbapp/backend/ovs_idl/command.py", line 38, in execute'
    b'    with self.api.ovsdb_connection.lock:'
    b'AttributeError: __enter__'
    b''

networking_ovn.tests.unit.ovsdb.test_impl_idl_ovn.TestNBImplIdlOvn.test_get_router_floatingip_lbs
-------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    b'Traceback (most recent call last):'
    b'  File "/networking-ovn/networking_ovn/tests/unit/ovsdb/test_impl_idl_ovn.py", line 802, in test_get_router_floatingip_lbs'
    b'    lbs = self.nb_ovn_idl.get_router_floatingip_lbs(lrouter_name)'
    b'  File "/networking-ovn/networking_ovn/ovsdb/impl_idl_ovn.py", line 634, in get_router_floatingip_lbs'
    b'    return [ovn_obj for ovn_obj in rc.execute(check_error=True)'
    b'  File "/networking-ovn/.tox/py36/lib/python3.6/site-packages/ovsdbapp/backend/ovs_idl/command.py", line 38, in execute'
    b'    with self.api.ovsdb_connection.lock:'
    b'AttributeError: __enter__'
    b''

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 6 Eran Kuris 2021-04-08 09:37:20 UTC
Fix verified: 
{1} networking_ovn.tests.unit.ovsdb.test_impl_idl_ovn.TestNBImplIdlOvn.test_get_acls_for_lswitches [0.281700s] ... ok
{1} networking_ovn.tests.unit.ovsdb.test_impl_idl_ovn.TestNBImplIdlOvn.test_get_all_dhcp_options [0.060229s] ... ok
https://rhos-ci-jenkins.lab.eng.tlv2.redhat.com/view/DFG/view/network/view/networking-ovn/job/DFG-network-networking-ovn-16.2-component-tests-osp/118/artifact/.sh/ifr-tests-unit-tests.log

Comment 9 errata-xmlrpc 2021-09-15 07:11:47 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenStack Platform (RHOSP) 16.2 enhancement advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2021:3483