'Set up presentation for volume and specified connector'

def ise_present(self, volume, hostname_in, endpoints):

    LOG.debug('X-IO    ise_present    called.')
    host = self._find_host(endpoints)
    if (host['name'] == ''):
        self._create_host(hostname_in, endpoints)
        host = self._find_host(endpoints)
        if (host['name'] == ''):
            LOG.error('Host    could    not    be    found!')
            RaiseXIODriverException()
    elif (host['type'].upper() != 'OPENSTACK'):
        params = {'os': 'openstack'}
        resp = self._send_cmd('PUT', host['locator'], params)
        status = resp['status']
        if ((status != 201) and (status != 409)):
            LOG.error('Host    PUT    failed    (%s).', status)
            RaiseXIODriverException()
    target_lun = ''
    target_lun = self._present_volume(volume, host['name'], target_lun)
    data = {}
    data['target_lun'] = int(target_lun)
    data['volume_id'] = volume['id']
    return data
