Revert "Fix gate issue in scenario test"

This reverts commit 124ac0557a.
The root cause of the gate issue is fixed in Nova
I142f97d691fa55e9824714c9c224f998ad72337e.

Change-Id: I50081d615b1d47215e1e35e62ac2cb14fb1c63ad
This commit is contained in:
Masahito Muroi 2017-06-05 23:36:16 +09:00
parent 8065dacf75
commit ecba2a85af
1 changed files with 3 additions and 14 deletions

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')
waiters.wait_for_server_status(self.admin_manager.servers_client,
server['id'], 'ERROR',
raise_on_error=False)