Error "cannot import name 'ImageCache'" when executing glance-cache-pruner or glance-cache-manage.

Solution Verified - Updated -

Issue

  • Running glance-cache-pruner from controller resulting in error ImportError: cannot import name 'ImageCache'.
  • Running glance-cache-manage at the controller node's glance-api container resulting in error ImportError: cannot import name 'ImageCache'.

Environment

  • Red Hat OpenStack PLatform(RHOSP) 16.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content