yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #47701
[Bug 1555019] [NEW] glance image download does not decompress the content as curl does
Public bug reported:
When you download this image with curl, you get a qcow2 file, NOT a gz file.
https://fedorapeople.org/groups/magnum/fedora-21-atomic-5.qcow2
When you use
glance --os-image-api-version=1 image-create --copy-from https://fedorapeople.org/groups/magnum/fedora-21-atomic-5.qcow2 --container-format bare --disk-format qcow2 --property os_distro=fedora-atomic --property os_type=linux --min-disk 8 --min-ram 512 --name fedora-21-atomic-5 --is-public True
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://download.fedoraproject.org/pub/fedora/linux/releases/23/Cloud/x86_64/Images
/Fedora-Cloud-Base-23-20151030.x86_64.qcow2 url, because the server
refuses to compress , regardless to what the client requests.
** Affects: glance
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1555019
Title:
glance image download does not decompress the content as curl does
Status in Glance:
New
Bug description:
When you download this image with curl, you get a qcow2 file, NOT a gz file.
https://fedorapeople.org/groups/magnum/fedora-21-atomic-5.qcow2
When you use
glance --os-image-api-version=1 image-create --copy-from https://fedorapeople.org/groups/magnum/fedora-21-atomic-5.qcow2 --container-format bare --disk-format qcow2 --property os_distro=fedora-atomic --property os_type=linux --min-disk 8 --min-ram 512 --name fedora-21-atomic-5 --is-public True
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://download.fedoraproject.org/pub/fedora/linux/releases/23/Cloud/x86_64/Images
/Fedora-Cloud-Base-23-20151030.x86_64.qcow2 url, because the server
refuses to compress , regardless to what the client requests.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1555019/+subscriptions