Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rgw: unlink deleted bucket from bucket's owner #20017

Merged
merged 1 commit into from Feb 5, 2018

Conversation

cbodley
Copy link
Contributor

@cbodley cbodley commented Jan 18, 2018

if a bucket is deleted by an admin/system user instead of its owner, the unlink would fail and the deleted bucket remained visible to the original owner

Fixes: http://tracker.ceph.com/issues/22248

if a bucket is deleted by an admin/system user instead of its
owner, the unlink would fail and the deleted bucket remained
visible to the original owner

Fixes: http://tracker.ceph.com/issues/22248

Signed-off-by: Casey Bodley <cbodley@redhat.com>
@cbodley
Copy link
Contributor Author

cbodley commented Jan 18, 2018

tested with s3cmd on a vstart cluster:

$ OSD=1 MON=1 RGW=1 MDS=0 MGR=0 ../src/vstart.sh -n -d

$ bin/radosgw-admin -c ceph.conf user create --uid admin --display-name Admin --system

(create s3cmd config file testid.s3cfg with access/secret keys from testid user)
(create s3cmd config file admin.s3cfg with access/secret keys from admin user)

$ s3cmd -c testid.s3cfg mb s3://BUCKET
Bucket 's3://BUCKET/' created

$ s3cmd -c testid.s3cfg ls                                                 
2018-01-18 20:27  s3://BUCKET

$ s3cmd -c admin.s3cfg rb s3://BUCKET                                                                                                              
Bucket 's3://BUCKET/' removed

$ s3cmd -c testid.s3cfg ls        

@cbodley cbodley requested a review from oritwas January 18, 2018 20:36
@cbodley cbodley merged commit ae05572 into ceph:master Feb 5, 2018
@cbodley cbodley deleted the wip-22248 branch February 5, 2018 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants