vol = self._create_volume()
conn = self.driver.initialize_connection(vol, connector)
self.assertTrue('3260' in conn['data']['target_portal'])
+ self.assertTrue(type(conn['data']['target_lun']) is int)
self.backend.add_iscsi_conn = mock.MagicMock()
self.backend.add_iscsi_conn.side_effect = putils.ProcessExecutionError
from cinder.volume import utils
from cinder.volume import volume_types
-HDS_HNAS_ISCSI_VERSION = '4.1.0'
+HDS_HNAS_ISCSI_VERSION = '4.3.0'
LOG = logging.getLogger(__name__)
Version 3.3.0: Fixed iSCSI target limitation error
Version 4.0.0: Added manage/unmanage features
Version 4.1.0: Fixed XML parser checks on blank options
+ Version 4.2.0: Fixed SSH and cluster_admin_ip0 verification
+ Version 4.3.0: Fixed attachment with os-brick 1.0.0
"""
def __init__(self, *args, **kwargs):
properties['target_discovered'] = False
properties['target_portal'] = hnas_portal
properties['target_iqn'] = fulliqn
- properties['target_lun'] = hlun
+ properties['target_lun'] = int(hlun)
properties['volume_id'] = volume['id']
properties['auth_username'] = connector['initiator']