From 9809e4168e9c162209d0e3c8470659d2bd2f3c9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 26 Dec 2015 14:05:21 +0100 Subject: [PATCH] core: log pci detach error on VM shutdown Thanks @Rudd-O for pointing this out. --- core-modules/000QubesVm.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core-modules/000QubesVm.py b/core-modules/000QubesVm.py index fc15dde6..1996764f 100644 --- a/core-modules/000QubesVm.py +++ b/core-modules/000QubesVm.py @@ -1958,8 +1958,9 @@ class QubesVm(object): try: for pcidev in self.pcidevs: self.libvirt_domain.detachDevice(self._format_pci_dev(pcidev)) - except libvirt.libvirtError: - pass + except libvirt.libvirtError as e: + print >>sys.stderr, "WARNING: {}, continuing VM shutdown " \ + "anyway".format(str(e)) self.libvirt_domain.shutdown()