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

Method waitForSystemVMAgent

test/integration/smoke/test_ssvm.py:69–81  ·  view source on GitHub ↗
(self, vmname)

Source from the content-addressed store, hash-verified

67 raise Exception("Warning: Exception during cleanup : %s" % e)
68
69 def waitForSystemVMAgent(self, vmname):
70 def checkRunningAgent():
71 list_host_response = list_hosts(
72 self.apiclient,
73 name=vmname
74 )
75 if isinstance(list_host_response, list):
76 return list_host_response[0].state == 'Up', None
77 return False, None
78
79 res, _ = wait_until(3, 300, checkRunningAgent)
80 if not res:
81 raise Exception("Failed to wait for SSVM agent to be Up")
82
83 def checkForRunningSystemVM(self, ssvm, ssvm_type=None):
84 if not ssvm:

Callers 9

test_05_stop_ssvmMethod · 0.95
test_06_stop_cpvmMethod · 0.95
test_07_reboot_ssvmMethod · 0.95
test_08_reboot_cpvmMethod · 0.95
test_11_destroy_ssvmMethod · 0.95
test_12_destroy_cpvmMethod · 0.95

Calls 1

wait_untilFunction · 0.90

Tested by

no test coverage detected