d0f9c30916
virt-manager-1.0.1.tar.bz2 * virt-install/virt-xml: New --memorybacking option (Chen Hanxiao) * virt-install/virt-xml: New --memtune option (Chen Hanxiao) * virt-manager: UI for LXC <idmap> (Chen Hanxiao) * virt-manager: gsettings key to disable keygrab (Kjö Hansi Glaz) * virt-manager: Show domain state reason in the UI (Giuseppe Scrivano) * Fix a number of bugs found since the 1.0.0 release - Dropped 35 timestamp named patches now contained in new tarball - bnc#869165 - virt-manager: add connection - missing avahi virt-manager.spec - bnc#863821 - Xen unable to boot paravirtualized VMs installed with btrfs virtinst-pvgrub2-bootloader.patch - Switch out redhat defaults for suse defaults virtman-stable-os-support.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=155
21 lines
842 B
Diff
21 lines
842 B
Diff
Index: virt-manager-1.0.1/virtManager/domain.py
|
|
===================================================================
|
|
--- virt-manager-1.0.1.orig/virtManager/domain.py
|
|
+++ virt-manager-1.0.1/virtManager/domain.py
|
|
@@ -1892,7 +1892,14 @@ class vmmDomain(vmmLibvirtObject):
|
|
|
|
info = []
|
|
if not self._using_events() or self._enable_cpu_stats:
|
|
- info = self._backend.info()
|
|
+ try:
|
|
+ info = self._backend.info()
|
|
+ except:
|
|
+ self._backend = self.conn.vmm.lookupByName(self.get_name())
|
|
+ info = self._backend.info()
|
|
+ if info[0] == libvirt.VIR_DOMAIN_NOSTATE:
|
|
+ self._backend = self.conn.vmm.lookupByName(self.get_name())
|
|
+ info = self._backend.info()
|
|
|
|
if stats_update:
|
|
self._tick_stats(info)
|