Skip to content

Commit

Permalink
Fix race in setting up certs
Browse files Browse the repository at this point in the history
Closes bug #2060785
  • Loading branch information
sabaini committed Apr 10, 2024
1 parent 01ca8f5 commit 9916732
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion zaza/openstack/charm_tests/ceph/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,13 @@ def test_005_virtual_hosted_bucket(self):
endpoint_url=primary_endpoint,
aws_access_key_id=access_key,
aws_secret_access_key=secret_key)
primary_client.Bucket(container_name).create()
# We may not have certs for the pub hostname yet, so retry a few times.
for attempt in tenacity.Retrying(
stop=tenacity.stop_after_attempt(10),
wait=tenacity.wait_fixed(4),
):
with attempt:
primary_client.Bucket(container_name).create()
primary_object_one = primary_client.Object(
container_name,
obj_name
Expand Down

0 comments on commit 9916732

Please sign in to comment.