Adding remote image in v2 when cache is enabled results 500 error
Bug #1533270 reported by
Mike Fedosin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
In Progress
|
Medium
|
Darja Shakhray | ||
Liberty |
New
|
Undecided
|
Unassigned |
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://
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.
Changed in glance: | |
assignee: | nobody → Darja Shakhray (dshakhray) |
Changed in glance: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
To post a comment you must log in.
Related bug for v1: https:/ /bugs.launchpad .net/glance/ +bug/900959