Project

General

Profile

Actions

Bug #53731

closed

remove bucket API returns NoSuchKey than NoSuchBucket

Added by Satoru Takeuchi over 2 years ago. Updated over 1 year ago.

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

100%

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

Description

Remove bucket API1 returns NoSuchKey but NoSuchBucket is appropriate in this case.

Code path:
RGWRadosStore::get_bucket
> RGWRadosBucket::get_bucket_info
> RGWBucketCtl::read_bucket_info
> RGWBucketCtl::read_bucket_entrypoint_info
> RGWSI_Bucket_SObj::read_bucket_entrypoint_info
> RGWSI_MetaBackend_SObj::get_entry # returns -ENOENT as is. Should convert this to -ERR_NO_SUCH_BUCKET
> rgw_get_system_obj
> RGWSI_SysObj::Obj::ROp::stat
> RGWSI_SysObj_Core::stat # return -ENOENT here.

[1]: https://docs.ceph.com/en/pacific/radosgw/adminops/#remove-bucket


Related issues 3 (0 open3 closed)

Copied to rgw - Backport #54039: octopus: remove bucket API returns NoSuchKey than NoSuchBucketRejectedActions
Copied to rgw - Backport #54040: quincy: remove bucket API returns NoSuchKey than NoSuchBucketRejectedActions
Copied to rgw - Backport #54041: pacific: remove bucket API returns NoSuchKey than NoSuchBucketResolvedCory SnyderActions
Actions

Also available in: Atom PDF