我在异国情调的架构上安装了 ceph 版本 12.2.13 luminous (stable)。因此,无法更新到较新版本的 ceph。
让 radosgw 运行并收听,使用 S3 浏览器对其进行测试。看起来桶列表(即使没有)有效,但是任何创建新桶的尝试都会失败,并出现 403 错误。日志位于这篇文章的底部(列出,然后是创建尝试)。这些是我的用户设置:
# radosgw-admin user info --uid test1
{
"user_id": "test1",
"display_name": "Test one",
"email": "",
"suspended": 0,
"max_buckets": 1000,
"auid": 0,
"subusers": [],
"keys": [
{
"user": "test1",
"access_key": "???",
"secret_key": "???"
}
],
"swift_keys": [],
"caps": [
{
"type": "buckets",
"perm": "*"
},
{
"type": "metadata",
"perm": "*"
},
{
"type": "usage",
"perm": "*"
},
{
"type": "users",
"perm": "*"
},
{
"type": "zone",
"perm": "*"
}
],
"op_mask": "read, write, delete",
"default_placement": "",
"placement_tags": [],
"bucket_quota": {
"enabled": false,
"check_on_raw": false,
"max_size": -1,
"max_size_kb": 0,
"max_objects": -1
},
"user_quota": {
"enabled": false,
"check_on_raw": false,
"max_size": -1,
"max_size_kb": 0,
"max_objects": -1
},
"temp_url_keys": [],
"type": "rgw"
}
radosgw 日志:
x-amz-date:Wed, 05 May 2021 11:32:17 GMT
/
2021-05-05 14:32:29.502463 456c0a3950f0 2 req 2:0.000336:s3:GET /:list_buckets:normalizing buckets and tenants
2021-05-05 14:32:29.502482 456c0a3950f0 10 s->object=<NULL> s->bucket=
2021-05-05 14:32:29.502488 456c0a3950f0 2 req 2:0.000361:s3:GET /:list_buckets:init permissions
2021-05-05 14:32:29.502526 456c0a3950f0 2 req 2:0.000399:s3:GET /:list_buckets:recalculating target
2021-05-05 14:32:29.502538 456c0a3950f0 2 req 2:0.000408:s3:GET /:list_buckets:reading permissions
2021-05-05 14:32:29.502547 456c0a3950f0 2 req 2:0.000420:s3:GET /:list_buckets:init op
2021-05-05 14:32:29.502555 456c0a3950f0 2 req 2:0.000428:s3:GET /:list_buckets:verifying op mask
2021-05-05 14:32:29.502563 456c0a3950f0 2 req 2:0.000436:s3:GET /:list_buckets:verifying op permissions
2021-05-05 14:32:29.502570 456c0a3950f0 2 req 2:0.000444:s3:GET /:list_buckets:verifying op params
2021-05-05 14:32:29.502578 456c0a3950f0 2 req 2:0.000451:s3:GET /:list_buckets:pre-executing
2021-05-05 14:32:29.502587 456c0a3950f0 2 req 2:0.000460:s3:GET /:list_buckets:executing
2021-05-05 14:32:29.503481 456c0a3950f0 2 req 2:0.001351:s3:GET /:list_buckets:completing
2021-05-05 14:32:29.503508 456c0a3950f0 2 req 2:0.001381:s3:GET /:list_buckets:op status=0
2021-05-05 14:32:29.503518 456c0a3950f0 2 req 2:0.001391:s3:GET /:list_buckets:http status=200
2021-05-05 14:32:29.503527 456c0a3950f0 1 ====== req done req=0x456c0a392310 op status=0 http_status=200 ======
2021-05-05 14:32:29.503605 456c0a3950f0 1 civetweb: 0x8ac4f90ce000: 192.168.96.10 - - [05/May/2021:14:32:29 +0300] "GET /?delimiter=%2F&max-keys=1000&prefix=test1%2F123%2F HTTP/1.1" 200 418 - S3 Browser 9.5.5 https://s3browser.com
2021-05-05 14:32:32.424937 456bd435f0f0 2 RGWDataChangesLog::ChangesRenewThread: start
2021-05-05 14:32:32.606362 456c0a3950f0 1 ====== starting new request req=0x456c0a392310 =====
2021-05-05 14:32:32.606399 456c0a3950f0 2 req 3:0.000036::PUT /new-bucket-6121e440/::initializing for trans_id = tx000000000000000000003-0060928250-23354-default
2021-05-05 14:32:32.606414 456c0a3950f0 10 rgw api priority: s3=5 s3website=4
2021-05-05 14:32:32.606419 456c0a3950f0 10 host=192.168.99.254
2021-05-05 14:32:32.606447 456c0a3950f0 10 meta>> HTTP_X_AMZ_DATE
2021-05-05 14:32:32.606457 456c0a3950f0 10 x>> x-amz-date:Wed, 05 May 2021 11:32:20 GMT
2021-05-05 14:32:32.606489 456c0a3950f0 10 handler=25RGWHandler_REST_Bucket_S3
2021-05-05 14:32:32.606497 456c0a3950f0 2 req 3:0.000133:s3:PUT /new-bucket-6121e440/::getting op 1
2021-05-05 14:32:32.606544 456c0a3950f0 10 op=27RGWCreateBucket_ObjStore_S3
2021-05-05 14:32:32.606551 456c0a3950f0 2 req 3:0.000189:s3:PUT /new-bucket-6121e440/:create_bucket:verifying requester
2021-05-05 14:32:32.606596 456c0a3950f0 10 get_canon_resource(): dest=/new-bucket-6121e440/
2021-05-05 14:32:32.606605 456c0a3950f0 10 string_to_sign:
PUT
x-amz-date:Wed, 05 May 2021 11:32:20 GMT
/new-bucket-6121e440/
2021-05-05 14:32:32.606721 456c0a3950f0 2 req 3:0.000359:s3:PUT /new-bucket-6121e440/:create_bucket:normalizing buckets and tenants
2021-05-05 14:32:32.606766 456c0a3950f0 10 s->object=<NULL> s->bucket=new-bucket-6121e440
2021-05-05 14:32:32.606798 456c0a3950f0 2 req 3:0.000434:s3:PUT /new-bucket-6121e440/:create_bucket:init permissions
2021-05-05 14:32:32.606806 456c0a3950f0 2 req 3:0.000444:s3:PUT /new-bucket-6121e440/:create_bucket:recalculating target
2021-05-05 14:32:32.606814 456c0a3950f0 2 req 3:0.000452:s3:PUT /new-bucket-6121e440/:create_bucket:reading permissions
2021-05-05 14:32:32.606822 456c0a3950f0 2 req 3:0.000460:s3:PUT /new-bucket-6121e440/:create_bucket:init op
2021-05-05 14:32:32.606834 456c0a3950f0 2 req 3:0.000471:s3:PUT /new-bucket-6121e440/:create_bucket:verifying op mask
2021-05-05 14:32:32.606843 456c0a3950f0 2 req 3:0.000481:s3:PUT /new-bucket-6121e440/:create_bucket:verifying op permissions
2021-05-05 14:32:32.607696 456c0a3950f0 2 req 3:0.001334:s3:PUT /new-bucket-6121e440/:create_bucket:verifying op params
2021-05-05 14:32:32.607717 456c0a3950f0 2 req 3:0.001355:s3:PUT /new-bucket-6121e440/:create_bucket:pre-executing
2021-05-05 14:32:32.607727 456c0a3950f0 2 req 3:0.001365:s3:PUT /new-bucket-6121e440/:create_bucket:executing
2021-05-05 14:32:32.607847 456c0a3950f0 5 NOTICE: call to do_aws4_auth_completion
2021-05-05 14:32:32.607940 456c0a3950f0 10 cache get: name=default.rgw.meta+root+new-bucket-6121e440 : miss
2021-05-05 14:32:32.608830 456c0a3950f0 10 cache put: name=default.rgw.meta+root+new-bucket-6121e440 info.flags=0x0
2021-05-05 14:32:32.608852 456c0a3950f0 10 adding default.rgw.meta+root+new-bucket-6121e440 to cache LRU end
2021-05-05 14:32:32.610550 456c0a3950f0 2 req 3:0.004186:s3:PUT /new-bucket-6121e440/:create_bucket:completing
2021-05-05 14:32:32.610684 456c0a3950f0 2 req 3:0.004317:s3:PUT /new-bucket-6121e440/:create_bucket:op status=-1
2021-05-05 14:32:32.610703 456c0a3950f0 2 req 3:0.004341:s3:PUT /new-bucket-6121e440/:create_bucket:http status=403
2021-05-05 14:32:32.610718 456c0a3950f0 1 ====== req done req=0x456c0a392310 op status=-1 http_status=403 ======
2021-05-05 14:32:32.610796 456c0a3950f0 1 civetweb: 0x8ac4f90ce000: 192.168.96.10 - - [05/May/2021:14:32:32 +0300] "PUT /new-bucket-6121e440/ HTTP/1.1" 403 436 - S3 Browser 9.5.5 https://s3browser.com