(self, vmname)
| 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: |
no test coverage detected