Skip to content

tentacle: RGW | fix conditional Delete, MultiDelete and Put - #65949

Merged
batrick merged 3 commits into
ceph:tentaclefrom
cupnes:wip-73090-tentacle
Feb 19, 2026
Merged

batrick merged 3 commits into
ceph:tentaclefrom
cupnes:wip-73090-tentacle

Conversation

@cupnes

@cupnes cupnes commented Oct 15, 2025

Copy link
Copy Markdown

backport tracker: https://tracker.ceph.com/issues/73090


backport of #63348
parent tracker: https://tracker.ceph.com/issues/68183

This PR was created using ceph-backport.sh version 16.0.0.6848 for branch creation and cherry-picking, followed by manual conflict resolution, push and PR creation.

@cupnes
cupnes requested a review from a team as a code owner October 15, 2025 00:38
@github-actions github-actions Bot added the rgw label Oct 15, 2025
@github-actions github-actions Bot added this to the tentacle milestone Oct 15, 2025
@cupnes

cupnes commented Oct 15, 2025

Copy link
Copy Markdown
Author

Once this PR is merged, I plan to create a backport PR for issue #73076 as well.

@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.

@cupnes
cupnes force-pushed the wip-73090-tentacle branch from 9f1bc00 to d73cdd8 Compare October 16, 2025 02:31
@cupnes

cupnes commented Oct 16, 2025

Copy link
Copy Markdown
Author

@cbodley
I cherry-picked commit 69353cf from PR #64997 and included it in this PR.

size_match supports size 0
checks_preconditions checks for last_modified and size as well
supports versioned object

Signed-off-by: Ali Masarwa <[email protected]>
(cherry picked from commit 55f5b76)
Signed-off-by: Ali Masarwa <[email protected]>
(cherry picked from commit b99a47f)
@cupnes
cupnes force-pushed the wip-73090-tentacle branch 2 times, most recently from 9d622b8 to 5406a12 Compare October 16, 2025 05:21
@cupnes
cupnes requested a review from cbodley October 16, 2025 08:11
@cbodley

cbodley commented Oct 17, 2025

Copy link
Copy Markdown
Contributor

thanks @cupnes - could you please redo that cherry-pick with the -x option to add the "(cherry picked from commit ...)" line? https://github.com/ceph/ceph/blob/main/SubmittingPatches-backports.rst#cherry-picking-rules

same goes for #65932

@cupnes
cupnes force-pushed the wip-73090-tentacle branch from 5406a12 to dc155b6 Compare October 20, 2025 02:46
@cupnes

cupnes commented Oct 20, 2025

Copy link
Copy Markdown
Author

@cbodley
Sorry, I missed that. I addressed it.

@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.

tyvm @cupnes

@cbodley

cbodley commented Oct 20, 2025

Copy link
Copy Markdown
Contributor

cc @adamemerson this will need manual qa against ceph/s3-tests#663

@cupnes
cupnes force-pushed the wip-73090-tentacle branch 3 times, most recently from 3be6400 to 63f6089 Compare October 22, 2025 00:57
Signed-off-by: Ali Masarwa <[email protected]>
(cherry picked from commit 69353cf)
@cupnes
cupnes force-pushed the wip-73090-tentacle branch from 63f6089 to 8045fe6 Compare October 22, 2025 04:13
@satoru-takeuchi

Copy link
Copy Markdown
Contributor

@cbodley @adamemerson Is there any chance to merge this PR and the upcoming backport PR corresponding to issue 73300? My team, including @cupnes, are looking forward to these PRs because we uses conditional write with muptile uploads in our Ceph clusters (v19.2.1).

I asked this question since I found that v20.2.1 validation has already been started in the latest CSC minutes.

@cbodley cbodley added the needs-separate-s3tests-qa This is a PR to RGW that, at present, needs to be QA'd against is own s3tests branch before merge. label Feb 6, 2026
@batrick

batrick commented Feb 10, 2026

Copy link
Copy Markdown
Member

@cbodley @adamemerson Is there any chance to merge this PR and the upcoming backport PR corresponding to issue 73300? My team, including @cupnes, are looking forward to these PRs because we uses conditional write with muptile uploads in our Ceph clusters (v19.2.1).

I asked this question since I found that v20.2.1 validation has already been started in the latest CSC minutes.

@cbodley @adamemerson https://tracker.ceph.com/issues/73300 needs attention.

@cbodley cbodley removed the needs-qa label Feb 11, 2026
@cbodley

cbodley commented Feb 11, 2026

Copy link
Copy Markdown
Contributor

cc @adamemerson this will need manual qa against ceph/s3-tests#663

