Skip to content

umbrella: rgw: fix conditional writes on versioning-suspended buckets - #72048

Merged
batrick merged 2 commits into
ceph:umbrellafrom
mheler:wip-80789-umbrella
Oct 7, 2026
Merged

batrick merged 2 commits into
ceph:umbrellafrom
mheler:wip-80789-umbrella

Conversation

@mheler

@mheler mheler commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

_do_write_meta only resolves the current version through the olh when
the write carries an instance, and writes on a versioning-suspended
bucket never do. Once a delete marker turns the head into an olh,
If-Match treats the olh head as an existing object and If-None-Match: *
fails with 412. Follow the olh whenever the head is one, and check
against an empty state when there is no current version.

Signed-off-by: Matthew N. Heler <[email protected]>
(cherry picked from commit cfe5d0f)
Add tests for the If-Match and If-None-Match preconditions against the
delete marker a delete leaves behind on a versioning-suspended bucket.

New tests:
- test_put_object_suspended_if_match: 404 on the deleted object, 412
  while the null version is still there
- test_multipart_put_object_suspended_if_none_match: create-only upload
  succeeds after the delete marker, 412 while the object exists

Signed-off-by: Matthew N. Heler <[email protected]>
(cherry picked from commit 5ed7eaf)
@mheler
mheler requested a review from a team as a code owner September 24, 2026 11:39
@mheler mheler added this to the umbrella milestone Sep 24, 2026
@mheler mheler added the rgw label Sep 24, 2026
@github-actions github-actions Bot added tests releng-audit-pass Release engineering: passed backport verification audit. labels Sep 24, 2026
@anrao19

anrao19 commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

jenkins test windows

@anrao19

anrao19 commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

@batrick

batrick commented Sep 29, 2026

Copy link
Copy Markdown
Member

@anrao19

anrao19 commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to umbrella integration testing by anuchaithra started 2026-09-28-05:32.

pr testing completed and approved by @ivancich , more details in : https://tracker.ceph.com/issues/80954
@mheler , if no further testing is need then this pr can be merged

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.

4 participants