The cinder.openstack.common.scheduler.filters.ignore_attempted_hosts_filter Module

class IgnoreAttemptedHostsFilter

Bases: cinder.openstack.common.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.openstack.common.scheduler.filters.extra_specs_ops Module

Next topic

The cinder.openstack.common.scheduler.filters.json_filter Module

This Page