'Returns compute node for the host and nodename.'

def _get_compute_node(self, context, nodename):

    try:
        return objects.ComputeNode.get_by_host_and_nodename(context, self.host, nodename)
    except exception.NotFound:
        LOG.warning('No    compute    node    record    for    %(host)s:%(node)s', {'host': self.host, 'node': nodename})
