Comment 2 for bug 1112483

Revision history for this message
Brano Zarnovican (zarnovican) wrote :

I forgot to add sw versions..

ScientificLinux 6.3
kernel-2.6.32-279.11.1.el6.x86_64
iscsi-initiator-utils-6.2.0.872-41.el6.x86_64
Openstack Essex 2012.1.3 (most likely affects also Folsom, master)
Netapp OnTAP 7.3.6P5

One option to fix this problem:

During disconnect_volume()..
1) if this was the last LUN in a session, close the session (as it is doing now)
2) otherwise delete that single device

echo 1 > /sys/block/sdX/device/delete

This is easier said than done, because 'rootwrap' module does not natively support "echo 1 > /something" :(