Comment 1 for bug 794582

Revision history for this message
Christoph Thiel (cthiel-suse) wrote :

http://glance.openstack.org/glanceapi.html#adding-image-metadata-in-http-headers states:

----

* x-image-meta-size

  This header is optional.

  When present, Glance assumes that the expected size of the request body will be the value of this header. If the length in bytes of the request body does not match the value of this header, Glance will return a 400 Bad Request.

  When not present, Glance will calculate the image’s size based on the size of the request body.

----

Glance would at least need to set the size based on a HEAD-request to the location that is being added.