Skip to content

Commit 240a328

Browse files
committed
rgw: increase log level for enoent caused by clients
RGWGetBucketPolicy, RGWGetBucketPublicAccessBlock, RGWGetBucketEncryption logs with level 0 when the bucket doesn't have those documents. As this is a normal client error, this can be logged with level 20 as this does not indicate any serious error. Fixes: https://tracker.ceph.com/issues/67500 Signed-off-by: Seena Fallah <[email protected]>
1 parent 8017ef5 commit 240a328

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rgw/rgw_op.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8231,7 +8231,7 @@ void RGWGetBucketPolicy::execute(optional_yield y)
82318231
rgw::sal::Attrs attrs(s->bucket_attrs);
82328232
auto aiter = attrs.find(RGW_ATTR_IAM_POLICY);
82338233
if (aiter == attrs.end()) {
8234-
ldpp_dout(this, 0) << "can't find bucket IAM POLICY attr bucket_name = "
8234+
ldpp_dout(this, 20) << "can't find bucket IAM POLICY attr bucket_name = "
82358235
<< s->bucket_name << dendl;
82368236
op_ret = -ERR_NO_SUCH_BUCKET_POLICY;
82378237
s->err.message = "The bucket policy does not exist";
@@ -8746,7 +8746,7 @@ void RGWGetBucketPublicAccessBlock::execute(optional_yield y)
87468746
auto attrs = s->bucket_attrs;
87478747
if (auto aiter = attrs.find(RGW_ATTR_PUBLIC_ACCESS);
87488748
aiter == attrs.end()) {
8749-
ldpp_dout(this, 0) << "can't find bucket IAM POLICY attr bucket_name = "
8749+
ldpp_dout(this, 20) << "can't find bucket IAM POLICY attr bucket_name = "
87508750
<< s->bucket_name << dendl;
87518751

87528752
op_ret = -ERR_NO_SUCH_PUBLIC_ACCESS_BLOCK_CONFIGURATION;
@@ -8878,7 +8878,7 @@ void RGWGetBucketEncryption::execute(optional_yield y)
88788878
const auto& attrs = s->bucket_attrs;
88798879
if (auto aiter = attrs.find(RGW_ATTR_BUCKET_ENCRYPTION_POLICY);
88808880
aiter == attrs.end()) {
8881-
ldpp_dout(this, 0) << "can't find BUCKET ENCRYPTION attr for bucket_name = " << s->bucket_name << dendl;
8881+
ldpp_dout(this, 20) << "can't find BUCKET ENCRYPTION attr for bucket_name = " << s->bucket_name << dendl;
88828882
op_ret = -ENOENT;
88838883
s->err.message = "The server side encryption configuration was not found";
88848884
return;

0 commit comments

Comments
 (0)