Bug #75715
closedqa/rgw/multisite: test_copy_object_same_bucket flaky - object size mismatch after sync
0%
Description
The test_copy_object_same_bucket multisite test is flaky, failing intermittently with object size mismatches between zones. The failure appears to be Ubuntu-specific, occurring in 2 out of 4 test runs on Ubuntu 22.04 while passing consistently on Rocky 10.1.
Failed runs (Ubuntu):
https://qa-proxy.ceph.com/teuthology/bcs-ceph-2026-03-24_17:03:56-rgw-wip-oozmen-testing-2026-03-23-2115-distro-default-trial/119215/teuthology.log
https://qa-proxy.ceph.com/teuthology/bcs-ceph-2026-03-25_01:00:31-rgw-wip-oozmen-testing-2026-03-23-2115-distro-default-trial/119853/teuthology.log
Passed runs (Rocky):
https://qa-proxy.ceph.com/teuthology/bcs-ceph-2026-03-24_17:03:56-rgw-wip-oozmen-testing-2026-03-23-2115-distro-default-trial/119180/teuthology.log
https://qa-proxy.ceph.com/teuthology/bcs-ceph-2026-03-25_01:00:31-rgw-wip-oozmen-testing-2026-03-23-2115-distro-default-trial/119888/teuthology.log
test_copy_object_same_bucket validates multisite object copy functionality:
- Creates a bucket in primary zone
- Puts an object in the bucket
- Copies the object within the same bucket (S3 CopyObject operation)
- Waits for metadata sync between zones
- Verifies the copied object exists in all zones with identical size and content
Expected: After sync completes, all zones should have identical object size and content
Actual: Object sizes differ between zones (e.g., 5 bytes in one zone, 3 bytes in another)
Possible Timing Issue
Looking at the test logs, the time window between successful sync checks and failure is very small:
2026-03-24T17:53:53.770 INFO:tasks.rgw_multi.zone_rados:success, bucket identical: bucket=qmlenu-60 zones={test-zone2, test-zone1}
...
2026-03-24T17:54:04.162 INFO:tasks.rgw_multi.zone_rados:success, bucket identical: bucket=qmlenu-60 zones={test-zone2, test-zone1}
...
2026-03-24T17:54:09.556 DEBUG:tasks.rgw_multi.zone_rados:comparing key name=dummy-copy2
2026-03-24T17:54:09.610 INFO:tasks.rgw_multisite_tests:rgw_multi.tests.test_copy_object_same_bucket ... FAIL
Hmm, there's also configuration difference between Rocky & Ubuntu runs:
Rocky (two-zonegroup) - Always passes:
Realm: test-realm
├── Zonegroup A (master)
│ ├── Zone a1 (master)
│ └── Zone a2
└── Zonegroup B
├── Zone b1 (master)
└── Zone b2
Ubuntu (two-zones) - Fails 100%:
Realm: test-realm
└── Zonegroup (default)
├── Zone 1 (master)
└── Zone 2
Something to look into but not urgent?
OO Updated by Oguzhan Ozmen 8 months ago
Bug #75716 qa/rgw/multisite: flaky test - test_copy_object_different_bucket fails with object size mismatch is another closely related tracker.
JI Updated by J. Eric Ivancich 8 months ago
- Assignee set to Shilpa MJ
OO Updated by Oguzhan Ozmen 6 months ago
- Subject changed from qa/rgw/multisite: test_copy_object_same_bucket flaky on Ubuntu - object size mismatch after sync to qa/rgw/multisite: test_copy_object_same_bucket flaky - object size mismatch after sync
AE Updated by Adam Emerson 5 months ago
OO Updated by Oguzhan Ozmen 5 months ago
- Priority changed from Normal to Urgent
Bumping up the prio to Urgent as this is happening pretty consistently. For example, a recent run, https://qa-proxy.ceph.com/teuthology/bcs-ceph-2026-06-25_20:18:22-rgw-wip-oozmen-testing-connList-2026-06-24-1909-distro-default-trial/317240/teuthology.log
2026-06-26T23:36:18.640 INFO:tasks.rgw_multisite_tests:====================================================================== 2026-06-26T23:36:18.640 INFO:tasks.rgw_multisite_tests:FAIL: rgw_multi.tests.test_copy_object_same_bucket 2026-06-26T23:36:18.640 INFO:tasks.rgw_multisite_tests:---------------------------------------------------------------------- 2026-06-26T23:36:18.640 INFO:tasks.rgw_multisite_tests:Traceback (most recent call last): 2026-06-26T23:36:18.640 INFO:tasks.rgw_multisite_tests: File "/home/teuthworker/src/git.ceph.com_teuthology_113475a7f15ec664dc6579dc7443a335a2cbc74c/.venv/lib/python3.12/site-packages/nose/case.py", line 171, in runTest 2026-06-26T23:36:18.640 INFO:tasks.rgw_multisite_tests: self.test(*self.arg) 2026-06-26T23:36:18.640 INFO:tasks.rgw_multisite_tests: File "/home/teuthworker/src/git.ceph.com_ceph-ci_a209f85664c57952122a4a23202de567f5666b12/qa/../src/test/rgw/rgw_multi/tests.py", line 4297, in test_copy_object_same_bucket 2026-06-26T23:36:18.640 INFO:tasks.rgw_multisite_tests: zonegroup_bucket_checkpoint(zonegroup_conns, bucket.name) 2026-06-26T23:36:18.640 INFO:tasks.rgw_multisite_tests: File "/home/teuthworker/src/git.ceph.com_ceph-ci_a209f85664c57952122a4a23202de567f5666b12/qa/../src/test/rgw/rgw_multi/tests.py", line 432, in zonegroup_bucket_checkpoint 2026-06-26T23:36:18.640 INFO:tasks.rgw_multisite_tests: target_conn.check_bucket_eq(source_conn, bucket_name) 2026-06-26T23:36:18.640 INFO:tasks.rgw_multisite_tests: File "/home/teuthworker/src/git.ceph.com_ceph-ci_a209f85664c57952122a4a23202de567f5666b12/qa/tasks/rgw_multi/zone_rados.py", line 123, in check_bucket_eq 2026-06-26T23:36:18.641 INFO:tasks.rgw_multisite_tests: check_object_eq(k1, k2) 2026-06-26T23:36:18.641 INFO:tasks.rgw_multisite_tests: File "/home/teuthworker/src/git.ceph.com_ceph-ci_a209f85664c57952122a4a23202de567f5666b12/qa/tasks/rgw_multi/zone_rados.py", line 50, in check_object_eq 2026-06-26T23:36:18.641 INFO:tasks.rgw_multisite_tests: eq(k1.size, k2.size) 2026-06-26T23:36:18.641 INFO:tasks.rgw_multisite_tests:AssertionError: 3 != 16 2026-06-26T23:36:18.641 INFO:tasks.rgw_multisite_tests: 2026-06-26T23:36:18.641 INFO:tasks.rgw_multisite_tests:---------------------------------------- 2026-06-26T23:36:18.641 INFO:tasks.rgw_multisite_tests:Ran 57 tests in 2937.185s 2026-06-26T23:36:18.641 INFO:tasks.rgw_multisite_tests: 2026-06-26T23:36:18.641 INFO:tasks.rgw_multisite_tests:FAILED (SKIP=2, failures=1)
JI Updated by J. Eric Ivancich 5 months ago
- Related to Bug #75716: qa/rgw/multisite: flaky test - test_copy_object_different_bucket fails with object size mismatch (3 != 16 bytes) added
OO Updated by Oguzhan Ozmen 5 months ago
- Backport set to squid tentacle umbrella
Those 2 testcases (this one and https://tracker.ceph.com/issues/75716) are available in squid+ so is the problematic code so we can backport this all the way down to squid to avoid multisite test failures for these 2 testcases.
UB Updated by Upkeep Bot 5 months ago
- Status changed from Fix Under Review to Pending Backport
- Merge Commit set to 7a3b1ae30fac0c39f0a95e9bab0ddb3eca891314
- Fixed In set to v21.3.0-1043-g7a3b1ae30f
- Upkeep Timestamp set to 2026-07-15T16:33:10+00:00
UB Updated by Upkeep Bot 5 months ago
- Copied to Backport #78258: squid: qa/rgw/multisite: test_copy_object_same_bucket flaky - object size mismatch after sync added
UB Updated by Upkeep Bot 5 months ago
- Copied to Backport #78259: umbrella: qa/rgw/multisite: test_copy_object_same_bucket flaky - object size mismatch after sync added
UB Updated by Upkeep Bot 5 months ago
- Copied to Backport #78260: tentacle: qa/rgw/multisite: test_copy_object_same_bucket flaky - object size mismatch after sync added
UB Updated by Upkeep Bot 5 months ago
- Tags (freeform) changed from rgw multisite qa to rgw multisite qa backport_processed
UB Updated by Upkeep Bot 3 months ago
- Status changed from Pending Backport to Backporting
- Upkeep Timestamp changed from 2026-07-15T16:33:10+00:00 to 2026-08-27T18:41:11+00:00
UB Updated by Upkeep Bot 3 months ago
- Tags (freeform) changed from rgw multisite qa backport_processed to rgw, multisite, qa
- Upkeep Timestamp changed from 2026-08-27T18:41:11+00:00 to 2026-08-28T01:51:35+00:00