Bug 1924668 - Unit tests failing : networking_ovn.tests.unit.ovsdb.test_impl_idl_ovn.TestNBImplIdlOvn
Summary: Unit tests failing : networking_ovn.tests.unit.ovsdb.test_impl_idl_ovn.TestNB...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-networking-ovn
Version: 16.2 (Train)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: beta
: 16.2 (Train on RHEL 8.4)
Assignee: Terry Wilson
QA Contact: Eran Kuris
URL:
Whiteboard:
Depends On: 1944224
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-03 12:22 UTC by Eran Kuris
Modified: 2021-09-15 07:12 UTC (History)
6 users (show)

Fixed In Version: python-networking-ovn-7.3.1-2.20210218144959.43dfc62.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-09-15 07:11:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2021:3483 0 None None None 2021-09-15 07:12:21 UTC

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


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