glance image download does not decompress the content as curl does
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
When you download this image with curl, you get a qcow2 file, NOT a gz file.
https:/
When you use
glance --os-image-
It will be stored as gz compressed file, and when you or nova downloads it will be gzip compressed as well.
glance image-download <id> --file test.qcow2.gz
glance MUST not ask for gzip compression when it is unable to handle it.
glance SHOULD be able handle compressed content.
Note:
I had rbd backend.
I do not have this issue with the https:/
Hi Attila Fazekas,
I don't see this being enforced by Glance. The way your images are getting compressed are through the gzip middleware that can be optionally enabled using the right filter in your glance- api.paste. ini file. /github. com/openstack/ glance/ blob/master/ etc/glance- api-paste. ini#L76
https:/
Can you please check and verify is that's still the case?
Also, can you share some of these details about your request?
Headers Content-Type and Accept-Encoding if present and their values.