self.nms_mock.scsidisk.create_lu('cinder/volume1', {})
self.nms_mock.scsidisk.lu_shared('cinder/volume1')
self.nms_mock.scsidisk.add_lun_mapping_entry(
- 'cinder/volume1', {'target_group': 'cinder/volume1', 'lun': '0'})
+ 'cinder/volume1', {'target_group': 'cinder/volume1'})
self.mox.ReplayAll()
self.drv.create_volume(self.TEST_VOLUME_REF)
True, ),
('scsidisk', 'lu_shared', ('cinder/volume1', ), 0, False, ),
('scsidisk', 'add_lun_mapping_entry', ('cinder/volume1', {
- 'target_group': 'cinder/volume1', 'lun': '0'}),
+ 'target_group': 'cinder/volume1'}),
u"Unable to add view to zvol 'cinder/volume1' (LUNs in use: ):\n"
u" stmfadm: view entry exists\n", True, ),
]
if not self._is_lu_shared(zvol_name):
try:
self.nms.scsidisk.add_lun_mapping_entry(zvol_name, {
- 'target_group': target_group_name,
- 'lun': '0'})
+ 'target_group': target_group_name})
except nexenta.NexentaException as exc:
if not ensure or 'view entry exists' not in exc.args[0]:
raise