bac3f6bcbd
virt-manager virtinst-vol-default-nocow.patch - bsc#960724 - virt-manager fails to create Virtual machines on a CentOS7 host virtinst-set-qemu-emulator.patch - Upstream bug fix 89c3638b-fix-detection-that-libvirtd-is-stopped.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=290
33 lines
1.4 KiB
Diff
33 lines
1.4 KiB
Diff
Subject: connection: fix detection that libvirtd is stopped
|
|
From: Pavel Hrdina phrdina@redhat.com Tue Jan 5 10:17:37 2016 +0100
|
|
Date: Fri Jan 8 10:21:42 2016 +0100:
|
|
Git: 89c3638b63e5b251db92ef7066c1753bfa469d38
|
|
|
|
In case that libvirtd is stopped, we could receive another type of error
|
|
from libvirt "libvirtError: internal error: client socket is closed".
|
|
This one is usually reported from local connection.
|
|
|
|
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
|
|
Index: virt-manager-1.3.2/virtManager/connection.py
|
|
===================================================================
|
|
--- virt-manager-1.3.2.orig/virtManager/connection.py
|
|
+++ virt-manager-1.3.2/virtManager/connection.py
|
|
@@ -1298,6 +1298,7 @@ class vmmConnection(vmmGObject):
|
|
from_remote = getattr(libvirt, "VIR_FROM_REMOTE", None)
|
|
from_rpc = getattr(libvirt, "VIR_FROM_RPC", None)
|
|
sys_error = getattr(libvirt, "VIR_ERR_SYSTEM_ERROR", None)
|
|
+ internal_error = getattr(libvirt, "VIR_ERR_INTERNAL_ERROR", None)
|
|
|
|
dom = -1
|
|
code = -1
|
|
@@ -1309,7 +1310,7 @@ class vmmConnection(vmmGObject):
|
|
self.get_uri(), exc_info=True)
|
|
|
|
if (dom in [from_remote, from_rpc] and
|
|
- code in [sys_error]):
|
|
+ code in [sys_error, internal_error]):
|
|
e = None
|
|
logging.debug("Not showing user error since libvirtd "
|
|
"appears to have stopped.")
|