Merge "glance-cache-prefetcher: Set up access to multistore backends"
This commit is contained in:
commit
2866713392
@ -48,10 +48,16 @@ def main():
|
||||
try:
|
||||
config.parse_cache_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()
|
||||
|
||||
app = prefetcher.Prefetcher()
|
||||
app.run()
|
||||
|
6
releasenotes/notes/bug-1979699-70182ec2aead0383.yaml
Normal file
6
releasenotes/notes/bug-1979699-70182ec2aead0383.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
`Bug #1979699 <https://bugs.launchpad.net/glance/+bug/1979699>`_: Fix
|
||||
the ``glance-cache-prefetcher`` command to set up access to backend stores
|
||||
when the multi store feature is used.
|
Loading…
x
Reference in New Issue
Block a user