Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1534992

Summary: rgw: offline resharding doesn't seem to preserve bucket acls
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Orit Wasserman <owasserm>
Component: RGWAssignee: Matt Benjamin (redhat) <mbenjamin>
Status: CLOSED ERRATA QA Contact: Tejas <tchandra>
Severity: medium Docs Contact: Bara Ancincova <bancinco>
Priority: medium    
Version: 2.5CC: cbodley, ceph-eng-bugs, hnallurv, kbader, kdreyer, mbenjamin, mhackett, sweil, tchandra, tpetr, vumrao
Target Milestone: z3   
Target Release: 2.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-27 21:15:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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