Bug #15881
closedrgw: radosgw-admin bucket rm fail to delete object that begining with double underscores
0%
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?
Updated by Pritha Srivastava almost 8 years ago
- Assignee set to Pritha Srivastava
Updated by Orit Wasserman almost 8 years ago
probably similar to http://tracker.ceph.com/issues/15318
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.
Updated by Orit Wasserman almost 8 years ago
rgw_obj.instance is used for object versioning
Updated by Konstantin Shalygin 21 days ago
- Status changed from New to Duplicate
- Source changed from other to Community (user)
Updated by Konstantin Shalygin 21 days ago
- Is duplicate of Bug #15318: rgw: fails to delete keys with two underscores added