Retry on any exception afeter FIP update
Partially cherry-pick I25e85af8e626664c0a562ea0a5b8faf8b29210a5
which increases timeout retries.
Related-Prod: PRODX-20388
Change-Id: I918989cb23c7397c1c428f840346bf5fd5591e30
diff --git a/neutron_tempest_plugin/scenario/test_floatingip.py b/neutron_tempest_plugin/scenario/test_floatingip.py
index 2a137b5..36d6b38 100644
--- a/neutron_tempest_plugin/scenario/test_floatingip.py
+++ b/neutron_tempest_plugin/scenario/test_floatingip.py
@@ -428,14 +428,15 @@
def _wait_for_fip_associated():
try:
self.check_servers_hostnames(servers[-1:], log_errors=False)
- except (AssertionError, exceptions.SSHTimeout):
+ # NOTE(vsaienko): it might take some time by neutron to update VIP
+ # retry on any exception here.
+ except Exception:
return False
return True
# The FIP is now associated with the port of the second server.
try:
- common_utils.wait_until_true(_wait_for_fip_associated,
- timeout=15, sleep=3)
+ common_utils.wait_until_true(_wait_for_fip_associated, sleep=3)
except common_utils.WaitTimeout:
self._log_console_output(servers[-1:])
self.fail(