← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1888349] [NEW] glance-cache-manage utility is broken

 

Public bug reported:

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'

** Affects: glance
     Importance: High
     Assignee: Abhishek Kekane (abhishek-kekane)
         Status: New

** Affects: glance/train
     Importance: High
         Status: New

** Affects: glance/ussuri
     Importance: High
         Status: New

** Changed in: glance
     Assignee: (unassigned) => Abhishek Kekane (abhishek-kekane)

** Changed in: glance
   Importance: Undecided => High

** Also affects: glance/train
   Importance: Undecided
       Status: New

** Also affects: glance/ussuri
   Importance: Undecided
       Status: New

** Changed in: glance/ussuri
   Importance: Undecided => High

** Changed in: glance/train
   Importance: Undecided => High

-- 
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:
  New
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


Follow ups