Revision 7f7b730a
b/lib/cmdlib.py | ||
---|---|---|
9229 | 9229 |
|
9230 | 9230 |
helper.CreateSnapshots() |
9231 | 9231 |
try: |
9232 |
if (self.op.shutdown and instance.admin_up and |
|
9233 |
not self.remove_instance): |
|
9234 |
assert not activate_disks |
|
9235 |
feedback_fn("Starting instance %s" % instance.name) |
|
9236 |
result = self.rpc.call_instance_start(src_node, instance, None, None) |
|
9237 |
msg = result.fail_msg |
|
9238 |
if msg: |
|
9239 |
feedback_fn("Failed to start instance: %s" % msg) |
|
9240 |
_ShutdownInstanceDisks(self, instance) |
|
9241 |
raise errors.OpExecError("Could not start instance: %s" % msg) |
|
9242 |
|
|
9232 | 9243 |
if self.export_mode == constants.EXPORT_MODE_LOCAL: |
9233 | 9244 |
(fin_resu, dresults) = helper.LocalExport(self.dst_node) |
9234 | 9245 |
elif self.export_mode == constants.EXPORT_MODE_REMOTE: |
Also available in: Unified diff