From 65959d63937805afadc385091a3100c53172b57c Mon Sep 17 00:00:00 2001 From: Abhishek Kekane Date: Tue, 10 Jul 2018 15:17:22 +0000 Subject: [PATCH] Deprecate stores, default_store config options Related to blueprint multi-store-backend-support Change-Id: I50189862454ada978eb401ec24a46988517ea73b --- glance_store/backend.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/glance_store/backend.py b/glance_store/backend.py index 8aa965b7..d283bd2a 100644 --- a/glance_store/backend.py +++ b/glance_store/backend.py @@ -33,6 +33,16 @@ LOG = logging.getLogger(__name__) _STORE_OPTS = [ cfg.ListOpt('stores', default=['file', 'http'], + deprecated_for_removal=True, + deprecated_since='Rocky', + deprecated_reason=_(""" +This option is deprecated against new config option +``enabled_backends`` which helps to configure multiple backend stores +of different schemes. + +This option is scheduled for removal in the Stein development +cycle. +"""), help=_(""" List of enabled Glance stores. @@ -59,6 +69,17 @@ Related Options: choices=('file', 'filesystem', 'http', 'https', 'swift', 'swift+http', 'swift+https', 'swift+config', 'rbd', 'sheepdog', 'cinder', 'vsphere'), + + deprecated_for_removal=True, + deprecated_since='Rocky', + deprecated_reason=_(""" +This option is deprecated against new config option +``default_backend`` which acts similar to ``default_store`` config +option. + +This option is scheduled for removal in the Stein development +cycle. +"""), help=_(""" The default scheme to use for storing images.