remove _rescan_iscsi from disconnect_volume_multipath_iscsi
terminating instance that attached more than one volume, disconnect the first volume is ok, but the first volume is not removed, then disconnect the second volume, disconnect_volume_multipath_iscsi will call _rescan_iscsi so that rescan the first device, although the instance is destroyed, the first device is residual, therefor we don't need rescan when disconnect volume. Change-Id: I7f2c688aba9e69afaf370b2badc86a2bb3ee899d Closes-Bug:#1402535
This commit is contained in:
parent
98f7e8dae3
commit
2833f8c08f
|
@ -760,8 +760,6 @@ Setting up iSCSI targets: unused
|
|||
('iscsiadm', '-m', 'node', '--rescan'),
|
||||
('iscsiadm', '-m', 'session', '--rescan'),
|
||||
('multipath', '-r'),
|
||||
('iscsiadm', '-m', 'node', '--rescan'),
|
||||
('iscsiadm', '-m', 'session', '--rescan'),
|
||||
('multipath', '-r'),
|
||||
('iscsiadm', '-m', 'discoverydb',
|
||||
'-t', 'sendtargets',
|
||||
|
|
|
@ -600,7 +600,6 @@ class LibvirtISCSIVolumeDriver(LibvirtBaseVolumeDriver):
|
|||
|
||||
def _disconnect_volume_multipath_iscsi(self, iscsi_properties,
|
||||
multipath_device):
|
||||
self._rescan_iscsi()
|
||||
self._rescan_multipath()
|
||||
block_devices = self.connection._get_all_block_devices()
|
||||
devices = []
|
||||
|
|
Loading…
Reference in New Issue