Retry octavia get_lb_providers

The octavia tests can sometimes fail when calling
get_lb_providers if they have not been setup yet.
This adds a retry if keystoneauth1.exceptions.http.NotFound
is raised.
This commit is contained in:
Edward Hope-Morley
2023-05-30 15:16:16 +01:00
parent c10d1ceaa8
commit 5b1991bbc2
@@ -316,6 +316,11 @@ class LBAASv2Test(test_utils.OpenStackBaseTest):
return resp
@staticmethod
@tenacity.retry(
retry=tenacity.retry_if_exception_type(keystone_exceptions.http.
NotFound),
wait=tenacity.wait_fixed(5), reraise=True,
stop=tenacity.stop_after_delay(300))
def get_lb_providers(octavia_client):
"""Retrieve loadbalancer providers.