← Back to team overview

openstack team mailing list archive

Re: Glance API semantics when image sizes aren't known

 

> From: Jay Pipes [mailto:jaypipes@xxxxxxxxx]
>
> The else: block is ONLY met when you are not using the Python glance
> client, the glance CLI tool, and are not setting either the
> Content-Length or X-Image-Meta-Size header. If you use the Python
> glance client or CLI tool, the image you are feeding to the client
> automatically does a seek/tell to determine the size of the image you
> are uploading.

Or if you're using something that can't seek/tell, like a stream.  In
that case, you get neither a Content-Length nor an X-Image-Meta-Size.
Hence my question.

Ewan.


Follow ups

References