Fix cinderv3 rerty
Retry cinderv3 send if we get error with no http_status
Change-Id: I11da0888aba41a756ce8dacff7cbe376b145fb5b
Closes-Bug: PROD-25613 (PROD:25613)
diff --git a/_modules/cinderv3/common.py b/_modules/cinderv3/common.py
index 4edd604..bc77cd9 100644
--- a/_modules/cinderv3/common.py
+++ b/_modules/cinderv3/common.py
@@ -88,7 +88,7 @@
else:
response = getattr(adapter, method)(url)
except Exception as e:
- if hasattr(e, 'http_status') and (e.http_status >= 500
+ if not hasattr(e, 'http_status') or (e.http_status >= 500
or e.http_status == 0):
msg = ("Got retriable exception when contacting "
"Cinder API. Sleeping for %ss. Attepmpts "