Caching images from glance

asked 2016-04-27 17:04:49 -0600

navanitachora gravatar image

Hi,

I am working with OpenStack Horizon and I want to cache the results from glance image API V2 in memcache, for subsequent requests.

The issue I am having is that the list I get from glance, returns the images with a class warlock.core.image and when I try to save them in the cache, python throws a pickling error like so:

Can't pickle <class 'warlock.core.image'="">: it's not found as warlock.core.image

From what I know of warlock, all it defines is a JSON structure which should be pickle able. When I print out the images all I get is a list of key value pairs, so I am not sure why the pickle error is coming up.

I am also puzzled by the "It's not found as warlock.core.image" part of the message.

If it is not possible to pickle warlock objects, are there any alternatives that I could use to cache the images?

Thanks in advance, nav

edit retag flag offensive close merge delete