Downloading empty file with enabled cache management leads to 500 error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
In Progress
|
Undecided
|
Darja Shakhray | ||
Liberty |
New
|
Undecided
|
Unassigned |
Bug Description
When I tried to download an empty image file from glance with enabled cache management I got 500 error:
mfedosin@wdev:~$ glance --debug image-download 0af7b2e8-
curl -g -i -X GET -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-
Request returned failure status 500.
Traceback (most recent call last):
File "/usr/local/
args.
File "/usr/local/
body = gc.images.
File "/usr/local/
resp, body = self.http_
File "/usr/local/
return self._request(
File "/usr/local/
resp, body_iter = self._handle_
File "/usr/local/
raise exc.from_
HTTPInternalSer
HTTPInternalSer
Without cache management everything works fine.
Steps to reproduce on devstack:
1. Set flavor to 'keystone+
2. Restart glance-api server
3. Create an image with empty file (file size is 0)
4. Try to download the image file from glance.
Expected result: new empty file will be created in local folder.
Actual result: HTTPInternalSer
Logs from glance-api: http://
Changed in glance: | |
assignee: | nobody → Darja Shakhray (dshakhray) |
Fix proposed to branch: master /review. openstack. org/266891
Review: https:/