'Initializes the connection and returns connection info.
The iscsi driver returns a driver_volume_type of \'iscsi\'.
The format of the driver data is defined in _get_iscsi_properties.
Example return value::
\'driver_volume_type\': \'iscsi\'
\'data\': {
\'target_discovered\': True,
\'target_iqn\': \'iqn.2010-10.org.openstack:volume-00000001\',
\'target_portal\': \'127.0.0.0.1:3260\',
\'volume_id\': 1,
\'discard\': False,
If the backend driver supports multiple connections for multipath and
for single path with failover, "target_portals", "target_iqns",
"target_luns" are also populated::
\'driver_volume_type\': \'iscsi\'
\'data\': {
\'target_discovered\': False,
\'target_iqn\': \'iqn.2010-10.org.openstack:volume1\',
\'target_iqns\': [\'iqn.2010-10.org.openstack:volume1\',
\'iqn.2010-10.org.openstack:volume1-2\'],
\'target_portal\': \'10.0.0.1:3260\',
\'target_portals\': [\'10.0.0.1:3260\', \'10.0.1.1:3260\']
\'target_lun\': 1,
\'target_luns\': [1, 1],
\'volume_id\': 1,
\'discard\': False,'

def initialize_connection(self, volume, connector):

    iscsi_properties = self._get_iscsi_properties(volume)
    return {'driver_volume_type': self.configuration.safe_get('iscsi_protocol'), 'data': iscsi_properties}
