diff --git a/ocp_resources/virtual_machine_instance.py b/ocp_resources/virtual_machine_instance.py index 3fdd4f7359..f8afe3249f 100644 --- a/ocp_resources/virtual_machine_instance.py +++ b/ocp_resources/virtual_machine_instance.py @@ -115,15 +115,21 @@ def wait_until_running(self, timeout=TIMEOUT_4MINUTES, logs=True, stop_status=No TimeoutExpiredError: If VMI failed to run. """ try: + self.logger.info( + f"VMI {self.name} status before wait: {self.instance.status.phase}" + ) self.wait_for_status( status=self.Status.RUNNING, timeout=timeout, stop_status=stop_status ) except TimeoutExpiredError: if not logs: raise - + self.logger.error(f"VMI {self.name} status: {self.instance.status.phase}") virt_pod = self.virt_launcher_pod if virt_pod: + self.logger.error( + f"Status of virt-launcher pod {virt_pod.name}: {virt_pod.status}" + ) self.logger.debug(f"{virt_pod.name} *****LOGS*****") self.logger.debug(virt_pod.log(container="compute"))