'Gets iscsi configuration.
:target_discovered:    boolean indicating whether discovery was used
:target_iqn:    the IQN of the iSCSI target
:target_portal:    the portal of the iSCSI target
:target_lun:    the lun of the iSCSI target
:volume_id:    the id of the volume (currently used by xen)
:auth_method:, :auth_username:, :auth_password:
the authentication details. Right now, either auth_method is not
present meaning no authentication, or auth_method == `CHAP`
meaning use CHAP with the specified credentials.
multiple connection return
:target_iqns, :target_portals, :target_luns, which contain lists of
multiple values. The main portal information is also returned in
:target_iqn, :target_portal, :target_lun for backward compatibility.'

def _get_iscsi_properties(self, lunmap):

    portals = self.client.get_iscsi_portals()
    if (not portals):
        msg = _('XtremIO    not    configured    correctly,    no    iscsi    portals    found')
        LOG.error(msg)
        raise exception.VolumeDriverException(message=msg)
    portal = RANDOM.choice(portals)
    portal_addr = ('%(ip)s:%(port)d' % {'ip': portal['ip-addr'].split('/')[0], 'port': portal['ip-port']})
    tg_portals = [('%(ip)s:%(port)d' % {'ip': p['ip-addr'].split('/')[0], 'port': p['ip-port']}) for p in portals]
    properties = {'target_discovered': False, 'target_iqn': portal['port-address'], 'target_lun': lunmap['lun'], 'target_portal': portal_addr, 'target_iqns': [p['port-address'] for p in portals], 'target_portals': tg_portals, 'target_luns': ([lunmap['lun']] * len(portals))}
    return properties
