Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1785174

Summary: Unit test 'test_update_port_with_empty_data' regression
Product: Red Hat OpenStack Reporter: Arie Bregman <abregman>
Component: python-networking-ovnAssignee: Assaf Muller <amuller>
Status: CLOSED WONTFIX QA Contact: Eran Kuris <ekuris>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 14.0 (Rocky)CC: apevec, jlibosva, lhh, majopela, scohen
Target Milestone: ---   
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: 2020-01-07 14:13:20 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:

Description Arie Bregman 2019-12-19 10:33:34 UTC
Description of problem:

The test 'networking_ovn.tests.unit.ml2.test_mech_driver.TestOVNMechansimDriverPortsV2.test_update_port_with_empty_data' fails with:

    b'Traceback (most recent call last):'
    b'  File "/networking-ovn/.tox/py36/lib/python3.6/site-packages/neutron/tests/base.py", line 181, in func'
    b'    return f(self, *args, **kwargs)'
    b'  File "/networking-ovn/.tox/py36/lib/python3.6/site-packages/neutron/tests/base.py", line 181, in func'
    b'    return f(self, *args, **kwargs)'
    b'  File "/networking-ovn/.tox/py36/lib/python3.6/site-packages/neutron/tests/unit/plugins/ml2/test_plugin.py", line 974, in test_update_port_with_empty_data'
    b'    self.assertEqual(port["port"], new_port)'
    b'  File "/networking-ovn/.tox/py36/lib/python3.6/site-packages/testtools/testcase.py", line 411, in assertEqual'
    b'    self.assertThat(observed, matcher, message)'
    b'  File "/networking-ovn/.tox/py36/lib/python3.6/site-packages/testtools/testcase.py", line 498, in assertThat'
    b'    raise mismatch_error'
    b'testtools.matchers._impl.MismatchError: !=:'
    b"reference = {'admin_state_up': True,"
    b" 'allowed_address_pairs': [],"
    b" 'binding:host_id': '',"
    b" 'binding:profile': {},"
    b" 'binding:vif_details': {},"
    b" 'binding:vif_type': 'unbound',"
    b" 'binding:vnic_type': 'normal',"
    b" 'description': '',"
    b" 'device_id': '',"
    b" 'device_owner': '',"
    b" 'extra_dhcp_opts': [],"
    b" 'fixed_ips': [{'ip_address': '10.0.0.4',"
    b"                'subnet_id': 'd0592c2e-3b40-4ed3-abbe-903860428602'}],"
    b" 'id': '74ad0285-4229-4d03-a4b3-c0233e4730c4',"
    b" 'mac_address': '12:34:56:78:56:cc',"
    b" 'name': '',"
    b" 'network_id': 'b53ce42a-7bf7-42e7-b1f9-eb3322be61dd',"
    b" 'project_id': '46f70361-ba71-4bd0-9769-3573fd227c4b',"
    b" 'security_groups': ['4ce1ccb5-9c9a-46fd-ae1d-0d10d77a7a38'],"
    b" 'status': 'DOWN',"
    b" 'tenant_id': '46f70361-ba71-4bd0-9769-3573fd227c4b'}"
    b"actual    = {'admin_state_up': True,"
    b" 'allowed_address_pairs': [],"
    b" 'binding:host_id': '',"
    b" 'binding:profile': {},"
    b" 'binding:vif_details': {},"
    b" 'binding:vif_type': 'unbound',"
    b" 'binding:vnic_type': 'normal',"
    b" 'description': '',"
    b" 'device_id': '',"
    b" 'device_owner': '',"
    b" 'extra_dhcp_opts': [],"
    b" 'fixed_ips': [{'ip_address': '10.0.0.4',"
    b"                'subnet_id': 'd0592c2e-3b40-4ed3-abbe-903860428602'}],"
    b" 'id': '74ad0285-4229-4d03-a4b3-c0233e4730c4',"
    b" 'mac_address': '12:34:56:78:56:cc',"
    b" 'name': '',"
    b" 'network': {'admin_state_up': True,"
    b"             'availability_zone_hints': [],"
    b"             'availability_zones': [],"
    b"             'description': '',"
    b"             'id': 'b53ce42a-7bf7-42e7-b1f9-eb3322be61dd',"
    b"             'ipv4_address_scope': None,"
    b"             'ipv6_address_scope': None,"
    b"             'mtu': 1450,"
    b"             'name': 'net1',"
    b"             'project_id': '46f70361-ba71-4bd0-9769-3573fd227c4b',"
    b"             'provider:network_type': 'geneve',"
    b"             'provider:physical_network': None,"
    b"             'provider:segmentation_id': 5,"
    b"             'router:external': False,"
    b"             'shared': False,"
    b"             'status': 'ACTIVE',"
    b"             'subnets': ['d0592c2e-3b40-4ed3-abbe-903860428602'],"
    b"             'tenant_id': '46f70361-ba71-4bd0-9769-3573fd227c4b',"
    b"             'vlan_transparent': None},"
    b" 'network_id': 'b53ce42a-7bf7-42e7-b1f9-eb3322be61dd',"
    b" 'project_id': '46f70361-ba71-4bd0-9769-3573fd227c4b',"
    b" 'security_groups': ['4ce1ccb5-9c9a-46fd-ae1d-0d10d77a7a38'],"
    b" 'status': 'DOWN',"
    b" 'tenant_id': '46f70361-ba71-4bd0-9769-3573fd227c4b'}"
    b''
    b''
 
There is an upstream fix which should be backported: https://review.opendev.org/#/c/675603/1

Comment 1 Jakub Libosvar 2020-01-07 14:13:20 UTC
OSP14 is EOL in 3 days and there is no planned release of 14.