Skip to content

Commit 84d6dfc

Browse files
[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-<uuid> and it is also affecting to logic when FIP is assigned to LB VIP. Change-Id: I174a0f971426c18eaaae3133446c0750bb50dd13
1 parent 502c6d1 commit 84d6dfc

File tree

1 file changed

+9
-1
lines changed
  • ovn_octavia_provider/tests/functional

1 file changed

+9
-1
lines changed

ovn_octavia_provider/tests/functional/base.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# under the License.
1515

1616
import copy
17+
import time
1718
from unittest import mock
1819

1920
from neutron.common import utils as n_utils
@@ -442,7 +443,10 @@ def _create_load_balancer_custom_lr_ls_and_validate(
442443
[ls_foo, ls]
443444

444445
self.ovn_driver.loadbalancer_create(lb_data['model'])
445-
446+
# NOTE(froyo): This sleep is configured here due to previous call
447+
# is also modifiend LB VIP port, as same way the following update
448+
# port call. For some reason this second was not propagated.
449+
time.sleep(1)
446450
name = '%s%s' % (ovn_const.LB_VIP_PORT_PREFIX,
447451
lb_data['model'].loadbalancer_id)
448452
self.driver.update_port(
@@ -503,6 +507,10 @@ def _create_load_balancer_and_validate(self, network_id, subnet_id,
503507

504508
self.ovn_driver.loadbalancer_create(lb_data['model'])
505509

510+
# NOTE(froyo): This sleep is configured here due to previous call
511+
# is also modifiend LB VIP port, as same way the following update
512+
# port call. For some reason this second was not propagated.
513+
time.sleep(1)
506514
name = '%s%s' % (ovn_const.LB_VIP_PORT_PREFIX,
507515
lb_data['model'].loadbalancer_id)
508516
self.driver.update_port(

0 commit comments

Comments
 (0)