The cinder.scheduler.filters.ignore_attempted_hosts_filter Module

class IgnoreAttemptedHostsFilter

Bases: cinder.scheduler.filters.BaseHostFilter

Filter out previously attempted hosts

A host passes this filter if it has not already been attempted for scheduling. The scheduler needs to add previously attempted hosts to the ‘retry’ key of filter_properties in order for this to work correctly. For example:

{
 'retry': {
           'hosts': ['host1', 'host2'],
           'num_attempts': 3,
          }
}
host_passes(host_state, filter_properties)

Skip nodes that have already been attempted.

Previous topic

The cinder.scheduler.filters.extra_specs_ops Module

Next topic

The cinder.scheduler.filters.instance_locality_filter Module

Project Source

This Page