Cleanup sg: increase interval and number of attemps
Current number of attempts can't be enough for slow envs.
Related-PROD: PRODX-4003
Change-Id: Iac9c6f73c6d5b8dadd924b39bbcc9065d41f4fd2
diff --git a/tempest/lib/common/dynamic_creds.py b/tempest/lib/common/dynamic_creds.py
index c1df32c..259a13a 100644
--- a/tempest/lib/common/dynamic_creds.py
+++ b/tempest/lib/common/dynamic_creds.py
@@ -404,7 +404,7 @@
secgroups_to_delete = resp_body['security_groups']
for secgroup in secgroups_to_delete:
# Workaround for PRODX-4003
- attempts = 5
+ attempts = 10
for i in range(attempts):
try:
nsg_client.delete_security_group(secgroup['id'])
@@ -419,7 +419,7 @@
if i == attempts - 1:
raise
else:
- time.sleep(1)
+ time.sleep(5)
continue
def _clear_isolated_net_resources(self):