Comment 1 for bug 851059

Revision history for this message
Jay Pipes (jaypipes) wrote :

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

Thanks!
-jay