Almost positive this is due to Nova not using the latest Glance client (which does a file seek and sets the Content-Length of the request properly...
I'll check with Monty and Vish and see what's up. In the meantime, could you check on your Nova box (the one running nova-compute) that your Glance library has a glance.client.add_image() method that has a section that looks like this?
if image_data:
body = image_data headers['content-type'] = 'application/octet-stream' image_size = self._get_image_size(image_data)
if image_size: headers['x-image-meta-size'] = image_size headers['content-length'] = image_size
else:
body = None
Almost positive this is due to Nova not using the latest Glance client (which does a file seek and sets the Content-Length of the request properly...
I'll check with Monty and Vish and see what's up. In the meantime, could you check on your Nova box (the one running nova-compute) that your Glance library has a glance. client. add_image( ) method that has a section that looks like this?
if image_data:
headers[ 'content- type'] = 'application/ octet-stream'
image_ size = self._get_ image_size( image_data)
headers[ 'x-image- meta-size' ] = image_size
headers[ 'content- length' ] = image_size
body = image_data
if image_size:
else:
body = None
Thanks!
-jay