Repository navigation
tentacle: RGW | fix conditional Delete, MultiDelete and Put - #65949
Conversation
|
Once this PR is merged, I plan to create a backport PR for issue #73076 as well. |
cbodley
left a comment
There was a problem hiding this comment.
backports need to include followup fix for https://tracker.ceph.com/issues/72517 #64997
please include the cherry-pick of #64997 in this pr
9f1bc00 to
d73cdd8
Compare
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)
9d622b8 to
5406a12
Compare
|
thanks @cupnes - could you please redo that cherry-pick with the same goes for #65932 |
5406a12 to
dc155b6
Compare
|
@cbodley |
dc155b6 to
a77e7cd
Compare
|
cc @adamemerson this will need manual qa against ceph/s3-tests#663 |
3be6400 to
63f6089
Compare
Signed-off-by: Ali Masarwa <[email protected]> (cherry picked from commit 69353cf)
63f6089 to
8045fe6
Compare
|
@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. |
thanks @batrick. i removed your |
|
Can one of the admins verify this patch? |
updated https://github.com/cbodley/s3-tests/commits/wip-73090-tentacle with that backport. will rerun rgw/dbstore once the lab permits |
thanks, no wonder it was stuck in the queue. rescheduled https://pulpito.ceph.com/cbodley-2026-02-19_13:59:31-rgw-wip-73090-tentacle-distro-default-trial/ |
|
dbstore rerun passed 👍 so despite some missing coverage in other subsuites, all of the test cases for this feature are green |
|
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 |
|
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 |
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
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.