Project

General

Profile

Actions

Bug #5228

closed

radosgw-admin bucket list no longer shows all buckets

Added by Jan Harkes almost 11 years ago. Updated almost 11 years ago.

Status:
Duplicate
Priority:
High
Assignee:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

It can still list the buckets owned by a specific user when --uid is specified.

The bug was introduced by the following commit,

https://github.com/ceph/ceph/commit/dd19d693e6528c70167958ebc57e075200a08803

The actual bug is that RGWBucketAdminOpState::is_user_op() will always return true because user_id is initialized with RGW_USER_ANON_ID which is the string "anonymous" and as a result RGWBucketAdminOp::info will only traverse the code path where the buckets of a specific user are shown, and the list is empty because anonymous happens to own no buckets.

Specifying --uid="" doesn't help since the set_user_id() setter will not set to a new value if it is empty so there is no way to actually get statistics for a particular bucket or the list of all buckets anymore.

The same is_user_op() function is also used to RGWBucket::link and ::unlink to check if a user was specified. I guess as a result it will probably try to link a bucket to the anonymous user if --uid was not specified, but I didn't actually try this.


Related issues 1 (0 open1 closed)

Is duplicate of rgw - Bug #5455: radosgw-admin buckets list regressionResolvedYehuda Sadeh06/25/2013

Actions
Actions #1

Updated by Yehuda Sadeh almost 11 years ago

  • Priority changed from Normal to High
Actions #2

Updated by Christophe Courtaut almost 11 years ago

Seems to be a duplicate of http://tracker.ceph.com/issues/5455

Actions #3

Updated by Sage Weil almost 11 years ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom PDF