'Do initial query to populate ISE global id.'

def _send_query(self):

    body = ''
    url = '/query'
    resp = self._connect('GET', url, body)
    status = resp['status']
    if (status != 200):
        LOG.error('Array    query    failed    -    No    response    (%d)!', status)
        RaiseXIODriverException()
    xml_tree = etree.fromstring(resp['content'])
    support = {}
    support['thin'] = False
    support['clones'] = False
    support['thin-clones'] = False
    self.configuration.ise_affinity = False
    self.configuration.ise_qos = False
    capabilities = xml_tree.find('capabilities')
    if (capabilities is None):
        LOG.error('Array    query    failed.    No    capabilities    in    response!')
        RaiseXIODriverException()
    for node in capabilities:
        if (node.tag != 'capability'):
            continue
        capability = node
        if (capability.attrib['value'] == '49003'):
            self.configuration.ise_affinity = True
        elif (capability.attrib['value'] == '49004'):
            self.configuration.ise_qos = True
        elif (capability.attrib['value'] == '49005'):
            support['thin'] = True
        elif (capability.attrib['value'] == '49006'):
            support['clones'] = True
        elif (capability.attrib['value'] == '49007'):
            support['thin-clones'] = True
    if (not support['clones']):
        LOG.error('ISE    FW    version    is    not    compatible    with    OpenStack!')
        RaiseXIODriverException()
    self.configuration.san_thin_provision = support['thin-clones']
    globalid = xml_tree.find('globalid')
    if (globalid is None):
        LOG.error('Array    query    failed.    No    global    id    in    XML    response!')
        RaiseXIODriverException()
    self.ise_globalid = globalid.text
    controllers = xml_tree.find('controllers')
    if (controllers is None):
        LOG.error('Array    query    failed.    No    controllers    in    response!')
        RaiseXIODriverException()
    for node in controllers:
        if (node.tag != 'controller'):
            continue
        controller = node
        ipaddress = controller.find('ipaddress')
        ranktag = controller.find('rank')
        if (ipaddress is None):
            continue
        if (ranktag is None):
            continue
        rank = ranktag.attrib['value']
        if (rank is None):
            continue
        if (rank == '1'):
            self.ise_primary_ip = ipaddress.text
            LOG.debug('Setting    primary    IP    to:    %s.', self.ise_primary_ip)
        elif (rank == '0'):
            self.ise_secondary_ip = ipaddress.text
            LOG.debug('Setting    secondary    IP    to:    %s.', self.ise_secondary_ip)
    self.newquery = 0
    return support
