As most of the Cinder volume drivers that use iSCSI export one LUN
per iSCSI target, the Hyper-V driver was logging out the according
target each time a volume was disconnected.
This causes issues with some volume drivers that use multiple LUNs
per iSCSI target and may disconnect in-use targets.
This patch fixes the issue by checking if there are other LUNs
being used, disconnecting the iSCSI targets otherwise.
Reviewed: https:/ /review. openstack. org/123695 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=7cb0d9f8754 e4f6b20c709a72f f87126c9972f51
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7cb0d9f8754e4f6 b20c709a72ff871 26c9972f51
Author: Lucian Petrut <email address hidden>
Date: Wed Sep 24 12:22:35 2014 +0300
Hyper-V: Skip logging out in-use targets
As most of the Cinder volume drivers that use iSCSI export one LUN
per iSCSI target, the Hyper-V driver was logging out the according
target each time a volume was disconnected.
This causes issues with some volume drivers that use multiple LUNs
per iSCSI target and may disconnect in-use targets.
This patch fixes the issue by checking if there are other LUNs
being used, disconnecting the iSCSI targets otherwise.
Change-Id: Ida08e7129a7b79 40ddea488488ccc c7571a43b76
Closes-Bug: #1372815