From: Fritz Elfert Date: Thu, 28 Feb 2013 20:46:19 +0000 (+0100) Subject: libvirt does not logout of iscsi targets, causing system hang on shutdown X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=443ec5c8c36e05819eae6157211b3691bebfe970;p=libvirt.git 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 --- diff --git a/daemon/libvirtd.service.in b/daemon/libvirtd.service.in index 98dd5a0a97..aa5913bc10 100644 --- a/daemon/libvirtd.service.in +++ b/daemon/libvirtd.service.in @@ -8,6 +8,7 @@ Description=Virtualization daemon Before=libvirt-guests.service After=network.target After=dbus.service +After=iscsid.service [Service] EnvironmentFile=-/etc/sysconfig/libvirtd