glance-cache-prefetcher: Set up access to multistore backends
... because the command requires access to backend stores to pull image data. Closes-Bug: #1979699 Change-Id: I04efbb7fd47b8b1e022d96c40011b6f03508db2e (cherry picked from commit6964e627d5
) (cherry picked from commitb4091752b4
)
This commit is contained in:
parent
316ce9659a
commit
2f125d8329
@ -48,9 +48,15 @@ def main():
|
|||||||
try:
|
try:
|
||||||
config.parse_cache_args()
|
config.parse_cache_args()
|
||||||
logging.setup(CONF, 'glance')
|
logging.setup(CONF, 'glance')
|
||||||
|
CONF.import_opt('enabled_backends', 'glance.common.wsgi')
|
||||||
|
|
||||||
glance_store.register_opts(config.CONF)
|
if CONF.enabled_backends:
|
||||||
glance_store.create_stores(config.CONF)
|
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()
|
glance_store.verify_default_store()
|
||||||
|
|
||||||
app = prefetcher.Prefetcher()
|
app = prefetcher.Prefetcher()
|
||||||
|
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…
Reference in New Issue
Block a user