Bug #77293
closedradosgw-admin sync status accepts invalid --bucket argument
0%
Description
`radosgw-admin sync status` should reject the `--bucket` option and return an appropriate error message indicating that bucket-specific synchronization status must be retrieved using:
`radosgw-admin bucket sync status --bucket=<bucket-id>`
Currently, `radosgw-admin sync status --bucket=<bucket-id>` is accepted and returns the generic sync status instead of bucket-specific information. This behavior can be misleading. For example, if a bucket has been deleted and a user runs:
`radosgw-admin sync status --bucket=<deleted-bucket>`
the command still returns the generic sync status, even though the specified bucket does not exist. Users may incorrectly assume that the output corresponds to the requested bucket.
To avoid confusion and ensure consistent behavior, `radosgw-admin sync status` should reject the `--bucket` option and direct users to use `radosgw-admin bucket sync status` for bucket-specific synchronization information.
Logs:
[root@aartis-0 ~]# radosgw-admin sync status
realm 75c8cdef-dab5-459d-b03d-9d16b1558192 (india)
zonegroup 509d2383-05f1-4584-9fd2-0fb31a58b816 (shared)
zone d0026720-92fc-4f6e-8f5b-0c68f6052190 (archive)
current time 2026-06-10T09:56:51Z
zonegroup features enabled: notification_v2,resharding
disabled: compress-encrypted
metadata sync syncing
full sync: 0/64 shards
incremental sync: 64/64 shards
metadata is caught up with master
data sync source: a0b4e510-1d5f-41a1-9d82-b0b5fdfa66aa (primary)
syncing
full sync: 0/128 shards
incremental sync: 128/128 shards
data is caught up with source
[root@aartis-0 ~]#
[root@aartis-0 ~]# radosgw-admin bucket sync status --bucket=julybucket
realm 75c8cdef-dab5-459d-b03d-9d16b1558192 (india)
zonegroup 509d2383-05f1-4584-9fd2-0fb31a58b816 (shared)
zone d0026720-92fc-4f6e-8f5b-0c68f6052190 (archive)
bucket :julybucket[a0b4e510-1d5f-41a1-9d82-b0b5fdfa66aa.14736.2])
current time 2026-06-10T09:57:17Z
source zone a0b4e510-1d5f-41a1-9d82-b0b5fdfa66aa (primary)
source bucket :julybucket[a0b4e510-1d5f-41a1-9d82-b0b5fdfa66aa.14736.2])
incremental sync on 11 shards
bucket is caught up with source
[root@aartis-0 ~]#
[root@aartis-0 ~]# radosgw-admin sync status --bucket=julybucket
realm 75c8cdef-dab5-459d-b03d-9d16b1558192 (india)
zonegroup 509d2383-05f1-4584-9fd2-0fb31a58b816 (shared)
zone d0026720-92fc-4f6e-8f5b-0c68f6052190 (archive)
current time 2026-06-10T09:57:41Z
zonegroup features enabled: notification_v2,resharding
disabled: compress-encrypted
metadata sync syncing
full sync: 0/64 shards
incremental sync: 64/64 shards
metadata is caught up with master
data sync source: a0b4e510-1d5f-41a1-9d82-b0b5fdfa66aa (primary)
syncing
full sync: 0/128 shards
incremental sync: 128/128 shards
data is caught up with source
[root@aartis-0 ~]#
Issue : bucket1 not exists still sync status returning generic sync status.
[root@aartis-0 ~]# s3cmd ls
2026-06-09 03:11 s3://julybucket
2026-06-07 07:48 s3://julybucket-deleted-82ddbe451573c96946e996ae28a6273d
2026-06-09 04:17 s3://mybucket
[root@aartis-0 ~]# radosgw-admin sync status --bucket=bucket1
realm 75c8cdef-dab5-459d-b03d-9d16b1558192 (india)
zonegroup 509d2383-05f1-4584-9fd2-0fb31a58b816 (shared)
zone d0026720-92fc-4f6e-8f5b-0c68f6052190 (archive)
current time 2026-06-10T10:05:00Z
zonegroup features enabled: notification_v2,resharding
disabled: compress-encrypted
metadata sync syncing
full sync: 0/64 shards
incremental sync: 64/64 shards
metadata is caught up with master
data sync source: a0b4e510-1d5f-41a1-9d82-b0b5fdfa66aa (primary)
syncing
full sync: 0/128 shards
incremental sync: 128/128 shards
data is caught up with source
[root@aartis-0 ~]#
AD Updated by Aarti Dhikale 6 months ago
- Description updated (diff)
JI Updated by J. Eric Ivancich 5 months ago
Thanks for the report, @Aarti Dhikale . You set yourself as the assignee. Let us know if you need help with the process of getting a PR in.
AD Updated by Aarti Dhikale 4 months ago
- Status changed from New to Pending Backport
- Backport set to umbrella,tentacle,squid
UB Updated by Upkeep Bot 4 months ago
- Copied to Backport #79076: umbrella: radosgw-admin sync status accepts invalid --bucket argument added
UB Updated by Upkeep Bot 4 months ago
- Copied to Backport #79077: tentacle: radosgw-admin sync status accepts invalid --bucket argument added
UB Updated by Upkeep Bot 4 months ago
- Copied to Backport #79078: squid: radosgw-admin sync status accepts invalid --bucket argument added
UB Updated by Upkeep Bot 4 months ago
- Tags (freeform) set to backport_processed
AD Updated by Aarti Dhikale 4 months ago
- Pull request ID set to 70499
UB Updated by Upkeep Bot 4 months ago
- Merge Commit set to 7f26a20d92fcdc6e3b64f18ee22fd998bed465d8
- Fixed In set to v21.3.0-1677-g7f26a20d92
- Upkeep Timestamp set to 2026-08-06T13:05:32+00:00
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-08-06T13:05:32+00:00 to 2026-08-27T18:44:29+00:00