diff options
author | Zuul <zuul@review.opendev.org> | 2021-08-21 02:51:28 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2021-08-21 02:51:28 +0000 |
commit | 033af941792a9ae510c8d6b2cc318f062f0e1c66 (patch) | |
tree | dce39cb328e4e62ac33fe99576bb45a88f53ca17 /nova/scheduler | |
parent | 9149ac6ab5da49a82b4ece90880c2b0a43308a76 (diff) | |
parent | 7c7a2a142d74a7deeda2a79baf21b689fe32cd08 (diff) | |
download | nova-033af941792a9ae510c8d6b2cc318f062f0e1c66.tar.gz |
Merge "Deprecate filters that have been replaced by placement filters"
Diffstat (limited to 'nova/scheduler')
-rw-r--r-- | nova/scheduler/filters/availability_zone_filter.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/nova/scheduler/filters/availability_zone_filter.py b/nova/scheduler/filters/availability_zone_filter.py index f48a9f3571..a0f4a669b0 100644 --- a/nova/scheduler/filters/availability_zone_filter.py +++ b/nova/scheduler/filters/availability_zone_filter.py @@ -37,6 +37,21 @@ class AvailabilityZoneFilter(filters.BaseHostFilter): RUN_ON_REBUILD = False + def __init__(self): + super().__init__() + if CONF.scheduler.query_placement_for_availability_zone: + LOG.warning( + "The 'AvailabilityZoneFilter' is deprecated since the 24.0.0 " + "(Xena) release. Since the 18.0.0 (Rocky) release, nova " + "has supported mapping AZs to placement aggregates. " + "The feature is enabled by the " + "'query_placement_for_availability_zone' config option and " + "is now enabled by default. As such, the " + "'AvailabilityZoneFilter' is no longer required. Nova is " + "currently configured to use both placement and the " + "AvailabilityZoneFilter for AZ enforcement." + ) + def host_passes(self, host_state, spec_obj): availability_zone = spec_obj.availability_zone |