Test replica engine status retry on 503

Tempest failures occassionally occur because when the
freshly started replica server is unresponsive,
the tempest code does not retry.

This patch adds the retry.

Depends-On: https://review.openstack.org/#/c/588847/
Change-Id: I5e01412d7dbd66e2ddae99860f0d58f5b2800ab0
This commit is contained in:
Eric K 2018-08-03 17:24:14 -07:00
parent 9ee9bf4235
commit 0d33677c01
1 changed files with 2 additions and 1 deletions

View File

@ -138,7 +138,8 @@ class TestHA(manager_congress.ScenarioPolicyBase):
except exceptions.Unauthorized:
LOG.debug("connection refused")
return False
except (socket.error, urllib3_exceptions.MaxRetryError):
except (socket.error, urllib3_exceptions.MaxRetryError,
exceptions.UnexpectedResponseCode):
LOG.debug("Replica server not ready")
return False
except Exception: