Merge "Add DeleteErrorException"
This commit is contained in:
commit
1d41b4bcd9
|
@ -121,7 +121,7 @@ def wait_for_server_termination(client, server_id, ignore_error=False):
|
|||
'/'.join((server_status, str(task_state))),
|
||||
time.time() - start_time)
|
||||
if server_status == 'ERROR' and not ignore_error:
|
||||
raise exceptions.BuildErrorException(server_id=server_id)
|
||||
raise lib_exc.DeleteErrorException(resource_id=server_id)
|
||||
|
||||
if int(time.time()) - start_time >= client.build_timeout:
|
||||
raise lib_exc.TimeoutException
|
||||
|
|
|
@ -264,3 +264,8 @@ class PluginRegistrationException(TempestException):
|
|||
|
||||
class VolumeBackupException(TempestException):
|
||||
message = "Volume backup %(backup_id)s failed and is in ERROR status"
|
||||
|
||||
|
||||
class DeleteErrorException(TempestException):
|
||||
message = ("Resource %(resource_id)s failed to delete "
|
||||
"and is in ERROR status")
|
||||
|
|
Loading…
Reference in New Issue