Project

General

Profile

Actions

Bug #15881

closed

rgw: radosgw-admin bucket rm fail to delete object that begining with double underscores

Added by Jiaying Ren almost 8 years ago. Updated 21 days ago.

Status:
Duplicate
Priority:
Normal
Target version:
-
% Done:

0%

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

Description

$ ceph -v
ceph version 10.0.0-7708-g82af391 (82af391ceaff60d5071c87aa34333255a600199d)

1. Try to delete the bucket/user recursively:

$ radosgw-admin bucket rm --bucket=um-object-storage-7y1kxkubf5y-251 --purge-data
$ radosgw-admin user rm --uid=umtest1 --purge-data

2. But below cmd didn't work:

$ radosgw-admin bucket list --bucket=um-object-storage-7y1kxkubf5y-251

[ {
"name": "_ _",
"instance": "",
"namespace": "",
"owner": "umtest1",
"owner_display_name": "Umcloud Tester1",
"size": 3,
"mtime": "2016-05-12 17:46:11.112580Z",
"etag": "d522d2f830dfcbc263513fcd46cf2cb8",
"content_type": "application\/octet-stream",
"tag": "a2058e60-0fff-49da-89f1-8bd3aa6a9446.4113.43216",
"flags": 0
}, {
"name": "__",
"instance": "",
"namespace": "",
"owner": "umtest1",
"owner_display_name": "Umcloud Tester1",
"size": 2,
"mtime": "2016-05-12 17:46:11.129576Z",
"etag": "18f05aeddc212b523b40818fa2b87b33",
"content_type": "application\/octet-stream",
"tag": "a2058e60-0fff-49da-89f1-8bd3aa6a9446.4113.43217",
"flags": 0
}
]

HTTP API works,but radosgw-admin broken.

BWT,What does rgw_obj.instance used for?


Related issues 1 (0 open1 closed)

Is duplicate of rgw - Bug #15318: rgw: fails to delete keys with two underscoresResolvedOrit Wasserman03/30/2016

Actions
Actions #1

Updated by Pritha Srivastava almost 8 years ago

  • Assignee set to Pritha Srivastava
Actions #3

Updated by Jiaying Ren almost 8 years ago

Orit Wasserman wrote:

probably similar to http://tracker.ceph.com/issues/15318

Hi~ Orit:

I've tested with your fix. It works.

By the way,What does rgw_obj.instance(https://github.com/ceph/ceph/blob/master/src/rgw/rgw_common.h#L1397) used for? Thx.

Actions #4

Updated by Orit Wasserman almost 8 years ago

rgw_obj.instance is used for object versioning

Actions #5

Updated by Konstantin Shalygin 21 days ago

  • Status changed from New to Duplicate
  • Source changed from other to Community (user)
Actions #6

Updated by Konstantin Shalygin 21 days ago

  • Is duplicate of Bug #15318: rgw: fails to delete keys with two underscores added
Actions

Also available in: Atom PDF