Bug 1785174 - Unit test 'test_update_port_with_empty_data' regression
Summary: Unit test 'test_update_port_with_empty_data' regression
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-networking-ovn
Version: 14.0 (Rocky)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Assaf Muller
QA Contact: Eran Kuris
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-12-19 10:33 UTC by Arie Bregman
Modified: 2020-01-07 14:13 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-01-07 14:13:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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