Deprecate allow_additional_image_properties

Change-Id: I1c602e3817e0e89a6f7ebbf79adc1156d0b8a1aa
Implements: bp deprecate-allow-custom-props
This commit is contained in:
Brian Rosmaita 2020-03-25 16:38:47 -04:00
parent 30ece7aa28
commit 170a4035da
2 changed files with 21 additions and 0 deletions

View File

@ -171,6 +171,13 @@ _DEPRECATE_GLANCE_V1_MSG = _('The Images (Glance) version 1 API has been '
common_opts = [
cfg.BoolOpt('allow_additional_image_properties', default=True,
deprecated_for_removal=True,
deprecated_since="Ussuri",
deprecated_reason=_("""
This option is redundant. Control custom image property usage via the
'image_property_quota' configuration option. This option is scheduled
to be removed during the Victoria development cycle.
"""),
help=_("""
Allow users to add additional/custom properties to images.

View File

@ -0,0 +1,14 @@
---
deprecations:
- |
The Glance API configuration option ``allow_additional_image_properties``
is deprecated in this release and is subject to removal at the beginning
of the Victoria development cycle, following the `OpenStack standard
deprecation policy
<https://governance.openstack.org/reference/tags/assert_follows-standard-deprecation.html>`_.
The migration path for operators who were using this option in its
nondefault ``False`` setting is to set the ``image_property_quota``
option to ``0``. Since many other OpenStack services depend upon the
ability to read/write custom image properties, however, we suspect that
no one has been using the option with a nondefault value.