Revision 1fa6fcba lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
7349 | 7349 |
""" |
7350 | 7350 |
instance = self.instance |
7351 | 7351 |
force = self.op.force |
7352 |
reason = self.op.reason |
|
7352 | 7353 |
|
7353 | 7354 |
if not self.op.no_remember: |
7354 | 7355 |
self.cfg.MarkInstanceUp(instance.name) |
... | ... | |
7365 | 7366 |
self.rpc.call_instance_start(node_current, |
7366 | 7367 |
(instance, self.op.hvparams, |
7367 | 7368 |
self.op.beparams), |
7368 |
self.op.startup_paused) |
|
7369 |
self.op.startup_paused, reason)
|
|
7369 | 7370 |
msg = result.fail_msg |
7370 | 7371 |
if msg: |
7371 | 7372 |
_ShutdownInstanceDisks(self, instance) |
... | ... | |
7458 | 7459 |
instance.name) |
7459 | 7460 |
_StartInstanceDisks(self, instance, ignore_secondaries) |
7460 | 7461 |
result = self.rpc.call_instance_start(node_current, |
7461 |
(instance, None, None), False) |
|
7462 |
(instance, None, None), False, |
|
7463 |
reason) |
|
7462 | 7464 |
msg = result.fail_msg |
7463 | 7465 |
if msg: |
7464 | 7466 |
_ShutdownInstanceDisks(self, instance) |
... | ... | |
8557 | 8559 |
raise errors.OpExecError("Can't activate the instance's disks") |
8558 | 8560 |
|
8559 | 8561 |
result = self.rpc.call_instance_start(target_node, |
8560 |
(instance, None, None), False) |
|
8562 |
(instance, None, None), False, |
|
8563 |
self.op.reason) |
|
8561 | 8564 |
msg = result.fail_msg |
8562 | 8565 |
if msg: |
8563 | 8566 |
_ShutdownInstanceDisks(self, instance) |
... | ... | |
9297 | 9300 |
self.feedback_fn("* starting the instance on the target node %s" % |
9298 | 9301 |
target_node) |
9299 | 9302 |
result = self.rpc.call_instance_start(target_node, (instance, None, None), |
9300 |
False) |
|
9303 |
False, self.lu.op.reason)
|
|
9301 | 9304 |
msg = result.fail_msg |
9302 | 9305 |
if msg: |
9303 | 9306 |
_ShutdownInstanceDisks(self.lu, instance) |
... | ... | |
11229 | 11232 |
logging.info("Starting instance %s on node %s", instance, pnode_name) |
11230 | 11233 |
feedback_fn("* starting instance...") |
11231 | 11234 |
result = self.rpc.call_instance_start(pnode_name, (iobj, None, None), |
11232 |
False) |
|
11235 |
False, self.op.reason)
|
|
11233 | 11236 |
result.Raise("Could not start instance") |
11234 | 11237 |
|
11235 | 11238 |
return list(iobj.all_nodes) |
... | ... | |
14963 | 14966 |
assert not activate_disks |
14964 | 14967 |
feedback_fn("Starting instance %s" % instance.name) |
14965 | 14968 |
result = self.rpc.call_instance_start(src_node, |
14966 |
(instance, None, None), False) |
|
14969 |
(instance, None, None), False, |
|
14970 |
self.op.reason) |
|
14967 | 14971 |
msg = result.fail_msg |
14968 | 14972 |
if msg: |
14969 | 14973 |
feedback_fn("Failed to start instance: %s" % msg) |
Also available in: Unified diff