conf: Deprecate AggregateImagePropertiesIsolation opts

The 'AggregateImagePropertiesIsolation' scheduler filter allows users to
filter host aggregates by comparing aggregate and image metadata. The
'[filter_scheduler] aggregate_image_properties_isolation_namespace' and
'[filter_scheduler] aggregate_image_properties_isolation_separator'
options purport to allow users to specify a prefix to use for both the
aggregate and image metadata keys, allowing users to do e.g.:

  openstack image set --property customized.os_type=linux $IMAGE
  openstack aggregate set --property customized.os_type=windows $AGG1
  openstack aggregate set --property customized.os_type=linux $AGG2

However, as noted in change If7245a90711bd2ea13095ba26b9bc82ea3e17202,
this is no longer possible since we introduced the 'ImageMetaProps' o.vo
in Liberty and promptly lost the ability to see any non-o.vo image
metadata properties from glance.

There's a possibility, however slight, that some people are using
namespaces that match actual nova namespaces such as 'hw' and a
separator of '_', but those will continue to work just fine. Setting
anything else will result in the scheduler filter failing since the
image property will always appear to be absent. As a result, these could
be outright removed rather than deprecated. We choose to deprecate just
so people can see the warnings.

Change-Id: Ide763d75e42427a9df3673313895ef47b8727802
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane
2021-03-26 17:18:35 +00:00
parent 18a7dcb6e8
commit fcbedce558
3 changed files with 39 additions and 4 deletions
@@ -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