Check Floating ip status before load balancer check
This patch checks for the floating ip status before
the load balancer check.
This would make sure that the floating ip is in an
active state before checking the connection to the
load balancer vip.
If there is an issue with the Floating IP that would
be more evident from the error message.
This would also give enough time for the floatingip
to become active.
Partial-Bug: #1426764
Change-Id: Ic25d51b6d448b156df14d3eaf2e8c32e3ca61a07
diff --git a/tempest/scenario/test_load_balancer_basic.py b/tempest/scenario/test_load_balancer_basic.py
index 6f6036f..2dfabe3 100644
--- a/tempest/scenario/test_load_balancer_basic.py
+++ b/tempest/scenario/test_load_balancer_basic.py
@@ -262,6 +262,8 @@
port_id=port_id)
self.floating_ips.setdefault(vip.id, [])
self.floating_ips[vip.id].append(floating_ip)
+ # Check for floating ip status before you check load-balancer
+ self.check_floating_ip_status(floating_ip, "ACTIVE")
def _create_load_balancer(self):
self._create_pool()