Merge "conf: Deprecate AggregateImagePropertiesIsolation opts"

This commit is contained in:
Zuul
2026-03-01 17:53:08 +00:00
committed by Gerrit Code Review
3 changed files with 39 additions and 4 deletions

View File

@@ -844,11 +844,15 @@ Related options:
* ``[filter_scheduler] isolated_images``
* ``[filter_scheduler] isolated_hosts``
"""),
# TODO(stephenfin): Consider deprecating these next two options: they're
# effectively useless now that we don't support arbitrary image metadata
# properties
cfg.StrOpt(
"aggregate_image_properties_isolation_namespace",
deprecated_for_removal=True,
deprecated_since="33.0.0",
deprecated_reason="""
It no longer possible to filter on arbitrary image metadata properties. Support
for this was removed in 12.0.0 (Liberty). As a result, this option is no longer
useful.
""",
help="""
Image property namespace for use in the host aggregate.
@@ -873,6 +877,13 @@ Related options:
cfg.StrOpt(
"aggregate_image_properties_isolation_separator",
default=".",
deprecated_for_removal=True,
deprecated_since="33.0.0",
deprecated_reason="""
It no longer possible to filter on arbitrary image metadata properties. Support
for this was removed in 12.0.0 (Liberty). As a result, this option is no longer
useful.
""",
help="""
Separator character(s) for image property namespace and name.

View File

@@ -15,7 +15,6 @@
from oslo_log import log as logging
import nova.conf
from nova.scheduler import filters
from nova.scheduler.filters import utils
@@ -42,6 +41,18 @@ class AggregateImagePropertiesIsolation(filters.BaseHostFilter):
cfg_separator = (CONF.filter_scheduler.
aggregate_image_properties_isolation_separator)
if cfg_namespace:
LOG.warning(
"It is no longer possible to filter on arbitrary image "
"metadata properties, which includes standard properties "
"prefixed with '[filter_scheduler] "
"aggregate_image_properties_isolation_namespace'. "
"You should unset this option and consider using the isolated "
"aggregate filtering feature instead. "
"See '[scheduler] enable_isolated_aggregate_filtering' for "
"more information."
)
image_props = spec_obj.image.properties if spec_obj.image else {}
metadata = utils.aggregate_metadata_get_by_host(host_state)

View File

@@ -0,0 +1,13 @@
---
deprecations:
- |
The ``[filter_scheduler] aggregate_image_properties_isolation_namespace``
and ``[filter_scheduler] aggregate_image_properties_isolation_separator``
config options have been deprecated for removal. These have been
effectively unusable since the 12.0.0 (Liberty) release, which removed the
ability for the ``AggregateImagePropertiesIsolation`` scheduler filter to
filter on any non-standard image metadata property. Users who require this
functionality should consider enforcing `aggregate isolation using
placement traits`__.
__ https://docs.openstack.org/nova/latest/reference/isolate-aggregates.html