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
20 lines
767 B
Diff
20 lines
767 B
Diff
bnc#872777
|
|
|
|
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
|
|
@@ -1330,7 +1330,11 @@ class vmmDomain(vmmLibvirtObject):
|
|
def shutdown(self):
|
|
self._install_abort = True
|
|
self._unregister_reboot_listener()
|
|
- self._backend.shutdown()
|
|
+ try:
|
|
+ self._backend.shutdown()
|
|
+ except libvirt.libvirtError:
|
|
+ logging.debug("Initial shutdown failed. Attempting shutdown with acpi power button")
|
|
+ self._backend.shutdownFlags(libvirt.VIR_DOMAIN_SHUTDOWN_ACPI_POWER_BTN)
|
|
self.idle_add(self.force_update_status)
|
|
|
|
def reboot(self):
|