Project

General

Profile

Actions

Bug #77293

closed
AD AD

radosgw-admin sync status accepts invalid --bucket argument

Bug #77293: radosgw-admin sync status accepts invalid --bucket argument

Added by Aarti Dhikale 6 months ago. Updated 3 months ago.

Status:
Backporting
Priority:
Normal
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
umbrella,tentacle,squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-1677-g7f26a20d92
Released In:
Upkeep Timestamp:
2026-08-27T18:44:29+00:00

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 ~]#


Related issues 3 (2 open — 1 closed)

Copied to rgw - Backport #79076: umbrella: radosgw-admin sync status accepts invalid --bucket argumentFix Under ReviewAarti Dhikale

Actions
Copied to rgw - Backport #79077: tentacle: radosgw-admin sync status accepts invalid --bucket argumentFix Under ReviewAarti Dhikale

Actions
Copied to rgw - Backport #79078: squid: radosgw-admin sync status accepts invalid --bucket argumentResolvedAarti Dhikale

Actions

AD Updated by Aarti Dhikale 6 months ago Actions #1

  • Description updated (diff)

JI Updated by J. Eric Ivancich 5 months ago Actions #2

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 Actions #4

  • Status changed from New to Pending Backport
  • Backport set to umbrella,tentacle,squid

UB Updated by Upkeep Bot 4 months ago Actions #5

  • Copied to Backport #79076: umbrella: radosgw-admin sync status accepts invalid --bucket argument added

UB Updated by Upkeep Bot 4 months ago Actions #6

  • Copied to Backport #79077: tentacle: radosgw-admin sync status accepts invalid --bucket argument added

UB Updated by Upkeep Bot 4 months ago Actions #7

  • Copied to Backport #79078: squid: radosgw-admin sync status accepts invalid --bucket argument added

UB Updated by Upkeep Bot 4 months ago Actions #8

  • Tags (freeform) set to backport_processed

AD Updated by Aarti Dhikale 4 months ago Actions #9

  • Pull request ID set to 70499

UB Updated by Upkeep Bot 4 months ago Actions #10

  • 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 Actions #11

  • 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
Actions

Also available in: PDF Atom