The zfssaiscsi driver in initialize_connection()
returns iscsi_properties['target_lun'] as a string.
Solaris version of openstack expects it to be an int
and fails for the driver. Also other drivers report
it as an int. So this will make the zfssaiscsi driver
more consistent with other drivers.
Change-Id: Ifdbca7a02e2d797af9149cd185c2fa5dce661f66
Closes-bug: #
1538582
self.assertEqual(lcfg.zfssa_target_portal,
props['data']['target_portal'])
self.assertEqual(test_target_iqn, props['data']['target_iqn'])
- self.assertEqual('0', props['data']['target_lun'])
+ self.assertEqual(0, props['data']['target_lun'])
self.assertFalse(props['data']['target_discovered'])
self.drv.terminate_connection(self.test_vol, '')
iscsi_properties['target_discovered'] = False
iscsi_properties['target_portal'] = target_portal
iscsi_properties['target_iqn'] = iqn
- iscsi_properties['target_lun'] = lun
+ iscsi_properties['target_lun'] = int(lun)
iscsi_properties['volume_id'] = volume['id']
if 'provider_auth' in provider: