Return the size with the data iter in get_image_data_iter(uri). We will either fetch it from the local filesize or from the http 'content-length' header. For example the s3 store driver needs to know the image size in order to decide between singlepart and multipart upload. Without the size the s3 driver will always attempt to use singlepart which can fail for larger objects. e.g. aws part size of 5GB Closes-Bug: #2141673 Change-Id: Ief14a61f6a1d9327acfd6ada61c2b5976d153555 Signed-off-by: Max Lamprecht <max.lamprecht@stackit.cloud>
OpenStack Glance
Glance is an OpenStack project that provides services and associated libraries to store, browse, share, distribute and manage bootable disk images, other data closely associated with initializing compute resources, and metadata definitions.
Use the following resources to learn more:
API
To learn how to use Glance's API, consult the documentation available online at:
Developers
For information on how to contribute to Glance, please see the contents of the CONTRIBUTING.rst in this repository.
Any new code must follow the development guidelines detailed in the HACKING.rst file, and pass all unit tests.
Further developer focused documentation is available at:
Operators
To learn how to deploy and configure OpenStack Glance, consult the documentation available online at:
In the unfortunate event that bugs are discovered, they should be reported to the appropriate bug tracker. You can raise bugs here:
Release notes
To learn more about Glance's new features, optimizations, and changes between versions, consult the release notes online at:
Other Information
During each design summit, we agree on what the whole community wants to focus on for the upcoming release. You can see image service plans:
For more information about the Glance project please see: