[libvirt] libvirt does not logout of iscsi targets, causing system hang on shutdown

Fritz Elfert fritz at fritz-elfert.de
Thu Feb 28 20:46:19 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi guys,

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.

My local fix (diff) is attached. It 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.

I was asked to post that here for discussion...
So please consider this trivial change for the next update.

Cheers
 -Fritz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlEvwhoACgkQboM4mAMyprB9agCgpIkGbSBKpfB4e0q6aqSMVGam
rMoAnAtBpp3nFbleWLxJTbCt9EKO9Yx3
=2hHf
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirtd.service-iscsi-shutdown.diff
Type: text/x-patch
Size: 339 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130228/f1f1a853/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirtd.service-iscsi-shutdown.diff.sig
Type: application/pgp-signature
Size: 72 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130228/f1f1a853/attachment-0001.sig>


More information about the libvir-list mailing list