[Bug 852005] New: KVM libvirtd Client killed on reboot shutdown
https://bugzilla.novell.com/show_bug.cgi?id=852005 https://bugzilla.novell.com/show_bug.cgi?id=852005#c0 Summary: KVM libvirtd Client killed on reboot shutdown Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Critical Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: gjn@gjn.priv.at QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0 On my system the shutdown or reboot in a KVM System (clients) is never working. When I make a reboot shutdown the clients are "killed", no suspend ore a shutdown. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=852005
https://bugzilla.novell.com/show_bug.cgi?id=852005#c
zhang jiajun
https://bugzilla.novell.com/show_bug.cgi?id=852005
https://bugzilla.novell.com/show_bug.cgi?id=852005#c
Bruce Rogers
https://bugzilla.novell.com/show_bug.cgi?id=852005
https://bugzilla.novell.com/show_bug.cgi?id=852005#c1
James Fehlig
https://bugzilla.novell.com/show_bug.cgi?id=852005
https://bugzilla.novell.com/show_bug.cgi?id=852005#c2
Günther J. Niederwimmer
https://bugzilla.novell.com/show_bug.cgi?id=852005
https://bugzilla.novell.com/show_bug.cgi?id=852005#c3
James Fehlig
https://bugzilla.novell.com/show_bug.cgi?id=852005
https://bugzilla.novell.com/show_bug.cgi?id=852005#c4
Günther J. Niederwimmer
https://bugzilla.novell.com/show_bug.cgi?id=852005
https://bugzilla.novell.com/show_bug.cgi?id=852005#c5
James Fehlig
https://bugzilla.novell.com/show_bug.cgi?id=852005
https://bugzilla.novell.com/show_bug.cgi?id=852005#c6
--- Comment #6 from Günther J. Niederwimmer
https://bugzilla.novell.com/show_bug.cgi?id=852005
https://bugzilla.novell.com/show_bug.cgi?id=852005#c7
James Fehlig
https://bugzilla.novell.com/show_bug.cgi?id=852005
https://bugzilla.novell.com/show_bug.cgi?id=852005#c8
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=852005
https://bugzilla.novell.com/show_bug.cgi?id=852005#c9
James Fehlig
https://bugzilla.novell.com/show_bug.cgi?id=852005
https://bugzilla.novell.com/show_bug.cgi?id=852005#c10
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=852005
https://bugzilla.novell.com/show_bug.cgi?id=852005#c11
James Fehlig
Do you want to reboot/halt your server and this should be propagated to the clients?
Well, not really propagated to the guests, but a chance for libvirt-guests to do whatever the user has configured it to do on host shutdown/startup.
Then this seems to more a problem of the libvirt-guests.service which is part of the package libvirt-client.
The problem is that systemd has killed off the guests by the time libvirt-guests runs. When libvirt starts a qemu guest, it uses the CreateMachine dbus call to create a scope for the guest. So each qemu guest is running inside a scope, which is not connected by any dependencies to either systemd-machine.service or libvirt-guests.service. When the host is shutdown, the scopes will be stopped in parallel to running libvirt-guests, and depending on timing, guests may killed with SIGTERM before libvirt-guests is able to process them. The libvirt community is looking for ways to solve this problem. One idea was to inject a 'After=libvirt-guests.service' when creating the scope, e.g. diff --git a/src/util/virsystemd.c b/src/util/virsystemd.c index 503fff7..3243d35 100644 --- a/src/util/virsystemd.c +++ b/src/util/virsystemd.c @@ -243,8 +243,9 @@ int virSystemdCreateMachine(const char *name, iscontainer ? "container" : "vm", (unsigned int)pidleader, rootdir ? rootdir : "", - 1, "Slice", "s", - slicename) < 0) + 2, + "Slice", "s", slicename, + "After", "s", "libvirt-guests.service") < 0) goto cleanup; ret = 0; but that caused the CreateMachine dbus call to fail. So it is not clear how to describe the dependency when creating the scope. This is where some advice from the systemd community would be helpful, but there has been no response to Cole's question on systemd-devel http://lists.freedesktop.org/archives/systemd-devel/2013-December/015534.htm... Since upstream has been silent, I'm hoping to get some advice from internal systemd experts on how to proceed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=852005
https://bugzilla.novell.com/show_bug.cgi?id=852005#c12
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=852005
https://bugzilla.novell.com/show_bug.cgi?id=852005#c13
--- Comment #13 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=852005
https://bugzilla.novell.com/show_bug.cgi?id=852005#c14
--- Comment #14 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=852005
https://bugzilla.novell.com/show_bug.cgi?id=852005#c15
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=852005
https://bugzilla.novell.com/show_bug.cgi?id=852005#c16
James Fehlig
https://bugzilla.novell.com/show_bug.cgi?id=852005
https://bugzilla.novell.com/show_bug.cgi?id=852005#c17
--- Comment #17 from James Fehlig
https://bugzilla.novell.com/show_bug.cgi?id=852005
https://bugzilla.novell.com/show_bug.cgi?id=852005#c18
Cédric Bosdonnat
https://bugzilla.novell.com/show_bug.cgi?id=852005
https://bugzilla.novell.com/show_bug.cgi?id=852005#c19
--- Comment #19 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=852005
https://bugzilla.novell.com/show_bug.cgi?id=852005#c
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=852005
https://bugzilla.novell.com/show_bug.cgi?id=852005#c20
--- Comment #20 from Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=852005
https://bugzilla.novell.com/show_bug.cgi?id=852005#c21
Thomas Hänig
https://bugzilla.novell.com/show_bug.cgi?id=852005
https://bugzilla.novell.com/show_bug.cgi?id=852005#c22
--- Comment #22 from James Fehlig
The system is openSuSE 13.1 32bit
Really? Does the processor support VT, or are you running qemu in TCG mode. At any rate, we don't support 32-bit virtualization hosts. Feel free to reopen this bug yourself if you can reproduce on a 64-bit system. Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=852005
Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com