Skip to content

rgw: resolve multipart part head in its storage class pool - #72710

Merged
cbodley merged 3 commits into
ceph:mainfrom
BBoozmen:wip-oozmen-81780-partnumber-storage-class
Oct 28, 2026
Merged

cbodley merged 3 commits into
ceph:mainfrom
BBoozmen:wip-oozmen-81780-partnumber-storage-class

Conversation

@BBoozmen

@BBoozmen BBoozmen commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Fixes: https://tracker.ceph.com/issues/81780

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@BBoozmen BBoozmen self-assigned this Oct 14, 2026
@BBoozmen
BBoozmen requested a review from a team as a code owner October 14, 2026 18:38
@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@cbodley cbodley left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

Comment thread src/rgw/driver/rados/rgw_rados.cc Resolved
…storage class

_multipart_upload() now takes an optional storage_class for
CreateMultipartUpload, and the body of test_multipart_get_part moves into
_test_multipart_get_part(), which passes it through.

Existing callers are unchanged.

Signed-off-by: Oguzhan Ozmen <[email protected]>
…n-default storage class

Add test_multipart_get_part_storage_class, which runs the
test_multipart_get_part checks on an upload created in the first
configured storage class other than STANDARD, and also checks the part
sizes reported by GetObjectAttributes.

The rgw/verify suite maps LUKEWARM and FROZEN to their own data pools and
passes them to s3-tests.

Without the fix, get_part_obj_state() looks up each part's head object in
the bucket's default (STANDARD) pool instead of the pool of the class the
upload used, so every partNumber read returns 400 (InvalidPart), and in a
compressed class GetObjectAttributes reports the compressed part sizes.

Reproduces: https://tracker.ceph.com/issues/81780
Signed-off-by: Oguzhan Ozmen <[email protected]>
If an MPU is uploaded to a non-default storage class, its part heads are
located in that class, not the bucket's default pool, so
get_part_obj_state() has to resolve them with the upload's placement
instead of always looking in the bucket's default pool.

get_obj_state() now takes an optional placement rule that overrides the
bucket's, and get_part_obj_state() passes the manifest's tail placement.
GetObjectAttributes with ObjectParts goes through the same function, so for
uploads in a non-default storage class it now also reports the part
checksums, and the part sizes instead of their compressed sizes if the
class is compressed.

Fall back to the bucket's default pool if the part head isn't in the tail
placement's pool or has no etag: releases before v16.2.8
(https://tracker.ceph.com/issues/49128) wrote the part head's attrs,
including compression info, to a zero-size object in the bucket's default
pool and left the part data in the class pool without attrs, so reading
those parts from the class pool alone would return compressed data.

Fixes: https://tracker.ceph.com/issues/81780
Signed-off-by: Oguzhan Ozmen <[email protected]>
@BBoozmen
BBoozmen force-pushed the wip-oozmen-81780-partnumber-storage-class branch from f4d93f8 to a1775f9 Compare October 22, 2026 16:26
@BBoozmen
BBoozmen requested a review from cbodley October 22, 2026 16:27
@BBoozmen BBoozmen added wip-oozmen-testing for teuthology integration testing to be used via build-integration-branch.sh and removed wip-oozmen-testing for teuthology integration testing to be used via build-integration-branch.sh labels Oct 22, 2026
@BBoozmen

BBoozmen commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor Author

ceph-ci branch: https://github.com/ceph/ceph-ci/commits/wip-oozmen-testing-mpart-sc-2026-10-26-2014/
QA results: https://pulpito.ceph.com/bcs-ceph-2026-10-27_01:00:46-rgw-wip-oozmen-testing-mpart-sc-2026-10-26-2014-distro-default-trial/

Summary

90 tests: 89 PASSED / 1 FAILED

Failed suite is: rgw/s3vectors:

Command failed (s3vectors tests against rgw (rgw backend)) on trial120 with status 2: 'source /home/ubuntu/cephtest/tox-venv/bin/activate && cd /home/ubuntu/cephtest/ceph/src/test/rgw/s3vectors/ && S3VTESTS_CONF=/home/ubuntu/cephtest/ceph/src/test/rgw/s3vectors/s3vectors-tests.c1.client.0.rgw.conf tox -- -v -m multisite_test'

The error seems to be in the installation of dependecies:

  01:44:34.845 py: install_deps> python -I -m pip install -r requirements.txt
  01:45:09.811 ConnectionResetError: [Errno 104] Connection reset by peer
  01:45:09.902 pip._vendor.urllib3.exceptions.ProtocolError: ("Connection broken: ConnectionResetError(104, 'Connection reset by peer')", ...)
  01:45:09.992 Downloading botocore-1.42.97-py3-none-any.whl (15.0 MB)
  01:45:09.995    ━━━━━━━━━   3.4/15.0 MB 141.4 kB/s eta 0:01:22
  01:45:09.999   py: FAIL code 2 (35.14 seconds)

Looks like PyPI blip + this suite (s3-vectors) is not related to this change.

New s3-tests testcase passes

Suite OS Jobs Result
rgw/verify centos 9.stream 10 PASSED
rgw/verify ubuntu 24.04 9 PASSED
rgw/verify rocky 10 5 PASSED
rgw/lifecycle rocky 10 1 PASSED
rgw/cloud-transition centos 9.stream / rocky 10 3 not selected (cloud-only test filter)

e.g.,

  2026-10-28T01:53:56.417 ...test_s3.py::test_multipart_get_part PASSED               [ 37%]
  2026-10-28T01:54:01.666 ...test_s3.py::test_multipart_get_part_storage_class PASSED [ 37%]

@BBoozmen BBoozmen added TESTED and removed needs-qa wip-oozmen-testing for teuthology integration testing to be used via build-integration-branch.sh labels Oct 28, 2026
@cbodley
cbodley merged commit 3e9359f into ceph:main Oct 28, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants