Fixes dettach volumes in Windows cinder plugin
The patch fixes issues when desassigning target to initiators in the terminate_connection method. The method now takes the right parameter coming from provider location. Change-Id: I2ea1ac7f46e3a24a6493af8eba46a113126e1117 Fixes: bug #1153968
This commit is contained in:
parent
2d84a97df2
commit
6de6cfebd4
|
@ -119,10 +119,11 @@ class WindowsDriver(driver.ISCSIDriver):
|
|||
longer access it.
|
||||
"""
|
||||
initiator_name = connector['initiator']
|
||||
provider_location = volume['provider_location']
|
||||
#DesAssigning target to initiators
|
||||
wt_idmethod = self._conn_wmi.WT_IDMethod(HostName=volume['name'],
|
||||
wt_idmethod = self._conn_wmi.WT_IDMethod(HostName=provider_location,
|
||||
Method=4,
|
||||
Value=initiator_name)
|
||||
Value=initiator_name)[0]
|
||||
wt_idmethod.Delete_()
|
||||
|
||||
def create_volume(self, volume):
|
||||
|
|
Loading…
Reference in New Issue