From 84d6dfca4313d31af6efe1250445045b94d069db Mon Sep 17 00:00:00 2001 From: Fernando Royo Date: Wed, 28 May 2025 16:26:38 +0200 Subject: [PATCH] [FT] Unlock the functional jobs Functional jobs are failing due to two consecutive calls that are calling to update the LB VIP port (finally calling to SetLSwitchPortCommand) are not propagating the second one. Consequently the port_name is not setted as ovn-lb-vip- and it is also affecting to logic when FIP is assigned to LB VIP. Change-Id: I174a0f971426c18eaaae3133446c0750bb50dd13 --- ovn_octavia_provider/tests/functional/base.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ovn_octavia_provider/tests/functional/base.py b/ovn_octavia_provider/tests/functional/base.py index 003e1501..5cf2657a 100644 --- a/ovn_octavia_provider/tests/functional/base.py +++ b/ovn_octavia_provider/tests/functional/base.py @@ -14,6 +14,7 @@ # under the License. import copy +import time from unittest import mock from neutron.common import utils as n_utils @@ -442,7 +443,10 @@ class TestOvnOctaviaBase(base.TestOVNFunctionalBase, [ls_foo, ls] self.ovn_driver.loadbalancer_create(lb_data['model']) - + # NOTE(froyo): This sleep is configured here due to previous call + # is also modifiend LB VIP port, as same way the following update + # port call. For some reason this second was not propagated. + time.sleep(1) name = '%s%s' % (ovn_const.LB_VIP_PORT_PREFIX, lb_data['model'].loadbalancer_id) self.driver.update_port( @@ -503,6 +507,10 @@ class TestOvnOctaviaBase(base.TestOVNFunctionalBase, self.ovn_driver.loadbalancer_create(lb_data['model']) + # NOTE(froyo): This sleep is configured here due to previous call + # is also modifiend LB VIP port, as same way the following update + # port call. For some reason this second was not propagated. + time.sleep(1) name = '%s%s' % (ovn_const.LB_VIP_PORT_PREFIX, lb_data['model'].loadbalancer_id) self.driver.update_port(