Revision 323f9095 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
5705 | 5705 |
_StartInstanceDisks(self, instance, force) |
5706 | 5706 |
|
5707 | 5707 |
result = self.rpc.call_instance_start(node_current, instance, |
5708 |
self.op.hvparams, self.op.beparams) |
|
5708 |
self.op.hvparams, self.op.beparams, |
|
5709 |
self.op.startup_paused) |
|
5709 | 5710 |
msg = result.fail_msg |
5710 | 5711 |
if msg: |
5711 | 5712 |
_ShutdownInstanceDisks(self, instance) |
... | ... | |
5795 | 5796 |
self.LogInfo("Instance %s was already stopped, starting now", |
5796 | 5797 |
instance.name) |
5797 | 5798 |
_StartInstanceDisks(self, instance, ignore_secondaries) |
5798 |
result = self.rpc.call_instance_start(node_current, instance, None, None) |
|
5799 |
result = self.rpc.call_instance_start(node_current, instance, |
|
5800 |
None, None, False) |
|
5799 | 5801 |
msg = result.fail_msg |
5800 | 5802 |
if msg: |
5801 | 5803 |
_ShutdownInstanceDisks(self, instance) |
... | ... | |
6646 | 6648 |
_ShutdownInstanceDisks(self, instance) |
6647 | 6649 |
raise errors.OpExecError("Can't activate the instance's disks") |
6648 | 6650 |
|
6649 |
result = self.rpc.call_instance_start(target_node, instance, None, None) |
|
6651 |
result = self.rpc.call_instance_start(target_node, instance, |
|
6652 |
None, None, False) |
|
6650 | 6653 |
msg = result.fail_msg |
6651 | 6654 |
if msg: |
6652 | 6655 |
_ShutdownInstanceDisks(self, instance) |
... | ... | |
8771 | 8774 |
self.cfg.Update(iobj, feedback_fn) |
8772 | 8775 |
logging.info("Starting instance %s on node %s", instance, pnode_name) |
8773 | 8776 |
feedback_fn("* starting instance...") |
8774 |
result = self.rpc.call_instance_start(pnode_name, iobj, None, None) |
|
8777 |
result = self.rpc.call_instance_start(pnode_name, iobj, |
|
8778 |
None, None, False) |
|
8775 | 8779 |
result.Raise("Could not start instance") |
8776 | 8780 |
|
8777 | 8781 |
return list(iobj.all_nodes) |
... | ... | |
11190 | 11194 |
not self.op.remove_instance): |
11191 | 11195 |
assert not activate_disks |
11192 | 11196 |
feedback_fn("Starting instance %s" % instance.name) |
11193 |
result = self.rpc.call_instance_start(src_node, instance, None, None) |
|
11197 |
result = self.rpc.call_instance_start(src_node, instance, |
|
11198 |
None, None, False) |
|
11194 | 11199 |
msg = result.fail_msg |
11195 | 11200 |
if msg: |
11196 | 11201 |
feedback_fn("Failed to start instance: %s" % msg) |
Also available in: Unified diff