Skip to content

UploadPartCopy #1

Description

@joshirishabh631

I just have question that do hammer space suppport uploadpartcopy feature as while setting quay registry this feature is required and we are getting below error on the same.

========= error log==========
UnboundLocalError: cannot access local variable 'mpu' where it is not associated with a value
gunicorn-registry stdout | 2026-07-01 13:00:54,671 [279] [INFO] [gunicorn.access]  - - [01/Jul/2026:13:00:54 +0000] "PUT /v2/openshift/release/blobs/uploads/23be926d-546b-4769-9f2c-7b886324cf97?digest=sha256%3Ac9865336d46ed7cd9f6125eff02f0e9de393929c8c146efed9a758072545b477 HTTP/1.1" 500 0 "-" "-"
nginx stdout | 192.168.63.21 (-) - - [01/Jul/2026:13:00:54 +0000] "PUT /v2/openshift/release/blobs/uploads/23be926d-546b-4769-9f2c-7b886324cf97?digest=sha256%3Ac9865336d46ed7cd9f6125eff02f0e9de393929c8c146efed9a758072545b477 HTTP/1.1" 500 141 "-" "oc-mirror" (0.452 1381 0.452)
gunicorn-registry stdout | 2026-07-01 13:00:54,675 [279] [ERROR] [storage.cloud] Exception trying to perform action <bound method copy of <botocore.client.S3 object at 0x7f6b565ff0b0>>
gunicorn-registry stdout | Traceback (most recent call last):
gunicorn-registry stdout |   File "/quay-registry/storage/cloud.py", line 608, in _perform_action_with_retry
gunicorn-registry stdout |     return action(*args, **kwargs)
gunicorn-registry stdout |            ^^^^^^^^^^^^^^^^^^^^^^^
gunicorn-registry stdout |   File "/opt/app-root/lib/python3.12/site-packages/boto3/s3/inject.py", line 450, in copy
gunicorn-registry stdout |     return future.result()
gunicorn-registry stdout |            ^^^^^^^^^^^^^^^
gunicorn-registry stdout |   File "/opt/app-root/lib/python3.12/site-packages/s3transfer/futures.py", line 103, in result
gunicorn-registry stdout |     return self._coordinator.result()
gunicorn-registry stdout |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
gunicorn-registry stdout |   File "/opt/app-root/lib/python3.12/site-packages/s3transfer/futures.py", line 264, in result
gunicorn-registry stdout |     raise self._exception
gunicorn-registry stdout |   File "/opt/app-root/lib/python3.12/site-packages/s3transfer/tasks.py", line 135, in call
gunicorn-registry stdout |     return self._execute_main(kwargs)
gunicorn-registry stdout |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
gunicorn-registry stdout |   File "/opt/app-root/lib/python3.12/site-packages/s3transfer/tasks.py", line 158, in _execute_main
gunicorn-registry stdout |     return_value = self._main(**kwargs)
gunicorn-registry stdout |                    ^^^^^^^^^^^^^^^^^^^^
gunicorn-registry stdout |   File "/opt/app-root/lib/python3.12/site-packages/s3transfer/copies.py", line 370, in _main
gunicorn-registry stdout |     response = client.upload_part_copy(
gunicorn-registry stdout |                ^^^^^^^^^^^^^^^^^^^^^^^^
gunicorn-registry stdout |   File "/opt/app-root/lib/python3.12/site-packages/botocore/client.py", line 569, in _api_call
gunicorn-registry stdout |     return self._make_api_call(operation_name, kwargs)
gunicorn-registry stdout |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gunicorn-registry stdout |   File "/opt/app-root/lib/python3.12/site-packages/botocore/client.py", line 1023, in _make_api_call
gunicorn-registry stdout |     raise error_class(parsed_response, operation_name)
gunicorn-registry stdout | botocore.errorfactory.NoSuchKey: An error occurred (NoSuchKey) when calling the UploadPartCopy operation: The specified key does not exist
gunicorn-registry stdout | 2026-07-01 13:00:54,676 [279] [ERROR] [storage.cloud] Exception when attempting server-side assembly for: sha256/c9/c9865336d46ed7cd9f6125eff02f0e9de393929c8c146efed9a758072545b477
gunicorn-registry stdout | Traceback (most recent call last):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions