Skip to content

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

Open
BBoozmen wants to merge 3 commits into
ceph:umbrellafrom
BBoozmen:wip-82244-umbrella
Open

BBoozmen wants to merge 3 commits into
ceph:umbrellafrom
BBoozmen:wip-82244-umbrella

Conversation

@BBoozmen

Copy link
Copy Markdown
Contributor

@BBoozmen BBoozmen added this to the umbrella milestone Oct 29, 2026
@BBoozmen
BBoozmen requested a review from a team as a code owner October 29, 2026 01:56
@BBoozmen BBoozmen added the rgw label Oct 29, 2026
@github-actions github-actions Bot added the tests label Oct 29, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Oct 29, 2026
@BBoozmen

Copy link
Copy Markdown
Contributor Author

Backport Audit

@adamemerson

Copy link
Copy Markdown
Contributor

/audit override

@github-actions github-actions Bot added releng-audit-override and removed releng-audit-fail Release engineering: failed backport verification audit. labels Nov 2, 2026
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

✅ Audit Override Applied by @adamemerson.

View workflow run

@anrao19

anrao19 commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-anrao19-testing-2026-11-11-0646-umbrella.

@anrao19

anrao19 commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-anrao19-testing-2026-11-11-0646-umbrella.

pr testing completed and approved by @ivancich more details on :https://tracker.ceph.com/issues/83032
@BBoozmen , if no further testing is needed then this pr can be merged

@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

@batrick

batrick commented Nov 16, 2026

Copy link
Copy Markdown
Member

@BBoozmen needs rebased

…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]>
(cherry picked from commit 1f08aeb)
…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]>
(cherry picked from commit 898d21d)
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]>
(cherry picked from commit a1775f9)
@github-actions

Copy link
Copy Markdown

⚠️ Audit Override Removed

New commits were pushed to this PR, so the previous override has been removed.

View workflow run

@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge releng-audit-pass Release engineering: passed backport verification audit. rgw TESTED tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants