]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libvirt does not logout of iscsi targets, causing system hang on shutdown
authorFritz Elfert <fritz@fritz-elfert.de>
Thu, 28 Feb 2013 20:46:19 +0000 (21:46 +0100)
committerEric Blake <eblake@redhat.com>
Mon, 4 Mar 2013 13:28:57 +0000 (06:28 -0700)
commit443ec5c8c36e05819eae6157211b3691bebfe970
treef9732ffb11838387792e6f34b8bd8af9418ee95a
parent9933a6b2fa8182d8ec676f7f7f00af7063a387f9
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@redhat.com>
daemon/libvirtd.service.in