Deprecate os_glance_reserved

The os_glance_reserved option was added to support old releases without
namespace reservation. The feature was added in Wallaby[1] and all of
the current supported versions (Zed and later) all support the feature.

[1] https://docs.openstack.org/releasenotes/glance/wallaby.html#upgrade-notes

Change-Id: I626ac99cd8f206b202bce3e743e419af40248638
This commit is contained in:
Takashi Kajinami 2024-01-24 10:55:20 +09:00
parent 8794025588
commit 9fcc4a3ffb
2 changed files with 16 additions and 6 deletions

View File

@ -0,0 +1,11 @@
---
upgrade:
- |
Default value of the ``[image-feature-enabled] os_glance_reserved`` has
been changed from ``False`` to ``True`` and now the reservation of
os_glance namespace is tested by default.
deprecations:
- |
The ``[image-feature-enabled] os_glance_reserved`` option has been
deprecatd because glance reserves the os_glance namespace since Wallaby.

View File

@ -690,13 +690,12 @@ ImageFeaturesGroup = [
cfg.BoolOpt('import_image', cfg.BoolOpt('import_image',
default=False, default=False,
help="Is image import feature enabled"), help="Is image import feature enabled"),
# NOTE(danms): Starting mid-Wallaby glance began enforcing the
# previously-informal requirement that os_glance_* properties are
# reserved for internal use. Thus, we can only run these checks
# if we know we are on a new enough glance.
cfg.BoolOpt('os_glance_reserved', cfg.BoolOpt('os_glance_reserved',
default=False, default=True,
help="Should we check that os_glance namespace is reserved"), help="Should we check that os_glance namespace is reserved",
deprecated_for_removal=True,
deprecated_reason='os_glance namespace is always reserved '
'since Wallaby'),
cfg.BoolOpt('manage_locations', cfg.BoolOpt('manage_locations',
default=False, default=False,
help=('Is show_multiple_locations enabled in glance. ' help=('Is show_multiple_locations enabled in glance. '