Bug 700010
Summary: | libvirt does not logout of iscsi targets, causing system hang on shutdown | ||||||
---|---|---|---|---|---|---|---|
Product: | [Community] Virtualization Tools | Reporter: | Hans de Goede <hdegoede> | ||||
Component: | libvirt | Assignee: | Eric Blake <eblake> | ||||
Status: | CLOSED NEXTRELEASE | QA Contact: | |||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | unspecified | CC: | aquini, berrange, clalance, crobinso, dallan, dyasny, eblake, fritz, itamar, jforbes, laine, veillard, virt-maint | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2013-03-04 13:30:23 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Hans de Goede
2011-04-27 09:36:05 UTC
Ping? After upgrading to libvirt-0.8.8-7.fc15 which overwrote my modifed libvirt init script I had a system which would not reboot / shutdown again. At least at the: Should-Start: iscsi Should-Start: tgtd Should-Stop: iscsi Should-Stop: tgtd To the LSB header, working around the issue of libvirt not logging out of nodes it logged in to, thus hanging the system on halt. This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. Hans, sorry for the lack of response. I'm pretty sure the libvirt iscsi code hasn't changed probably up through rawhide, so this may still be an issue. Reassigning to F16 for now. Hans, can you confirm that is still an issue on F16+? Hi, (In reply to comment #8) > Hans, sorry for the lack of response. I'm pretty sure the libvirt iscsi code > hasn't changed probably up through rawhide, so this may still be an issue. > Reassigning to F16 for now. > > Hans, can you confirm that is still an issue on F16+? I'm afraid I've moved away from using iscsi as backing for vms in the mean time, so I cannot test this (without a lot of effort). Regards, Hans Since there hasn't been much noise about this WRT to fedora, moving to the upstream tracker. dallan, anyone on the libvirt team with an iscsi setup that can confirm if this issue still exists? I'm asking around. Hi guys, I just stumbled of this bugzilla entry when googl'ing for my reboot problems with Fedora 17 & 18. I had the very same behavior (sessions of an libvirt iscsi storage pool). What I noticed on F18 here: During shutdown, iscsid is stopped *before* libvirtd. This prevents libvirtd from properly logging out of the scsi-target it uses. I solved this in a similar manner like the OP (systemd is used now): Adding a startup-dependency on iscsid.service in libvirtd.service solved the problem. I'm attaching a diff of my custom /etc/systemd/system/libvirtd.service vs. the original /usr/lib/systemd/system/libvirtd.service. BTW: The fact, that after fixing the the startup/shutdown sequence the system behaves properly, proves that the culprit is NOT libvirtd but the init-scripts (resp. service units) included in the package. Cheers -Fritz Created attachment 703811 [details]
Diff, showing the additional startup dependency.
(In reply to comment #12) > Adding a startup-dependency on iscsid.service in libvirtd.service solved the > problem. I'm attaching a diff of my custom > /etc/systemd/system/libvirtd.service vs. the original > /usr/lib/systemd/system/libvirtd.service. Hi Fritz, thanks for the patch; would you mind sending it to libvir-list for discussion? (In reply to comment #14) > (In reply to comment #12) > > Adding a startup-dependency on iscsid.service in libvirtd.service solved the > > problem. I'm attaching a diff of my custom > > /etc/systemd/system/libvirtd.service vs. the original > > /usr/lib/systemd/system/libvirtd.service. > > Hi Fritz, thanks for the patch; would you mind sending it to libvir-list for > discussion? Not at all. Just posted it there. -Fritz Appears to be accepted. See: https://www.redhat.com/archives/libvir-list/2013-February/msg01727.html Will appear in 1.0.3. commit 443ec5c8c36e05819eae6157211b3691bebfe970 Author: Fritz Elfert <fritz> Date: Thu Feb 28 21:46:19 2013 +0100 libvirt does not logout of iscsi targets, causing system hang on shutdown There's a quite old bug entry here: https://bugzilla.redhat.com/show_bug.cgi?id=700010 I just stumbled over that very issue on F18. Doing a little bit debugging of the shutdown sequence, it turns out that - at least on my F18 installation - libvirtd is shutdown *after* iscsid, which makes it impossible for libvirt to perform the logout of the iscsi session properly. This patch simply adds another startup dependancy on iscsid.service which in turn delays iscsid shutdown until after libvirtd has stopped. Having that applied, the system shuts down properly again. Signed-off-by: Eric Blake <eblake> |