Revision 489fcbe9 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
2792 | 2792 |
constants.INSTANCE_REBOOT_HARD]: |
2793 | 2793 |
result = self.rpc.call_instance_reboot(node_current, instance, |
2794 | 2794 |
reboot_type, extra_args) |
2795 |
if result.failed or not result.data: |
|
2796 |
raise errors.OpExecError("Could not reboot instance") |
|
2795 |
msg = result.RemoteFailMsg() |
|
2796 |
if msg: |
|
2797 |
raise errors.OpExecError("Could not reboot instance: %s" % msg) |
|
2797 | 2798 |
else: |
2798 | 2799 |
if not self.rpc.call_instance_shutdown(node_current, instance): |
2799 | 2800 |
raise errors.OpExecError("could not shutdown instance for full reboot") |
Also available in: Unified diff