Bug #19959
luminous: rgw: s3 user stats not updated after radosgw-admin bucket rm --purge-objects
0%
Description
luminous branch, v12.0.2
After deletion of bucket with radosgw-admin with --purge-objects (with deletion of objects) option user stats not decremented.
That leads to user quota exceeded error while storage actually is empty.
Reproduce with development cluster:
$ ../src/vstart.sh -k -d -n -x --rgw_num 1
$ s3cmd mb s3://1111
$ s3cmd put ./test8.raw s3://1111/test8-3.raw
$ ./bin/radosgw-admin user stats --uid=testid --sync-stats
{
"stats": {
"total_entries": 1,
"total_bytes": 8388608,
"total_bytes_rounded": 8388608
},
"last_stats_sync": "2017-05-17 11:03:15.432652Z",
"last_stats_update": "2017-05-17 11:03:15.417365Z"
}
$ ./bin/radosgw-admin bucket list --bucket=1111
[
{
"name": "test8-3.raw",
"instance": "",
"ver": {
"pool": 8,
"epoch": 1
},
"locator": "",
"exists": "true",
"meta": {
"category": 1,
"size": 8388608,
"mtime": "2017-05-17 11:03:00.473904Z",
"etag": "003113ebe886e516b6bed205bf72a8c5",
"owner": "testid",
"owner_display_name": "M. Tester",
"content_type": "application/octet-stream",
"accounted_size": 8388608
},
"tag": "67f1cfbe-3d31-47ae-88e1-daeb6afdb207.4145.2",
"flags": 0,
"pending_map": [],
"versioned_epoch": 0
}
]
$ ./bin/radosgw-admin bucket rm --bucket=1111 --purge-objects
$ ./bin/radosgw-admin gc process
$ ./bin/radosgw-admin user stats --uid=testid --sync-stats
{
"stats": {
"total_entries": 1,
"total_bytes": 8388608,
"total_bytes_rounded": 8388608
},
"last_stats_sync": "2017-05-17 11:07:44.911959Z",
"last_stats_update": "2017-05-17 11:04:35.946969Z"
}
Related issues
History
#1 Updated by Aleksei Gutikov over 6 years ago
reproducible with v12.2.1
user stats not updated with
radosgw-admin bucket rm --purge-objects
and
radosgw-admin bucket rm --purge-objects --bypass-gc
#2 Updated by Casey Bodley over 6 years ago
- Status changed from New to Fix Under Review
- Backport set to luminous
#3 Updated by Casey Bodley over 6 years ago
- Related to Bug #22122: rgw: bucket index object not deleted after radosgw-admin bucket rm --purge-objects --bypass-gc added
#4 Updated by Aleksei Gutikov over 6 years ago
#5 Updated by Yehuda Sadeh over 6 years ago
- Status changed from Fix Under Review to 7
#6 Updated by Nathan Cutler over 6 years ago
- Status changed from 7 to Resolved
- Backport deleted (
luminous)
The master PR https://github.com/ceph/ceph/pull/18922 fixes two tracker issues - this one and #22122. We'll take care of the luminous backport via #22122.