Glance fails with an error while trying to create an image which does not contain content-length (using copy-from)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Invalid
|
Medium
|
Jon Bernard |
Bug Description
Description of problem:
=======
It seems to be HTTP's store back-end fault.
Images coming from Berrange's Fedora people account are gzip and without content-length which seems not to be supported by the HTTP Store[0].
The output of HEAD requests:
This one doesn't work:
$ http HEAD http://
HTTP/1.1 200 OK
Accept-Ranges: bytes
Connection: close
Content-Encoding: gzip
Content-Type: text/plain; charset=UTF-8
Date: Thu, 13 Jun 2013 09:52:58 GMT
ETag: "f050000-
Last-Modified: Fri, 16 Nov 2012 10:51:56 GMT
Server: Apache/2.2.15
Vary: Accept-
This one works:
$ http HEAD http://<URL>/rhel-
HTTP/1.1 200 OK
Accept-Ranges: bytes
Connection: close
Content-Length: 1974140928
Content-Type: text/plain; charset=UTF-8
Date: Thu, 13 Jun 2013 09:53:48 GMT
ETag: "3dfbc9b-
Last-Modified: Fri, 15 Feb 2013 14:58:29 GMT
Server: Apache
[0] https:/
How reproducible:
=================
3/3
Steps to Reproduce:
===================
Load an image to glance as follows:
# glance image-create --name test --disk-format qcow2 --container-format bare --copy-from http://
Actual results:
===============
1. Image not loaded to glance and failed with the following error:
api.log:2013-06-13 11:39:32.581 13504 ERROR glance.
Expected results:
=================
The image should be loaded with no errors.
Changed in glance: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in glance: | |
assignee: | nobody → David Cesiel (dcesiel) |
Changed in glance: | |
assignee: | David Cesiel (dcesiel) → nobody |
Changed in glance: | |
assignee: | nobody → Flavio Percoco (flaper87) |
Changed in glance: | |
assignee: | Flavio Percoco (flaper87) → Jon Bernard (jbernard) |
@david, you working on this?