Checksum not populated when using swift backend
Bug #1095356 reported by
Robert van Leeuwen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When using glance with a swift backend the checksum is not populated when adding an image and the size of the image is below the swift_store_
This results in an error message when downloading the image, e.g.:
[Errno 32] Corrupt image download. Checksum was 50bdc35edb03a38
Looking at the glance/
To post a comment you must log in.
290 if image_size > 0 and image_size < self.large_ object_ size: put_object( location. container, length= image_size)
291 # Image size is known, and is less than large_object_size.
292 # Send to Swift with regular PUT.
293 obj_etag = connection.
294 location.obj, image_file,
295 content_
I think the obj_etag here is the checksum returned from swift