Skip to content

Commit 1ab3e93

Browse files
authored
Merge pull request #64 from huangpeng5/1216
Support DM-Multipath for NvME Over RoCE
2 parents 6a92849 + 38a932a commit 1ab3e93

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Cinder/Zed/huawei_flow.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1992,7 +1992,7 @@ def __init__(self, client, *args, **kwargs):
19921992
self.client = client
19931993

19941994
@staticmethod
1995-
def _set_de_replicas(mapping_info):
1995+
def _set_dm_replicas(mapping_info):
19961996
portals = mapping_info.get('portals')
19971997
if len(portals) == 1:
19981998
return
@@ -2008,15 +2008,15 @@ def _set_de_replicas(mapping_info):
20082008
'dm_replicas': dm_replicas
20092009
})
20102010

2011-
def execute(self, target_ips, host_id, lun_id, lun_info, lun):
2011+
def execute(self, target_ips, lun_info):
20122012
mapping_info = {
2013-
'vol_uuid': lun.id,
2013+
'vol_uuid': lun_info.get('NGUID'),
20142014
'portals': [(ip, constants.ROCE_TARGET_PORT, 'rdma') for ip in target_ips],
20152015
'target_nqn': constants.ROCE_TARGET_NQN_PREFIX + self.client._login_device_id,
20162016
'discard': True,
20172017
'volume_nguid': lun_info.get('NGUID')
20182018
}
2019-
self._set_de_replicas(mapping_info)
2019+
self._set_dm_replicas(mapping_info)
20202020
return mapping_info
20212021

20222022

0 commit comments

Comments
 (0)