Actions
Bug #76228
closed
AK
AK
rgw: radosgw-admin sync status silently drops output in some cases
Bug #76228:
rgw: radosgw-admin sync status silently drops output in some cases
Due date:
% Done:
0%
Source:
Community (user)
Backport:
tentacle
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
v21.0.0-1484-g566b523516
Released In:
v21.2.0~457
Upkeep Timestamp:
2026-11-04T01:10:34+00:00
Description
After upgrading to Tentacle (20.2.0) my multisite sync status was constantly shorter that before.
[qs-admin@albans-sc0 ~]$ rga sync status
realm 78d88b32-993c-47d7-bbd2-8605174d0d94 (geored_realm)
zonegroup cfc04577-1a23-4753-8f7d-e23fbba8e54a (geored_zg)
zone 6f376461-bc80-4270-bad8-f5ee7a6667ac (siteA)
current time 2026-04-23T09:20:01Z
zonegroup features enabled:
disabled: compress-encrypted,notification_v2,resharding
metadata sync no sync (zone is master)
data sync source: 5a3521d8-11dd-4019-9783-47191b391f03 (siteB)
syncing
full sync: 0/128 shards
incremental sync: 128/128 shards
After a code read of get_data_sync_status I concluded there should be output there. Unless something is being written but not flushed.
The error case below is getting swallowed because it's missing a call to flush_ss. There are a few other code branches in the same boat. Looks like it might have been like that for a long time.
ret = sync.read_source_log_shards_info(dpp(), &source_shards_info);
if (ret < 0) {
push_ss(ss, status, tab) << string("failed to fetch source sync status: ") + cpp_strerror(-ret);
// flush_ss(ss, status); <-- this is missing
return;
}
I rebuilt the radosgw-admin binary with the fix, patched it and now I get:
[qs-admin@albans-sc0 ~]$ rga sync status
realm 78d88b32-993c-47d7-bbd2-8605174d0d94 (geored_realm)
zonegroup cfc04577-1a23-4753-8f7d-e23fbba8e54a (geored_zg)
zone 6f376461-bc80-4270-bad8-f5ee7a6667ac (siteA)
current time 2026-04-23T09:33:49Z
zonegroup features enabled:
disabled: compress-encrypted,notification_v2,resharding
metadata sync no sync (zone is master)
data sync source: 5a3521d8-11dd-4019-9783-47191b391f03 (siteB)
syncing
full sync: 0/128 shards
incremental sync: 128/128 shards
failed to fetch source sync status: (2200) Unknown error 2200
The error I expect is another issue not directly related. I'm going to look into that separately.
AK Updated by Alex Kershaw 7 months ago
- Pull request ID set to 68567
CB Updated by Casey Bodley 7 months ago
- Status changed from New to Fix Under Review
- Target version deleted (
v20.2.0) - Backport set to tentacle
- Affected Versions v20.2.0 added
JI Updated by J. Eric Ivancich 7 months ago
- Assignee set to Alex Kershaw
UB Updated by Upkeep Bot 7 months ago
- Status changed from Fix Under Review to Pending Backport
- Merge Commit set to 566b523516b316513c4d7582522c84738afec065
- Fixed In set to v21.0.0-1484-g566b523516
- Upkeep Timestamp set to 2026-05-18T04:49:19+00:00
UB Updated by Upkeep Bot 7 months ago
- Copied to Backport #76658: tentacle: rgw: radosgw-admin sync status silently drops output in some cases added
UB Updated by Upkeep Bot 7 months ago
- Tags (freeform) set to backport_processed
UB Updated by Upkeep Bot 3 months ago
- Status changed from Pending Backport to Backporting
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2026-05-18T04:49:19+00:00 to 2026-08-27T18:32:29+00:00
UB Updated by Upkeep Bot about 1 month ago
- Released In set to v21.2.0~456
- Upkeep Timestamp changed from 2026-08-27T18:32:29+00:00 to 2026-10-24T01:17:49+00:00
UB Updated by Upkeep Bot 30 days ago
- Released In changed from v21.2.0~456 to v21.2.0~457
- Upkeep Timestamp changed from 2026-10-24T01:17:49+00:00 to 2026-11-04T01:10:34+00:00
Actions