MCPcopy Create free account
hub / github.com/apache/cloudstack / reboot

Method reboot

tools/marvin/marvin/lib/base.py:783–793  ·  view source on GitHub ↗

Reboot the instance

(self, apiclient, forced=None)

Source from the content-addressed store, hash-verified

781 return
782
783 def reboot(self, apiclient, forced=None):
784 """Reboot the instance"""
785 cmd = rebootVirtualMachine.rebootVirtualMachineCmd()
786 cmd.id = self.id
787 if forced:
788 cmd.forced = forced
789 apiclient.rebootVirtualMachine(cmd)
790
791 response = self.getState(apiclient, VirtualMachine.RUNNING)
792 if response[0] == FAIL:
793 raise Exception(response[1])
794
795 def recover(self, apiclient):
796 """Recover the instance"""

Callers

nothing calls this directly

Implementers 2

VMEntityVOengine/schema/src/main/java/org/apache
VMInstanceVOengine/schema/src/main/java/com/cloud/

Calls 2

getStateMethod · 0.95
rebootVirtualMachineMethod · 0.65

Tested by

no test coverage detected