'Returns True for only active compute nodes.'

def host_passes(self, host_state, spec_obj):

    service = host_state.service
    if service['disabled']:
        LOG.debug('%(host_state)s    is    disabled,    reason:    %(reason)s', {'host_state': host_state, 'reason': service.get('disabled_reason')})
        return False
    elif (not self.servicegroup_api.service_is_up(service)):
        LOG.warning(_LW('%(host_state)s    has    not    been    heard    from    in    a    while'), {'host_state': host_state})
        return False
    return True
