yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #83370
[Bug 1888349] Re: glance-cache-manage utility is broken
Reviewed: https://review.opendev.org/742115
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=ffd2f5e63f8b7aebc8986c05aea249c75a8a692b
Submitter: Zuul
Branch: master
commit ffd2f5e63f8b7aebc8986c05aea249c75a8a692b
Author: Abhishek Kekane <akekane@xxxxxxxxxx>
Date: Tue Jul 21 09:18:31 2020 +0000
Fix broken glance-cache-manage utility
glance-cahce-manage is broken due to circilar imports.
Fixed the same by importing 'prefetcher' module right before
'Prefetcher' object is initialized.
Closes-Bug: #1888349
Change-Id: I57d473572ca0a341082bacc3883cd9f763d77fa7
** Changed in: glance
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1888349
Title:
glance-cache-manage utility is broken
Status in Glance:
Fix Released
Status in Glance train series:
New
Status in Glance ussuri series:
New
Bug description:
When I try to run any of glance-cache-manage command it fails with
below error;
glance-cache-manage --host 172.16.2.23 list-cached
Traceback (most recent call last):
File "/usr/bin/glance-cache-manage", line 6, in <module>
from glance.cmd.cache_manage import main
File "/usr/lib/python3.6/site-packages/glance/cmd/cache_manage.py", line 46, in <module>
import glance.image_cache.client
File "/usr/lib/python3.6/site-packages/glance/image_cache/__init__.py", line 30, in <module>
from glance.common import utils
File "/usr/lib/python3.6/site-packages/glance/common/utils.py", line 50, in <module>
from glance.common import wsgi
File "/usr/lib/python3.6/site-packages/glance/common/wsgi.py", line 61, in <module>
from glance.image_cache import prefetcher
File "/usr/lib/python3.6/site-packages/glance/image_cache/prefetcher.py", line 28, in <module>
from glance.image_cache import base
File "/usr/lib/python3.6/site-packages/glance/image_cache/base.py", line 15, in <module>
from glance.image_cache import ImageCache
ImportError: cannot import name 'ImageCache'
.
glance-cache-manage --help
Traceback (most recent call last):
File "/usr/bin/glance-cache-manage", line 6, in <module>
from glance.cmd.cache_manage import main
File "/usr/lib/python3.6/site-packages/glance/cmd/cache_manage.py", line 46, in <module>
import glance.image_cache.client
File "/usr/lib/python3.6/site-packages/glance/image_cache/__init__.py", line 30, in <module>
from glance.common import utils
File "/usr/lib/python3.6/site-packages/glance/common/utils.py", line 50, in <module>
from glance.common import wsgi
File "/usr/lib/python3.6/site-packages/glance/common/wsgi.py", line 61, in <module>
from glance.image_cache import prefetcher
File "/usr/lib/python3.6/site-packages/glance/image_cache/prefetcher.py", line 28, in <module>
from glance.image_cache import base
File "/usr/lib/python3.6/site-packages/glance/image_cache/base.py", line 15, in <module>
from glance.image_cache import ImageCache
ImportError: cannot import name 'ImageCache'
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1888349/+subscriptions
References