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

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1533270

Title:
  Adding remote image in v2 when cache is enabled results 500 error

Status in Glance:
  In Progress
Status in Glance liberty series:
  New

Bug description:
  To reproduce the issue:

  1) Add an image without specifying the size
  2) Enable caching
  3) Get image data. This will succeed because the Content-Length is pulled 
from the remote store (i.e. swift). At this point, the image will be properly 
cached.
  4) Get image data again with v2 api. This will fail with 500 error 
http://paste.openstack.org/show/483545/

  It happens for the reason cache middleware couldn't assign value to
  image_meta['size'] because it expects a dictionary (as it was in v1
  api), but in v2 api it's ImageTarget object.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1533270/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to