thanks @batrick. i removed your needs-qa label because this needs manual qa with its test cases - this is what the needs-separate-s3tests-qa label is for

@cbodley

cbodley commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@batrick batrick modified the milestones: tentacle, v20.2.1 Feb 13, 2026
@cbodley

cbodley commented Feb 17, 2026

Copy link
Copy Markdown
Contributor

qa pending in https://pulpito.ceph.com/cbodley-2026-02-12_15:40:18-rgw-wip-73090-tentacle-distro-default-trial/

rgw/bucket-logging: 1 job failed
test_bucket_logging_object_meta FAILED and then the rest of the tests failed with ERROR, tracked in https://tracker.ceph.com/issues/74322

rgw/dbstore: 1 job failed
new tests failed, needs backport of ceph/s3-tests#689

rgw/multifs: 3 jobs failed
s3_user_quota-run.sh fails to start with https://tracker.ceph.com/issues/74590

rgw/multisite: 2 jobs failed
does not run because of boto2, needs to run with #67318 for https://tracker.ceph.com/issues/74886

rgw/notifications: 4 jobs failed
does not run because of boto2, tracked in https://tracker.ceph.com/issues/74573

rgw/singleton: 3 jobs failed
radosgw_admin and radosgw_admin_rest tasks don't run because of boto2, tracked in https://tracker.ceph.com/issues/74591

rgw/tempest: 1 job failed
spurious test failure tracked in https://tracker.ceph.com/issues/72968

@cbodley

cbodley commented Feb 17, 2026

Copy link
Copy Markdown
Contributor

rgw/dbstore: 1 job failed
new tests failed, needs backport of ceph/s3-tests#689

updated https://github.com/cbodley/s3-tests/commits/wip-73090-tentacle with that backport. will rerun rgw/dbstore once the lab permits

@cbodley

cbodley commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

@cbodley

cbodley commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

dbstore rerun passed 👍 so despite some missing coverage in other subsuites, all of the test cases for this feature are green

@batrick
batrick merged commit c824a7f into ceph:tentacle Feb 19, 2026
@github-actions

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I have resolved the following tracker ticket due to the merge of this PR:

No backports are pending for the ticket. If this is incorrect, please update the tracker
ticket and reset to Pending Backport state.

Update Log: https://github.com/ceph/ceph/actions/runs/22192060092

@cbodley

cbodley commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

i've pushed the backported test cases to https://github.com/ceph/s3-tests/commits/ceph-tentacle so they're part of the default rgw suite on tentacle

jbreemhaar added a commit to stackpadeu/certmagic-s3 that referenced this pull request Aug 15, 2026
The previous commit explained the ETag stripping in terms of one vendor's
storage, which reads like a local workaround. It is the opposite, and the
comment now carries the citations to show it.

The quoted form is the one that is not portable. Ceph compared the raw
If-Match header against the stored tag without unquoting it first, fixed in
ceph/ceph#63348 (merged to main 2025-07-28). The tentacle backport
ceph/ceph#65949 merged 2026-02-19, after v20.2.0 was cut, and the squid
backport ceph/ceph#65932 is still open, so every v19.x and v20.2.0 deployment
refuses a quoted conditional write today. The unquoted form works on those,
works on the fixed releases, and works on MinIO, SeaweedFS and versitygw,
which compare with the quotes off on both sides. Stripping also stays correct
once the fix is everywhere, because taking the quotes off a bare tag does
nothing, so this does not become dead weight later.

The strongest argument is that Ceph's own compliance suite agrees: s3-tests
strips the quotes before setting If-Match on PutObject in
test_put_object_ifmatch_good. Their newer test_put_object_if_match passes the
quoted tag straight through, so once the fix has landed both spellings are
expected to work and only one of them works before it.

How sure we are, stated plainly, because it is not all the same strength.
Measured first hand: everything in the table in the comment, against Hetzner
Object Storage, including the control line showing a wrong tag is still
refused. Verified from source: the Ceph pull requests and their merge state,
and the s3-tests assertions. Strong but not a documented guarantee: that
Amazon S3 accepts the unquoted form. AWS documents and demonstrates the
quoted form, and nowhere promises to take a bare tag; the evidence that it
does is that terraform-provider-aws sends stripped ETags as If-Match against
real AWS at scale, plus an unquoted value in AWS's own CLI example. Nobody
here has an Amazon account to close that last gap. If takeovers ever stop
working against Amazon, this function is the first place to look.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01GduFdCXxotpmtrncHrMTup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-separate-s3tests-qa This is a PR to RGW that, at present, needs to be QA'd against is own s3tests branch before merge. rgw wip-cbodley-testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants