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
Merge request !52 opened Mar 25, 2014 by Guba Sándor@gubasandor 
  • Report abuse
Report abuse

Feature Abort Shutdown

🆗 abort_shutdown() on instances 🆗 abort_create_from_url() on disks 🚧 Need tests and feedback

  • Discussion 7
  • Commits 7
  • Changes
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
  • Kálmán Viktor @kviktor commented Mar 25, 2014
    Owner

    view ready

    view ready
  • Őry Máté
    @orymate started a discussion on the diff Mar 26, 2014
    circle/dashboard/templates/dashboard/vm-detail/_activity-timeline.html
    8 8 {{ a.get_readable_name }}
    9 9 </strong>
    10 10 {{ a.started|date:"Y-m-d H:i" }}{% if a.user %}, {{ a.user }}{% endif %}
    11 {% if user.is_superuser and a.activity_code == "vm.Instance.shutdown" and not a.finished %}
    • Őry Máté @orymate commented Mar 26, 2014
      Owner

      Activity.abortable field/property would make more sense.

      Activity.abortable field/property would make more sense.
    Please register or sign in to reply
  • Őry Máté
    @orymate started a discussion on the diff Mar 26, 2014
    Last updated by Kálmán Viktor Mar 26, 2014
    circle/dashboard/templates/dashboard/vm-detail/_activity-timeline.html
    8 8 {{ a.get_readable_name }}
    9 9 </strong>
    10 10 {{ a.started|date:"Y-m-d H:i" }}{% if a.user %}, {{ a.user }}{% endif %}
    11 {% if user.is_superuser and a.activity_code == "vm.Instance.shutdown" and not a.finished %}
    12 <form action="" method="POST" class="pull-right">
    13 {% csrf_token %}
    14 <input type="hidden" name="abort_shutdown"/>
    15 <button class="btn btn-danger btn-xs"><i class="icon-bolt"></i> {% trans "Abort shutdown" %}</button>
    • Őry Máté @orymate commented Mar 26, 2014
      Owner

      This doesn't actually abort the shutdown, only stops the polling.

      This doesn't actually abort the shutdown, only stops the polling.
    • Kálmán Viktor @kviktor commented Mar 26, 2014
      Owner

      It essentially refreshes the page and waits for the shutdown to be aborted.

      Edited Mar 26, 2014
      It essentially refreshes the page and waits for the shutdown to be aborted.
    Please register or sign in to reply
  • Őry Máté @orymate commented Mar 26, 2014
    Owner

    👍 (IF comments above fixed and tests added)

    :+1: (IF comments above fixed and tests added)
  • Dudás Ádám
    @siliconbrain started a discussion on the diff Apr 25, 2014
    circle/vm/models/instance.py
    1042 1047 return local_tasks.wake_up.apply_async(args=[self, user],
    1043 1048 queue="localhost.man")
    1044 1049  
    1045 def shutdown(self, user=None, task_uuid=None, timeout=120):
    1050 def shutdown(self, user=None, task_uuid=None, abortable_task=None,
    1051 timeout=120):
    1046 1052 """Shutdown virtual machine with ACPI signal.
    1047 1053 """
    1048 1054 def __on_abort(activity, error):
    1049 if isinstance(error, TimeLimitExceeded):
    1055 if isinstance(error, TimeLimitExceeded) or \
    1056 isinstance(error, AbortException):
    • Dudás Ádám @siliconbrain commented Apr 25, 2014
      Owner

      isinstance(error, (TimeLimitExceeded, AbortException)) would be the same, only shorter

      isinstance(error, (TimeLimitExceeded, AbortException)) would be the same, only shorter
    Please register or sign in to reply
  • Őry Máté @orymate

    Status changed to closed

    Apr 28, 2014

    Status changed to closed

    Status changed to closed
    Toggle commit list
  • Őry Máté @orymate commented Apr 28, 2014
    Owner

    This won't be merged, !70 (merged) addresses the same issue.

    This won't be merged, !70 addresses the same issue.
  • 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
Kálmán Viktor
Assignee
Kálmán Viktor @kviktor
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View labels
4
4 participants
Reference: circle/cloud!52