glance v2 get image erro
Bug #1193310 reported by
Ghe Rivero
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Undecided
|
Feilong Wang | ||
Glance Client |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When trying to retrieve a glance image using the v2 api, you get an error:
# glance --os-image-
'utf8' codec can't decode byte 0xcc in position 1217: invalid continuation byte
This is because glance (glanceclient) expects a response of type content-type: application/
but it's getting a Content-Type: text/html; charset=UTF-8 Transfer-Encoding: chunked (glance v2 api)
https:/
Changed in python-glanceclient: | |
status: | New → Invalid |
Changed in glance: | |
assignee: | nobody → Fei Long Wang (flwang) |
status: | New → Confirmed |
status: | Confirmed → In Progress |
Changed in glance: | |
milestone: | none → havana-2 |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | havana-2 → 2013.2 |
To post a comment you must log in.
After investigation, I think the root cause is Glance will return the image data from cache if there is. However, in method _process_ v2_request, the content type has never been configured. See: /github. com/openstack/ glance/ blob/master/ glance/ api/middleware/ cache.py# L162
https:/