The cinder.scheduler.filters.ignore_attempted_hosts_filter Module

The cinder.scheduler.filters.ignore_attempted_hosts_filter Module

class IgnoreAttemptedHostsFilter

Bases: cinder.scheduler.filters.BaseBackendFilter

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': {
           'backends': ['backend1', 'backend2'],
           'num_attempts': 3,
          }
}
backend_passes(backend_state, filter_properties)

Skip nodes that have already been attempted.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.