Project

General

Profile

Actions

Bug #51422

open

Quota about bucket does not work.

Added by 海航 于 almost 3 years ago. Updated almost 3 years ago.

Status:
Triaged
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

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

Description

Sorry to disturb here.I'm a fresh man in ceph community.
Here I met something about quota settings(of which ceph version is (14.2.11 nautilus statble).
Here I create one rgw user "admin" and set quota as following(limit quota bucket max-size to 300M):
`
[root@ceph test]# radosgw-admin quota set --quota-scope bucket --uid admin --max-size 300M
[root@ceph test]# radosgw-admin quota enable --quota-scope bucket --uid admin
[root@ceph test]# radosgw-admin user info --uid admin {
"user_id": "admin",
"display_name": "admin",
"email": "",
"suspended": 0,
"max_buckets": 1000,
.........
"bucket_quota": {
"enabled": true,
"check_on_raw": false,
"max_size": 314572800,
"max_size_kb": 307200,
"max_objects": -1
},
"user_quota": {
"enabled": false,
"check_on_raw": false,
"max_size": -1,
"max_size_kb": 0,
"max_objects": -1
},
.........
}
`
Then I use s3cmd to create one bucket named "dlweb-haha" and try to upload one tar file named "python.tar" whose size is around 260M. Then it appears QuotaExceeded error as following:
`
[root@haihang test]# s3cmd put python.tar s3://dlweb-haha
upload: 'python.tar' -> 's3://dlweb-haha/python.tar' [part 1 of 17, 15MB] [1 of 1]
15728640 of 15728640 100% in 0s 37.97 MB/s done
upload: 'python.tar' -> 's3://dlweb-haha/python.tar' [part 2 of 17, 15MB] [1 of 1]
15728640 of 15728640 100% in 0s 39.59 MB/s done
upload: 'python.tar' -> 's3://dlweb-haha/python.tar' [part 3 of 17, 15MB] [1 of 1]
15728640 of 15728640 100% in 0s 29.11 MB/s done
upload: 'python.tar' -> 's3://dlweb-haha/python.tar' [part 4 of 17, 15MB] [1 of 1]
15728640 of 15728640 100% in 0s 43.30 MB/s done
upload: 'python.tar' -> 's3://dlweb-haha/python.tar' [part 5 of 17, 15MB] [1 of 1]
15728640 of 15728640 100% in 0s 91.28 MB/s done
ERROR:
Upload of 'python.tar' part 5 failed. Use
/usr/local/bin/s3cmd abortmp s3://dlweb-haha/python.tar 2~xGg3cURNNovcQlwaz_JpeLAjZCTj6CB
to abort the upload, or
/usr/local/bin/s3cmd --upload-id 2~xGg3cURNNovcQlwaz_JpeLAjZCTj6CB put ...
to continue the upload.
ERROR: S3 error: 403 (QuotaExceeded)
`
How could this happen? 260M is less than the limitation 300M apparently?


Files

quota_error.log (7.09 KB) quota_error.log Log about repeat my operation. 海航 于, 07/12/2021 01:59 AM
Actions

Also available in: Atom PDF