Revision 43017d26
b/lib/cmdlib.py | ||
---|---|---|
2333 | 2333 |
self.instance = self.cfg.GetInstanceInfo(self.op.instance_name) |
2334 | 2334 |
assert self.instance is not None, \ |
2335 | 2335 |
"Cannot retrieve locked instance %s" % self.op.instance_name |
2336 |
_CheckNodeOnline(self, instance.primary_node) |
|
2336 |
_CheckNodeOnline(self, self.instance.primary_node)
|
|
2337 | 2337 |
|
2338 | 2338 |
def Exec(self, feedback_fn): |
2339 | 2339 |
"""Activate the disks. |
... | ... | |
2714 | 2714 |
self.instance = self.cfg.GetInstanceInfo(self.op.instance_name) |
2715 | 2715 |
assert self.instance is not None, \ |
2716 | 2716 |
"Cannot retrieve locked instance %s" % self.op.instance_name |
2717 |
_CheckNodeOnline(self, instance.primary_node) |
|
2717 |
_CheckNodeOnline(self, self.instance.primary_node)
|
|
2718 | 2718 |
|
2719 | 2719 |
def Exec(self, feedback_fn): |
2720 | 2720 |
"""Shutdown the instance. |
... | ... | |
5527 | 5527 |
self.instance = self.cfg.GetInstanceInfo(instance_name) |
5528 | 5528 |
assert self.instance is not None, \ |
5529 | 5529 |
"Cannot retrieve locked instance %s" % self.op.instance_name |
5530 |
_CheckNodeOnline(self, instance.primary_node) |
|
5530 |
_CheckNodeOnline(self, self.instance.primary_node)
|
|
5531 | 5531 |
|
5532 | 5532 |
self.dst_node = self.cfg.GetNodeInfo( |
5533 | 5533 |
self.cfg.ExpandNodeName(self.op.target_node)) |
Also available in: Unified diff