Handle wake up errors
Kezeletlen kivétel: No node has enough memory to accomodate the guest. (NotEnoughMemoryException)
Kezeletlen kivétel: internal error: process exited while connecting to monitor: qemu-system-x86_64: -drive file=/datastore/861f2c26-9e47-498e-9b3a-b81b68755e73,if=none,id=drive-virtio-disk1,format=qcow2,cache=none: could not open disk image /datastore/861f2c26-9e47-498e-9b3a-b81b68755e73: Could not open '/datastore/861f2c26-9e47-498e-9b3a-b81b68755e73': Permission denied wontfix
diff --git a/circle/vm/operations.py b/circle/vm/operations.py
index 65b3361..e5f406d 100644
--- a/circle/vm/operations.py
+++ b/circle/vm/operations.py
@@ -34,6 +34,7 @@ from common.models import (
create_readable, humanize_exception, HumanReadableException
)
from common.operations import Operation, register_operation
+from manager.scheduler import SchedulerError
from .tasks.local_tasks import (
abortable_async_instance_operation, abortable_async_node_operation,
)
@@ -728,7 +729,10 @@ class WakeUpOperation(InstanceOperation):
return self.instance.status == self.instance.STATUS.SUSPENDED
def on_abort(self, activity, error):
- activity.resultant_state = 'ERROR'
+ if not isinstance(error, SchedulerError):
+ activity.resultant_state = 'ERROR'
def _operation(self, activity, timeout=60):
# Schedule vm
-
Status changed to closed by commit 7cd242
Toggle commit list -
Status changed to reopened
Toggle commit list -
-
-
Status changed to closed by commit 4a6dd4
Toggle commit list
Please
register
or
sign in
to comment