Merge "Revert "Fix gate issue in scenario test""

This commit is contained in:
Jenkins 2017-06-08 01:39:40 +00:00 committed by Gerrit Code Review
commit 1547ab0d0f

View File

@ -130,17 +130,6 @@ class TestHostReservationScenario(rrs.ResourceReservationScenarioTest):
server = self.create_server(clients=self.admin_manager,
wait_until=None,
**create_kwargs)
# TODO(masahito) the try-except statement is a quick fix for nova's bug
# https://bugs.launchpad.net/nova/+bug/1693438. After fixing the bug
# remove the try-except. extra_timeout argument is added for ensuring
# the server remains in BUILD status longer than instance boots time.
try:
waiters.wait_for_server_status(self.admin_manager.servers_client,
server['id'], 'ERROR',
raise_on_error=False,
extra_timeout=100)
except exceptions.TimeoutException:
# check the server's status remains in BUILD status
waiters.wait_for_server_status(self.admin_manager.servers_client,
server['id'], 'BUILD')
raise_on_error=False)