'Check if host passes specified image properties.
Returns True for compute nodes that satisfy image properties
contained in the request_spec.'

def host_passes(self, host_state, spec_obj):

    image_props = (spec_obj.image.properties if spec_obj.image else {})
    if (not self._instance_supported(host_state, image_props, host_state.hypervisor_version)):
        LOG.debug('%(host_state)s    does    not    support    requested    instance_properties', {'host_state': host_state})
        return False
    return True
