Merge "Support multipart upload when image_size == 0"

This commit is contained in:
Zuul
2025-08-13 11:36:29 +00:00
committed by Gerrit Code Review
2 changed files with 14 additions and 1 deletions

View File

@@ -179,6 +179,7 @@ Related Options:
"""),
cfg.IntOpt('s3_store_large_object_size',
default=DEFAULT_LARGE_OBJECT_SIZE,
min=0,
help="""
What size, in MB, should S3 start chunking image files and do a multipart
upload in S3.
@@ -189,7 +190,7 @@ upload the image to S3 as is or to split it (Multipart Upload).
Note: You can only split up to 10,000 images.
Possible values:
* Any positive integer value
* Any positive integer value or zero
Related Options:
* s3_store_large_object_chunk_size
@@ -473,6 +474,8 @@ class Store(glance_store.driver.Store):
if not result:
if param == 's3_store_create_bucket_on_put':
return result
if param == 's3_store_large_object_size':
return result
if param == 's3_store_region_name':
return result
if param == 's3_store_cacert':

View File

@@ -0,0 +1,10 @@
---
features:
- |
Support setting ``s3_store_large_object_size`` to ``0`` to force multipart
upload when ``image_size`` is unknown.
fixes:
- |
`Bug #2043740 <https://bugs.launchpad.net/glance-store/+bug/2043740>`_:
``s3_store_large_object_size`` can be set to ``0`` to force multipart
upload when creating an image in the S3 backend from a Cinder volume.