From 6a2bb6ce3ecd4d9ed86351b2de8f42bb2c8e63c6 Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Mon, 8 Jul 2024 17:46:54 +0000 Subject: [PATCH] [FT] Check if the OVN row item is stored as a list Since [1] (ovs==3.3.1), the row data result stored in the data dictionary will be a one single item list, instead of the item itself. [1] https://is.gd/yElVoV Closes-Bug: #2072545 Change-Id: Ie5642b4073c6c54aeec3896ebcd451badc3d64a8 --- .../ml2/drivers/ovn/mech_driver/ovsdb/test_ovsdb_monitor.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/neutron/tests/functional/plugins/ml2/drivers/ovn/mech_driver/ovsdb/test_ovsdb_monitor.py b/neutron/tests/functional/plugins/ml2/drivers/ovn/mech_driver/ovsdb/test_ovsdb_monitor.py index 86ea6cbd5b6..4e027c08cf5 100644 --- a/neutron/tests/functional/plugins/ml2/drivers/ovn/mech_driver/ovsdb/test_ovsdb_monitor.py +++ b/neutron/tests/functional/plugins/ml2/drivers/ovn/mech_driver/ovsdb/test_ovsdb_monitor.py @@ -636,6 +636,11 @@ class TestSBDbMonitor(base.TestOVNFunctionalBase, test_l3.L3NatTestCaseMixin): pb = self._find_port_binding(ovn_const.OVN_CHASSIS_REDIRECT) _, lrp = list( self.nb_api.tables['Logical_Router_Port'].rows.data.items())[0] + # Check LP#2072545. Since [1] (ovs==3.3.1), the result stored in + # the data dictionary will be a one single item list, instead of + # the item itself. + # [1] https://is.gd/yElVoV + lrp = lrp if not isinstance(lrp, list) else lrp[0] if pb.external_ids == {}: # The current version of OVN installed in FT CI could not have # [1]. In this case, the Port_Binding.external_ids value is an