Content-Length not getting set in update operation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance Client |
Fix Released
|
High
|
Unmesh Gurjar |
Bug Description
Branch: master (commitID: e233f66ecd0f305
Scenario:
1. Using the Python glanceclient, create a blank image (no body specified).
2. Then call the image update method (from Python glanceclient), providing it the open file handle of a volume (eg. in my case a Cinder volume local path is like: '/dev/mapper/
Actual Result:
Glance (ImageDeserializer) ignores the data (since Content-Length is Not Available) and the update call returns an error.
Expected Result:
Glance should read the image data and update the metadata as well.
Observations:
On providing an open file handle of a non-volume (eg. image file), the Content-Length header gets set (automatically from httplib.
Changed in python-glanceclient: | |
assignee: | nobody → Unmesh Gurjar (unmesh-gurjar) |
Changed in python-glanceclient: | |
importance: | Undecided → High |
Changed in python-glanceclient: | |
milestone: | none → v0.5 |
Changed in python-glanceclient: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/12491
Review: https:/