[KVM-AUTOTEST PATCH 17/26] KVM test: kill_unresponsive_vms: log exception message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If a VM is unresponsive (login() raises an exception), log it.

Signed-off-by: Michael Goldish <mgoldish@xxxxxxxxxx>
---
 client/tests/kvm/kvm_preprocessing.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/client/tests/kvm/kvm_preprocessing.py b/client/tests/kvm/kvm_preprocessing.py
index 7b3b75b..f7d948c 100644
--- a/client/tests/kvm/kvm_preprocessing.py
+++ b/client/tests/kvm/kvm_preprocessing.py
@@ -337,7 +337,8 @@ def postprocess(test, params, env):
                 try:
                     session = vm.login()
                     session.close()
-                except (kvm_utils.LoginError, kvm_vm.VMError):
+                except (kvm_utils.LoginError, kvm_vm.VMError), e:
+                    logging.warn(e)
                     vm.destroy(gracefully=False)
 
     # Kill all kvm_subprocess tail threads
-- 
1.7.3.4

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux