Public bug reported: When nova-compute is uploading a snapshot of a Vm, it is streaming the content of the image in a HTTP Chunked mode. In this mode, there is no "Content-Lenght" header that is provided for the image (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Transfer-Encoding#directives) so image_size is considered as zero
In the S3 backend a test is made based on the size. In our case, the image_size is empty, so the upload will be done in singlepart mode: https://github.com/openstack/glance_store/blob/master/glance_store/_drivers/s3.py#L632 of course, be in singlepart might work, but it's less performant Expected result As a Vm snapshot is by design big, we should always send an image in multipart Actual result The image is always sent in single part ** Affects: glance Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/2017502 Title: size issue for multipart with s3 backend Status in Glance: New Bug description: When nova-compute is uploading a snapshot of a Vm, it is streaming the content of the image in a HTTP Chunked mode. In this mode, there is no "Content-Lenght" header that is provided for the image (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Transfer-Encoding#directives) so image_size is considered as zero In the S3 backend a test is made based on the size. In our case, the image_size is empty, so the upload will be done in singlepart mode: https://github.com/openstack/glance_store/blob/master/glance_store/_drivers/s3.py#L632 of course, be in singlepart might work, but it's less performant Expected result As a Vm snapshot is by design big, we should always send an image in multipart Actual result The image is always sent in single part To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/2017502/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp