Skip to content

Commit 70170d2

Browse files
konan-abhiostackbrian
authored andcommitted
Fix broken glance-cache-prefetcher utility
glance-cache-preftecher utility was failing because it was not setting global threadpool model while initilizing the tool. Closes-Bug: #2065087 Change-Id: I0c09dd7c0d81178ebf2aa5efd19c54866fc8791b (cherry picked from commit 32ee57c) (cherry picked from commit 99540a9) (cherry picked from commit cec35e9)
1 parent 065e2d7 commit 70170d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

glance/cmd/cache_prefetcher.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import glance_store
3737
from oslo_log import log as logging
3838

39+
import glance.async_
3940
from glance.common import config
4041
from glance.image_cache import prefetcher
4142

@@ -49,6 +50,7 @@ def main():
4950
config.parse_cache_args()
5051
logging.setup(CONF, 'glance')
5152
CONF.import_opt('enabled_backends', 'glance.common.wsgi')
53+
glance.async_.set_threadpool_model('eventlet')
5254

5355
if CONF.enabled_backends:
5456
glance_store.register_store_opts(CONF)

0 commit comments

Comments
 (0)