Partial download of image fails when using image caching
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Undecided
|
Dharini Chandrasekar |
Bug Description
When using Content-Range for a partial download of an image with image caching enabled,
the partial download fails due to a cache error as in [0]
This is because, the downloaded image is also getting cached using tee-iter in image_cache/
Steps to reproduce:
1. Create an image
glance image-create --name test1 --visibility public --container-format bare --disk-format qcow2 < /home/stack/
2. Verify image creation and run the script to do a partial download.
2.a. glance image-list
+------
| ID | Name |
+------
| a3e38525-
| b3d0a0b6-
| d123b95a-
| 59c7e82a-
+------
2.b. Execute the script that will request for a partial download of the above created image. [1]
Fails with a 500. Traceback is as here: [2]
The full download goes through successfully though. [3]
[0] https:/
[1] http://
[2] http://
[3] http://
We need to educate cache here about a partial download to prevent this.
Changed in glance: | |
assignee: | nobody → Dharini Chandrasekar (dharini-chandrasekar) |
Fix proposed to branch: master /review. openstack. org/434558
Review: https:/