The nova.scheduler.filters.metrics_filter Module

class MetricsFilter

Bases: nova.scheduler.filters.BaseHostFilter

Metrics Filter

This filter is used to filter out those hosts which don’t have the corresponding metrics so these the metrics weigher won’t fail due to these hosts.

host_passes(host_state, spec_obj)