yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #44523
[Bug 1533270] [NEW] Adding remote image in v2 when cache is enabled results 500 error
Public bug reported:
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.
** Affects: glance
Importance: Undecided
Assignee: Darja Shakhray (dshakhray)
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:
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
Follow ups