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 #2

Updated by Casey Bodley over 2 years ago

  • Status changed from New to Fix Under Review
  • Tags set to admin api
  • Pull request ID set to 44413
Actions #3

Updated by Casey Bodley about 2 years ago

  • Status changed from Fix Under Review to Pending Backport
  • Backport changed from octupus pacific to quincy octopus pacific
Actions #4

Updated by Backport Bot about 2 years ago

  • Copied to Backport #54039: octopus: remove bucket API returns NoSuchKey than NoSuchBucket added
Actions #5

Updated by Backport Bot about 2 years ago

  • Copied to Backport #54040: quincy: remove bucket API returns NoSuchKey than NoSuchBucket added
Actions #6

Updated by Backport Bot about 2 years ago

  • Copied to Backport #54041: pacific: remove bucket API returns NoSuchKey than NoSuchBucket added
Actions #7

Updated by Backport Bot over 1 year ago

  • Tags changed from admin api to admin api backport_processed
Actions #8

Updated by Konstantin Shalygin over 1 year ago

  • Tags changed from admin api backport_processed to admin api
  • Backport changed from quincy octopus pacific to octopus pacific
Actions #9

Updated by Konstantin Shalygin over 1 year ago

  • Status changed from Pending Backport to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF