Resolve Gate failure

Recent change in tempest of using urllib3 instead of httplib2
causing our gate to fail. This commit fixes the same.

Change-Id: Ia966cfaaeaff97bdc156c767ba39c7136328413f
This commit is contained in:
Anusha Ramineni 2016-04-14 16:58:35 +05:30
parent 5a0b785cf4
commit de9dc8244d
1 changed files with 4 additions and 0 deletions

View File

@ -24,6 +24,7 @@ from tempest import config
from tempest.lib import exceptions
from tempest import manager as tempestmanager
from tempest import test
from urllib3.exceptions import MaxRetryError
from congress_tempest_tests.services.policy import policy_client
from congress_tempest_tests.tests.scenario import helper
@ -128,6 +129,9 @@ class TestHA(manager_congress.ScenarioPolicyBase):
except socket.error as e:
LOG.debug("Replica server not ready")
return False
except MaxRetryError as e:
LOG.debug("Replica server not ready")
return False
except Exception as e:
raise e
return True