Skip to content

Commit

Permalink
Add a retrier-wrap to the nova client for octavia tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ajkavanagh committed Oct 31, 2023
1 parent 014c4fa commit def0148
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zaza/openstack/utilities/openstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
from zaza.openstack.utilities import (
exceptions,
generic as generic_utils,
ObjectRetrierWraps,
)
import zaza.utilities.networking as network_utils

Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit def0148

Please sign in to comment.