Bug 1859289 - OSP16: circular import when using glance-cache-manage
Summary: OSP16: circular import when using glance-cache-manage
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-glance
Version: 16.0 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z3
: 16.1 (Train on RHEL 8.2)
Assignee: Cyril Roelandt
QA Contact: Mike Abrams
Chuck Copello
URL:
Whiteboard:
Depends On:
Blocks: 1790755
TreeView+ depends on / blocked
 
Reported: 2020-07-21 15:57 UTC by Cyril Roelandt
Modified: 2024-06-13 22:54 UTC (History)
5 users (show)

Fixed In Version: openstack-glance-19.0.4-1.20200812170818.5bbd356.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-28 15:38:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 742115 0 None MERGED Fix broken glance-cache-manage utility 2021-01-14 16:00:36 UTC
OpenStack gerrit 742742 0 None MERGED Fix broken glance-cache-manage utility 2021-01-14 16:01:15 UTC
OpenStack gerrit 742889 0 None MERGED Fix broken glance-cache-manage utility 2021-01-14 16:01:15 UTC
Red Hat Issue Tracker OSP-32278 0 None None None 2024-06-13 22:54:57 UTC
Red Hat Product Errata RHEA-2020:4284 0 None None None 2020-10-28 15:38:54 UTC

Description Cyril Roelandt 2020-07-21 15:57:00 UTC
Reported by Hyonjeong Jang <hjang> on rhos-rech:


The command is not working at the controller node's glance-api container.


()[glance@ctrl1 /]$ *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'


The command is not working at the edge compute node's glance-api container
also.
()[glance@com2 /]$ *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'

Comment 10 errata-xmlrpc 2020-10-28 15:38:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenStack Platform 16.1 bug fix and enhancement advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2020:4284


Note You need to log in before you can comment on or make changes to this bug.