This repository was archived by the owner on Oct 12, 2026. It is now read-only.
Repository navigation
Conversation
Each test needs a radosgw with the injection point it names. The points and the rgw_debug_inject_mp_meta_delete_err option are in ceph's wip-rgw-p-overwrite branch at github.com/mmgaggle/ceph. Set the knobs on the cluster before it starts, and the same ones under [s3 main]; a test skips unless its knobs are set there: - test_lifecycle_abort_racing_complete_multipart: lifecycle aborts an upload whose completion has written the head, and GC deletes its parts - test_multipart_complete_retry_after_meta_delete_error and test_multipart_abort_after_meta_delete_error: a completion's meta object survives, and a retried completion or an abort deletes the completed object's parts - test_object_copy_to_itself_racing_put: a copy onto itself writes back a tail an overwrite freed - test_listing_during_stalled_put: a write that stalls past rgw_pending_bucket_index_op_expiration, and a listing that rewrites its entry from the old head The new rgw_inject marker selects them. Every one fails on main. Assisted-by: Claude:claude-opus-5-5
The PutObject's index completion is asynchronous, so the bucket listing right after it returns may not show it yet, with or without a stall. Poll the listing for up to ten seconds before comparing it with the head. On a gateway where the stalled write is lost from the index, the listing never catches up and the test still fails. Assisted-by: Claude:claude-opus-5-5
… S3's Each test asserts what S3 answers, from AWS's Smithy model of S3 and the S3 User Guide, and fails on rgw: - test_delete_object_if_match_no_object: a DeleteObject with If-Match that finds no object is answered 404; rgw answers 204. test_delete_object_if_match asserts the 204, which is the answer of the directory-bucket headers x-amz-if-match-size and x-amz-if-match-last-modified-time. - test_multipart_upload_part_after_refused_complete: after a completion refused for a later part, and GC, a part uploaded twice before can be uploaded again; rgw answers 409 BucketAlreadyExists, for good. - test_put_object_if_match_etag_with_suffix: If-Match with the object's ETag and one more character does not match. - test_put_object_if_match_racing_put_if_match (rgw_inject): the loser of two If-Match writes on one ETag is answered 412 or 409; rgw answers 500 UnknownError. - test_versioned_put_object_if_none_match_racing (rgw_inject): of two If-None-Match: * creates in a versioned bucket, one succeeds; on rgw both do. The rgw_inject tests need rgw_inject_delay_pattern = write_meta_before_head_write and rgw_inject_delay_sec on the gateway, and the multipart test rgw_gc_obj_min_wait and rgw_gc_processor_period, with the same values under [s3 main]. Assisted-by: Claude:claude-opus-5-5
rgw dispatches on the query arguments it knows, and runs the plain bucket or object operation for any other, so a call to an S3 API it does not implement runs as another operation and is answered success. An implementation that lacks an API refuses it and changes nothing. Each test checks that the bucket or object survives, and fails on rgw: - test_bucket_config_delete_keeps_bucket, for the metrics, analytics, inventory and intelligent-tiering configurations: rgw deletes the bucket. - test_object_annotation_put_keeps_object and test_update_object_encryption_keeps_data: rgw replaces the object's data with the request body. - test_object_annotation_delete_keeps_object: rgw deletes the object. - test_rename_object_keeps_destination: rgw answers success and leaves an empty object at the destination. - test_bucket_metrics_configuration_get_unconfigured: rgw answers 200 with a bucket listing. Assisted-by: Claude:claude-opus-5-5
This was referenced Sep 27, 2026
mmgaggle
marked this pull request as ready for review
September 27, 2026 09:49
Two PutObjects with If-Match on the same ETag in a versioned bucket, each held at write_meta_before_head_write after it checks its condition: S3 lets one succeed and refuses the other 412 or 409, and the current version is the one that succeeded. rgw writes each to a new version with no guard, so both succeed. It needs the rgw_inject knobs, like test_versioned_put_object_if_none_match_racing, and fails on rgw until https://tracker.ceph.com/issues/80925 is fixed. Assisted-by: Claude:claude-opus-5-5
4 of 14 tasks
Contributor
|
No further PRs are accepted here, s3-tests is now integrated into the ceph repository. |
1 similar comment
Contributor
|
No further PRs are accepted here, s3-tests is now integrated into the ceph repository. |
25 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tests for rgw defects found with a P model of RGW overwrites (ceph/ceph#72110) and a review of rgw against AWS's Smithy model of S3. Each test asserts what S3 does, and is marked fails_on_rgw where rgw differs today, until the fix is in.
Races inside the gateway, marker rgw_inject. These need a radosgw built with the injection points of ceph/ceph#72096, the knobs set on the gateway, and the same values under [s3 main]; each test skips otherwise.
Answers that differ from S3's:
S3 APIs that rgw does not implement, which run today as DeleteBucket, PutObject, DeleteObject or ListObjects (https://tracker.ceph.com/issues/80921, ceph/ceph#72114): test_bucket_config_delete_keeps_bucket (metrics, analytics, inventory, intelligent-tiering), test_object_annotation_put_keeps_object, test_object_annotation_delete_keeps_object, test_update_object_encryption_keeps_data, test_rename_object_keeps_destination, test_bucket_metrics_configuration_get_unconfigured.
Run on a single-host vstart cluster at ceph main 7ed73efc1be with the injection points: every fails_on_rgw test here fails on main; with ceph/ceph#72114 to #72117 the tests for those four fixes pass.