Merge "Deprecate the "location_strategy" option"

This commit is contained in:
Zuul 2024-02-15 20:32:04 +00:00 committed by Gerrit Code Review
commit 06cc1782e1
3 changed files with 25 additions and 0 deletions

View File

@ -23,6 +23,13 @@ from glance.i18n import _, _LE
location_strategy_opts = [
cfg.StrOpt('location_strategy',
deprecated_for_removal=True,
deprecated_since="Caracal",
deprecated_reason=_("""
In Bobcat, a new weighing mechanism has been introduced, which makes the
location strategy obsolete. This option is scheduled to be removed during the
Dalmatian development cycle.
"""),
default='location_order',
choices=('location_order', 'store_type'),
help=_("""

View File

@ -24,6 +24,13 @@ from glance.i18n import _
store_type_opts = [
cfg.ListOpt('store_type_preference',
default=[],
deprecated_for_removal=True,
deprecated_since="Caracal",
deprecated_reason=_("""
In Bobcat, a new weighing mechanism has been introduced, which makes the
location strategy obsolete. This option is scheduled to be removed during the
Dalmatian development cycle.
"""),
help=_("""
Preference order of storage backends.

View File

@ -0,0 +1,11 @@
---
deprecations:
- |
The Glance API configuration options ``location_strategy`` and
``store_type_preference`` are deprecated in this release and are subject to
removal at the beginning of the Dalmatian development cycle, following the
`OpenStack standard deprecation policy
<https://governance.openstack.org/reference/tags/assert_follows-standard-deprecation.html>`_.
The weighing mechanism introduced in the Bobcat development cycle can be
used by operators who would like to prioritize certain stores over others.