Bug 2336983 - [IBM Support] RGW return code behavior adjustment for bucket creation nuance [NEEDINFO]
Summary: [IBM Support] RGW return code behavior adjustment for bucket creation nuance
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RGW
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 8.1
Assignee: Matt Benjamin (redhat)
QA Contact: Anuchaithra
URL:
Whiteboard:
Depends On:
Blocks: 2349723
TreeView+ depends on / blocked
 
Reported: 2025-01-10 16:58 UTC by Anthony D'Atri
Modified: 2025-04-08 05:03 UTC (History)
13 users (show)

Fixed In Version: ceph-19.2.1-62.el9cp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2349723 (view as bug list)
Environment:
Last Closed:
Embargoed:
anrao: needinfo? (mbenjamin)


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 70369 0 None None None 2025-03-09 16:34:36 UTC
Red Hat Issue Tracker RHCEPH-10428 0 None None None 2025-01-10 16:59:33 UTC

Description Anthony D'Atri 2025-01-10 16:58:41 UTC
Description of problem:

Customer excepts different behavior for RGW bucket creation.  Ask is an option that when enabled will cause RGW to always return 409 if a CreateBucket call is made for a bucket that already exists.  When false (default) the current 200 behavior will continue.

The behavior that is documented here: https://docs.ceph.com/en/latest/radosgw/s3/bucketops/#http-response, is what Casey mentioned if it's the same owner, you don't get any message/error if it's a different owner, you get a 409 BucketAlreadyExists . 

Version-Release number of selected component (if applicable):

7.1* currently, expected to be the same with 8.x.  Probably requires a 7.1* backport.

How reproducible:

```
[root@ceph01 ~]# aws s3 mb s3://testingb --region default
make_bucket: testingb
[root@ceph01 ~]# aws s3 mb s3://testingb --region default
make_bucket: testingb
[root@ceph01 ~]# radosgw-admin bucket list | grep protect
    "protect"
[root@ceph01 ~]# aws s3 mb s3://protect --region default
make_bucket failed: s3://protect An error occurred (BucketAlreadyExists) when calling the CreateBucket operation: Cannot modify existing access control policy
[root@ceph01 ~]# aws s3api create-bucket --bucket protect --region default
An error occurred (BucketAlreadyExists) when calling the CreateBucket operation: Cannot modify existing access control policy
```


Steps to Reproduce:
1.
2.
3.

Actual results:
409

Expected results:
200

Additional info:


Note You need to log in before you can comment on or make changes to this bug.