4648861824
535584ed-fix-target-validation-when-editing-device.patch - bnc#874408 - virt-manager and libvirt issues persist - unable to create or launch virtman-vminstall.patch - Upstream bug fix 5350d9cc-display-error-on-empty-installation-URL.patch - Dropped unused and unnecessary patches virtinst-cdrom.patch virtman-update-backend.patch virtman-slow-mouse.patch virtman-reverse-serialcon.patch - Reordered some patches - Upstream bug fixes 534bcfa0-use-uniformed-expression-of-Default.patch 534be092-early-detect-ftp-connection-errors.patch 534d45db-hiding-removebutton-for-USB-controller.patch 534d6406-display-the-domain-for-PCI-devices.patch 534eafe4-avoid-useless-errors-when-connection-closes.patch - bnc#872789 - XEN domain fails to start when xen disk is atttached virtinst-xenbus-disk-index-fix.patch - bnc#872777 - virt-manager - Error shutting down domain: internal error: Failed to shutdown domain '3' with libxenlight virtman-shutdown-with-acpi-button.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=166
35 lines
1.3 KiB
Diff
35 lines
1.3 KiB
Diff
Subject: connection: Avoid some useless errors when connection closes
|
|
From: Cole Robinson crobinso@redhat.com Wed Apr 16 12:23:57 2014 -0400
|
|
Date: Wed Apr 16 12:29:24 2014 -0400:
|
|
Git: 873c22d19a23f1cc51845c82eb9dfe8b4d60b2d6
|
|
|
|
- Run the connection
|
|
- Restart libvirtd, connection is auto closed
|
|
- Re-run the connection
|
|
- Manually stop it, see errors in the logs about unknown event IDs
|
|
|
|
We need to unconditionally clear our event ID list
|
|
|
|
Index: virt-manager-1.0.1/virtManager/connection.py
|
|
===================================================================
|
|
--- virt-manager-1.0.1.orig/virtManager/connection.py
|
|
+++ virt-manager-1.0.1/virtManager/connection.py
|
|
@@ -970,14 +970,14 @@ class vmmConnection(vmmGObject):
|
|
if not self._backend.is_closed():
|
|
for eid in self._domain_cb_ids:
|
|
self._backend.domainEventDeregisterAny(eid)
|
|
- self._domain_cb_ids = []
|
|
-
|
|
for eid in self._network_cb_ids:
|
|
self._backend.networkEventDeregisterAny(eid)
|
|
- self._network_cb_ids = []
|
|
except:
|
|
logging.debug("Failed to deregister events in conn cleanup",
|
|
exc_info=True)
|
|
+ finally:
|
|
+ self._domain_cb_ids = []
|
|
+ self._network_cb_ids = []
|
|
|
|
self._backend.close()
|
|
self.record = []
|