Commit bd83d4b0 by Bach Dániel

vm: fix exception handling in ShutdownOperation

parent b0fd61ef
...@@ -90,6 +90,7 @@ class AbortableRemoteOperationMixin(object): ...@@ -90,6 +90,7 @@ class AbortableRemoteOperationMixin(object):
AbortableAsyncResult(remote.id).abort() AbortableAsyncResult(remote.id).abort()
raise humanize_exception(ugettext_noop( raise humanize_exception(ugettext_noop(
"Operation aborted by user."), e) "Operation aborted by user."), e)
raise TimeLimitExceeded()
class InstanceOperation(Operation): class InstanceOperation(Operation):
...@@ -803,7 +804,7 @@ class ShutdownOperation(AbortableRemoteOperationMixin, ...@@ -803,7 +804,7 @@ class ShutdownOperation(AbortableRemoteOperationMixin,
resultant_state = 'STOPPED' resultant_state = 'STOPPED'
task = vm_tasks.shutdown task = vm_tasks.shutdown
remote_queue = ("vm", "slow") remote_queue = ("vm", "slow")
remote_timeout = 120 remote_timeout = 180
def _operation(self, task): def _operation(self, task):
super(ShutdownOperation, self)._operation(task=task) super(ShutdownOperation, self)._operation(task=task)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment