From 045b115aa0fb4a6f3740a14def0f13439d86710d Mon Sep 17 00:00:00 2001 From: Alex Kavanagh Date: Tue, 31 Oct 2023 19:44:49 +0000 Subject: [PATCH] Add a retrier-wrap to the nova client for octavia tests The nova service may not be quite ready after vault initialisation for the basic network configuration, so add a retrier wrapper around the client for every test to make sure that it retries. (cherry picked from commit def0148642af16c7d32ccbb173639b2edba15543) --- zaza/openstack/utilities/openstack.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zaza/openstack/utilities/openstack.py b/zaza/openstack/utilities/openstack.py index e548884d3..e3032d2c2 100644 --- a/zaza/openstack/utilities/openstack.py +++ b/zaza/openstack/utilities/openstack.py @@ -85,6 +85,7 @@ from zaza.openstack.utilities import ( exceptions, generic as generic_utils, + ObjectRetrierWraps, ) import zaza.utilities.networking as network_utils @@ -379,7 +380,8 @@ def get_nova_session_client(session, version=None): """ if not version: version = 2 - return novaclient_client.Client(version, session=session) + return ObjectRetrierWraps( + novaclient_client.Client(version, session=session)) def get_neutron_session_client(session):