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 #285 opened Sep 11, 2014 by Őry Máté@orymate 
  • Report abuse
  • New issue
Report abuse New issue

Allow starting machines formerly running on a failed node

vnc_port and node reset should be both an option of emergency_change_state.

Draft:

from vm.models import Instance
from vm.models import Node

node_name = "xmega4"
node = Node.objects.get(name=node_name)
node.disable()
insts=Instance.objects.filter(node=node) # , name__startswith="Meta")


for i in insts:
    i.vnc_port = None
    i.node = None
    i.save()

for i in insts:
    i.emergency_change_state(system=True)

for i in insts:
    i.deploy(system=True)
  • Őry Máté @orymate

    Reassigned to @orymate

    Sep 18, 2014

    Reassigned to @orymate

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

    Reassigned to @bachdaniel

    Sep 23, 2014

    Reassigned to @bachdaniel

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

    Status changed to closed by commit a431c8

    Sep 29, 2014

    Status changed to closed by commit a431c8

    Status changed to closed by commit a431c8
    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
None
Milestone
None
Assign milestone
Time tracking
None
Due date
No due date
0
Labels
None
Assign labels
  • View labels
2
2 participants
Reference: circle/cloud#285