In Icehouse with "iscsi_use_multipath=true", detaching a multipath
iSCSI volume kills all iSCSI volumes visible from the nova compute node.
When we use different targets(IQNs) associated with same portal for
each different multipath device, all of the targets will be deleted
via disconnect_volume().
This patch fixes the behavior of detaching volume:
1. Extract the targets for the detached multipath device.
2. Delete/disconnect the targets for the detached multipath device.
Closes-Bug: #1382440
(cherry picked from commit 36aeedfd5eeb0345d66fa8456ed6a9447a6514a0)
Reviewed: https:/ /review. openstack. org/144066 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=7307dbaf6b9 734ddd456c7b0c1 d2c85e053ce61f
Committed: https:/
Submitter: Jenkins
Branch: stable/juno
commit 7307dbaf6b9734d dd456c7b0c1d2c8 5e053ce61f
Author: Hiroyuki Eguchi <email address hidden>
Date: Thu Dec 4 15:12:11 2014 +0900
Fix disconnecting necessary iSCSI sessions issue
In Icehouse with "iscsi_ use_multipath= true", detaching a multipath volume( ).
iSCSI volume kills all iSCSI volumes visible from the nova compute node.
When we use different targets(IQNs) associated with same portal for
each different multipath device, all of the targets will be deleted
via disconnect_
This patch fixes the behavior of detaching volume:
1. Extract the targets for the detached multipath device.
2. Delete/disconnect the targets for the detached multipath device.
Closes-Bug: #1382440
(cherry picked from commit 36aeedfd5eeb034 5d66fa8456ed6a9 447a6514a0)
Conflicts:
nova/ tests/unit/ virt/libvirt/ test_volume. py
Change-Id: I38eafdaee03d13 6282cfde1fd013e 322a4256cc4