Multiple backend support for scrubber

In Rocky multiple backend support is added as an experimental API
feature. As of now multiple backend works with glance-api but it
is missing in glance-scrubber.

Made provision to initialize multiple backend related config options
in scrubber.

NOTE:
Operator needs to define multiple backends related config options in
glance-scrubber.conf.

Change-Id: I7327ff5db8fa19e6813a0fe0fb657eab19f8b61f
Closes-Bug: #1794225
This commit is contained in:
Abhishek Kekane 2018-09-25 05:20:27 +00:00
parent 733095a899
commit 915ac7ea17
2 changed files with 26 additions and 3 deletions

View File

@ -80,10 +80,16 @@ def main():
config.parse_args()
logging.setup(CONF, 'glance')
CONF.import_opt('enabled_backends', 'glance.common.wsgi')
glance_store.register_opts(config.CONF)
glance_store.create_stores(config.CONF)
glance_store.verify_default_store()
if CONF.enabled_backends:
glance_store.register_store_opts(CONF)
glance_store.create_multi_stores(CONF)
glance_store.verify_store()
else:
glance_store.register_opts(CONF)
glance_store.create_stores(CONF)
glance_store.verify_default_store()
if CONF.restore and CONF.daemon:
sys.exit("ERROR: The restore and daemon options should not be set "

View File

@ -0,0 +1,17 @@
---
features:
- |
The glance-scrubber utility is now multistore aware. If you
are using the multistore feature, you must define configuration
options for ``os_glance_tasks_store`` and ``os_glance_staging_store``
in the ``glance-scrubber.conf`` file. See the "Reserved Stores"
section of the "Multi Store Support" chapter of the Glance
Administration Guide for more information.
upgrade:
- |
If you are using the multistore feature, you must define
configuration options for ``os_glance_tasks_store`` and
``os_glance_staging_store`` in the ``glance-scrubber.conf`` file.
See the "Reserved Stores" section of the "Multi Store Support"
chapter of the Glance Administration Guide for more information.