Merge pull request #1031 from gabrielcocenza/bug/1880610

fix racing condition on cinder and nova controller with L7 checks
This commit is contained in:
Liam Young
2023-03-29 08:54:36 +01:00
committed by GitHub
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -20,6 +20,7 @@ import json
import logging
import os
import tempfile
import tenacity
import unittest
import urllib
from configparser import ConfigParser
@@ -769,6 +770,8 @@ class NovaCloudControllerActionTest(test_utils.OpenStackBaseTest):
to avoid breaking older version.
"""
@tenacity.retry(wait=tenacity.wait_exponential(multiplier=1, max=60),
reraise=True, stop=tenacity.stop_after_attempt(4))
def test_sync_compute_az_action(self):
"""Test sync-compute-availability-zones action."""
juju_units_az_map = {}
@@ -616,6 +616,8 @@ class CinderTests(BasePolicydSpecialization):
super(CinderTests, cls).setUpClass(application_name="cinder")
cls.application_name = "cinder"
@tenacity.retry(wait=tenacity.wait_fixed(1),
reraise=True, stop=tenacity.stop_after_delay(8))
def get_client_and_attempt_operation(self, ip):
"""Attempt to list the images as a policyd override.