From 2eba544d21c187e8af4194d00353d8f13484f013 Mon Sep 17 00:00:00 2001 From: Lingxian Kong Date: Sun, 15 Sep 2019 23:05:44 +1200 Subject: [PATCH] Associate floating IP after lb ACTIVE There was a chance that the `device_owner` of VIP port changed to `compute:None` which blocks the VIP subnet clean up, this patch fixed that. Change-Id: I39a63584793c1f0aca7a74f01649dd5618d5829e Story: 2006551 Task: 36634 --- .../tests/scenario/v2/test_traffic_ops.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/octavia_tempest_plugin/tests/scenario/v2/test_traffic_ops.py b/octavia_tempest_plugin/tests/scenario/v2/test_traffic_ops.py index eba7e385..5b6d99b0 100644 --- a/octavia_tempest_plugin/tests/scenario/v2/test_traffic_ops.py +++ b/octavia_tempest_plugin/tests/scenario/v2/test_traffic_ops.py @@ -51,6 +51,12 @@ class TrafficOperationsScenarioTest(test_base.LoadBalancerBaseTestWithCompute): cls.mem_lb_client.cleanup_loadbalancer, cls.lb_id) + waiters.wait_for_status(cls.mem_lb_client.show_loadbalancer, + cls.lb_id, const.PROVISIONING_STATUS, + const.ACTIVE, + CONF.load_balancer.lb_build_interval, + CONF.load_balancer.lb_build_timeout) + if CONF.validation.connect_method == 'floating': port_id = lb[const.VIP_PORT_ID] result = cls.lb_mem_float_ip_client.create_floatingip( @@ -67,12 +73,6 @@ class TrafficOperationsScenarioTest(test_base.LoadBalancerBaseTestWithCompute): else: cls.lb_vip_address = lb[const.VIP_ADDRESS] - waiters.wait_for_status(cls.mem_lb_client.show_loadbalancer, - cls.lb_id, const.PROVISIONING_STATUS, - const.ACTIVE, - CONF.load_balancer.lb_build_interval, - CONF.load_balancer.lb_build_timeout) - protocol = const.HTTP lb_feature_enabled = CONF.loadbalancer_feature_enabled if not lb_feature_enabled.l7_protocol_enabled: