cinder_endpoint and ceph_check in EDGE PODs resulting errors

Change-Id: I307d641a1a266a5b134030c3cb0dbcfd553b35ea
This commit is contained in:
Sawan Choudhary 2019-09-11 03:19:29 -07:00 committed by Sawan Choudhary
parent 3758231fcb
commit 45f35668c2
2 changed files with 6 additions and 2 deletions

View File

@ -120,7 +120,9 @@ class endpoint_scenario(base.Scenario):
funres = funccall()
except Exception as e:
funres = [404, str(e)]
if funres[0] != 200:
# Catch all status other than success and skipped
if funres[0] not in [200, 300]:
resultmsg += ("%s failed: %s\n\n" % (func, funres[1]))
result = 404
if not resultmsg:

View File

@ -399,7 +399,9 @@ class operator_scenario(base.Scenario):
funres = funccall()
except Exception as e:
funres = [404, str(e)]
if funres[0] != 200:
# Catch all status other than success and skipped
if funres[0] not in [200, 300]:
resultmsg += ("%s failed: %s\n" % (func, funres[1]))
result = 404
if not resultmsg: