else:
protocol = 'fibre_channel'
exp_result = {'vendor_name': "X-IO",
- 'driver_version': "1.1.3",
+ 'driver_version': "1.1.4",
'volume_backend_name': backend_name,
'reserved_percentage': 0,
'total_capacity_gb': 100,
exp_result = {}
if self.configuration.ise_protocol == 'iscsi':
exp_result = {"driver_volume_type": "iscsi",
- "data": {"target_lun": '1',
+ "data": {"target_lun": 1,
"volume_id": '1',
"target_discovered": False,
"target_iqn": ISE_IQN,
"target_portal": ISE_ISCSI_IP1 + ":3260"}}
elif self.configuration.ise_protocol == 'fibre_channel':
exp_result = {"driver_volume_type": "fibre_channel",
- "data": {"target_lun": '1',
+ "data": {"target_lun": 1,
"volume_id": '1',
"target_discovered": True,
"initiator_target_map": ISE_INIT_TARGET_MAP,
exp_result = {}
if self.configuration.ise_protocol == 'iscsi':
exp_result = {"driver_volume_type": "iscsi",
- "data": {"target_lun": '1',
+ "data": {"target_lun": 1,
"volume_id": '1',
"target_discovered": False,
"target_iqn": ISE_IQN,
"target_portal": ISE_ISCSI_IP1 + ":3260"}}
elif self.configuration.ise_protocol == 'fibre_channel':
exp_result = {"driver_volume_type": "fibre_channel",
- "data": {"target_lun": '1',
+ "data": {"target_lun": 1,
"volume_id": '1',
"target_discovered": True,
"initiator_target_map": ISE_INIT_TARGET_MAP,
exp_result = {}
if self.configuration.ise_protocol == 'iscsi':
exp_result = {"driver_volume_type": "iscsi",
- "data": {"target_lun": '1',
+ "data": {"target_lun": 1,
"volume_id": '2',
"target_discovered": False,
"target_iqn": ISE_IQN,
'auth_password': 'abc'}}
elif self.configuration.ise_protocol == 'fibre_channel':
exp_result = {"driver_volume_type": "fibre_channel",
- "data": {"target_lun": '1',
+ "data": {"target_lun": 1,
"volume_id": '2',
"target_discovered": True,
"initiator_target_map": ISE_INIT_TARGET_MAP,
class XIOISEDriver(object):
- VERSION = '1.1.3'
+ VERSION = '1.1.4'
# Version Changes
# 1.0.0 Base driver
# 1.1.1 Fix retry loop (Bug 1429283)
# 1.1.2 Fix host object deletion (Bug 1433450).
# 1.1.3 Wait for volume/snapshot to be deleted.
+ # 1.1.4 Force target_lun to be int (Bug 1549048)
def __init__(self, *args, **kwargs):
super(XIOISEDriver, self).__init__()
target_lun = self._present_volume(volume, host['name'], target_lun)
# Fill in target information.
data = {}
- data['target_lun'] = target_lun
+ data['target_lun'] = int(target_lun)
data['volume_id'] = volume['id']
return data