Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

CIRCLE / cloud

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 94
  • Merge Requests 10
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Closed
Open
Issue #272 opened Sep 04, 2014 by Bach Dániel@bachdaniel 
  • Report abuse
  • New issue
Report abuse New issue

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
  • Őry Máté @orymate

    Status changed to closed by commit 7cd242

    Sep 08, 2014

    Status changed to closed by commit 7cd242

    Status changed to closed by commit 7cd242
    Toggle commit list
  • Bach Dániel @bachdaniel

    Status changed to reopened

    Sep 08, 2014

    Status changed to reopened

    Status changed to reopened
    Toggle commit list
  • Bach Dániel @bachdaniel

    Reassigned to @orymate

    Sep 08, 2014

    Reassigned to @orymate

    Reassigned to @orymate
    Toggle commit list
  • Bach Dániel @bachdaniel

    mentioned in merge request !192 (merged)

    Sep 09, 2014

    mentioned in merge request !192 (merged)

    mentioned in merge request !192
    Toggle commit list
  • Őry Máté @orymate

    Status changed to closed by commit 4a6dd4

    Sep 10, 2014

    Status changed to closed by commit 4a6dd4

    Status changed to closed by commit 4a6dd4
    Toggle commit list
  • Write
  • Preview
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
Assignee
Assign to
September
Milestone
September
Assign milestone
Time tracking
None
Due date
No due date
0
Labels
None
Assign labels
  • View labels
2
2 participants
Reference: circle/cloud#272