Bug 1534992 - rgw: offline resharding doesn't seem to preserve bucket acls
Summary: rgw: offline resharding doesn't seem to preserve bucket acls
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RGW
Version: 2.5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z3
: 2.5
Assignee: Matt Benjamin (redhat)
QA Contact: Tejas
Bara Ancincova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-16 12:32 UTC by Orit Wasserman
Modified: 2021-06-10 14:12 UTC (History)
11 users (show)

Fixed In Version: RHEL: ceph-10.2.10-42.el7cp Ubuntu: ceph_10.2.10-36redhat1xenial
Doc Type: Bug Fix
Doc Text:
Previously, bucket access control lists (ACLs) and other attributes were not correctly restored after the bucket link step in offline resharding. The underlying source code has been modified, and the bucket ACLs and other attributes are restored as expected in this situation.
Clone Of:
Environment:
Last Closed: 2018-11-27 21:15:40 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 22703 0 None None None 2018-01-16 12:32:37 UTC
Red Hat Product Errata RHBA-2018:3689 0 None None None 2018-11-27 21:16:15 UTC

Description Orit Wasserman 2018-01-16 12:32:37 UTC
Description of problem:
Created a public bucket; after resharding the acls do not seem to have been retained

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


How reproducible:


Steps to Reproduce:
1. s3 -us  create publicbucket cannedAcl=public-read-write
2. s3 -us list publicbucket
3. s3 -us getacl publicbucket filename=publicbucket.acl
4. radosgw-admin bucket reshard --bucket=publicbucket --num-shards=10
5. s3 -us getacl publicbucket filename=publicbucket2.acl

Actual results:
bucket acl are not the same

Expected results:
bucket acl unchanged

Additional info:

Comment 3 Orit Wasserman 2018-02-08 12:52:16 UTC
A simple workaround:
get bucket acl before resharding:
https://github.com/oritwas/scripts/blob/master/getacl.py

reshard bucket

set back bucket acl:
https://github.com/oritwas/scripts/blob/master/setacl.py

you can also use this script (it uses getacl.py and setacl.py):
https://github.com/oritwas/scripts/blob/master/reshard_and_set_acl.sh

Comment 13 errata-xmlrpc 2018-11-27 21:15:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3689


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