cinder.scheduler.filters.ignore_attempted_hosts_filter module

cinder.scheduler.filters.ignore_attempted_hosts_filter module

class IgnoreAttemptedHostsFilter

Bases: 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.