Project

General

Profile

Bug #22742

rgw: resharding doesn't seem to preserve bucket acls

Added by Orit Wasserman about 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
High
Target version:
-
Start date:
Due date:
% Done:

0%

Source:
Tags:
Backport:
jewel luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

Created a public bucket; after resharding the acls do not seem to have been retained

$ s3 -us  create publicbucket cannedAcl=public-read-write
Request-Id: tx0000000000000000f48ff-005a5dd7d9-3732-default
Bucket successfully created.
$for i in {1..10}; do curl -X PUT http://localhost:8000/publicbucket/obj$i -d "@null" -s; done
$ s3 -us list publicbucket
Content-Type: application/xml
Request-Id: tx0000000000000000f490a-005a5dd810-3732-default
Content-Length: 2718
                       Key                             Last Modified      Size
--------------------------------------------------  --------------------  -----
obj1                                                2018-01-16T09:46:29Z      0
obj10                                               2018-01-16T09:46:29Z      0
obj2                                                2018-01-16T09:46:29Z      0
obj3                                                2018-01-16T09:46:29Z      0
obj4                                                2018-01-16T09:46:29Z      0
obj5                                                2018-01-16T09:46:29Z      0
obj6                                                2018-01-16T09:46:29Z      0
obj7                                                2018-01-16T09:46:29Z      0
obj8                                                2018-01-16T09:46:29Z      0
obj9                                                2018-01-16T09:46:29Z      0

$ s3 -us getacl publicbucket filename=publicbucket.acl
Content-Type: application/xml
Request-Id: tx0000000000000000f490c-005a5dd89d-3732-default
Content-Length: 820
$ cat publicbucket.acl
OwnerID testid M. Tester
 Type                                      User Identifier                                           Permission
------  ------------------------------------------------------------------------------------------  ------------
Group   All Users                                                                                   READ
Group   All Users                                                                                   WRITE
UserID  testid (M. Tester)                                                                          FULL_CONTROL

$ radosgw-admin bucket reshard --bucket=publicbucket --num-shards=10
2018-01-16 11:50:44.480673 7f70a509c9c0 -1 WARNING: the following dangerous and experimental features are enabled: *
2018-01-16 11:50:44.481002 7f70a509c9c0 -1 WARNING: the following dangerous and experimental features are enabled: *
2018-01-16 11:50:44.482355 7f70a509c9c0 -1 WARNING: the following dangerous and experimental features are enabled: *
*** NOTICE: operation will not remove old bucket index objects ***
***         these will need to be removed manually             ***
old bucket instance id: 7bacfc31-0169-4b18-8c29-1e4c5b1e481b.14130.3
new bucket instance id: 7bacfc31-0169-4b18-8c29-1e4c5b1e481b.14161.1
total entries: 10
2018-01-16 11:50:44.892935 7f70a509c9c0  0 lockdep stop

$ s3 -us getacl publicbucket filename=publicbucket2.acl
Content-Type: application/xml
Request-Id: tx0000000000000000f490d-005a5dd90c-3732-default
Content-Length: 435
$ cat publicbucket2.acl
OwnerID testid M. Tester
 Type                                      User Identifier                                           Permission
------  ------------------------------------------------------------------------------------------  ------------
UserID  testid (M. Tester)                                                                          FULL_CONTROL

$ curl http://localhost:8000/publicbucket
<?xml version="1.0" encoding="UTF-8"?><Error><Code>AccessDenied</Code><BucketName>publicbucket</BucketName><RequestId>tx0000000000000000f490e-005a5dd949-3732-default</RequestId><HostId>3732-default-default</HostId></Error>

Related issues

Copied to rgw - Backport #22703: jewel: rgw: offline resharding doesn't seem to preserve bucket acls Resolved
Copied to rgw - Backport #22922: luminous: rgw: resharding doesn't seem to preserve bucket acls Resolved

History

#1 Updated by Orit Wasserman about 1 year ago

  • Copied from Backport #22703: jewel: rgw: offline resharding doesn't seem to preserve bucket acls added

#3 Updated by Orit Wasserman about 1 year ago

  • Status changed from In Progress to Need Review

#4 Updated by Orit Wasserman about 1 year ago

  • Priority changed from Normal to High

#5 Updated by Nathan Cutler about 1 year ago

  • Subject changed from rgw: resharding doesn't seem to preserve bucket acls to jewel: rgw: resharding doesn't seem to preserve bucket acls

#6 Updated by Nathan Cutler about 1 year ago

  • Description updated (diff)

#7 Updated by Nathan Cutler about 1 year ago

  • Status changed from Need Review to New

#8 Updated by Nathan Cutler about 1 year ago

  • Tracker changed from Bug to Backport
  • Description updated (diff)
  • Status changed from New to In Progress
  • Release deleted (luminous)
  • Release set to jewel

#9 Updated by Orit Wasserman about 1 year ago

  • Tracker changed from Backport to Bug
  • Subject changed from jewel: rgw: resharding doesn't seem to preserve bucket acls to rgw: resharding doesn't seem to preserve bucket acls
  • % Done set to 0
  • Regression set to No
  • Severity set to 3 - minor
  • Release deleted (jewel)
  • Release set to luminous

#10 Updated by Nathan Cutler about 1 year ago

  • Description updated (diff)

#11 Updated by Nathan Cutler about 1 year ago

  • Copied from deleted (Backport #22703: jewel: rgw: offline resharding doesn't seem to preserve bucket acls)

#12 Updated by Nathan Cutler about 1 year ago

  • Copied to Backport #22703: jewel: rgw: offline resharding doesn't seem to preserve bucket acls added

#13 Updated by Nathan Cutler about 1 year ago

  • Status changed from In Progress to Need Review

#14 Updated by Nathan Cutler about 1 year ago

  • Backport set to jewel luminous

#15 Updated by Nathan Cutler about 1 year ago

  • Description updated (diff)

#16 Updated by Orit Wasserman about 1 year ago

  • Backport changed from jewel luminous to luminous

#17 Updated by Orit Wasserman about 1 year ago

  • Status changed from Need Review to Pending Backport

#18 Updated by Orit Wasserman about 1 year ago

  • Related to Backport #22922: luminous: rgw: resharding doesn't seem to preserve bucket acls added

#19 Updated by Nathan Cutler about 1 year ago

  • Related to deleted (Backport #22922: luminous: rgw: resharding doesn't seem to preserve bucket acls)

#20 Updated by Nathan Cutler about 1 year ago

  • Copied to Backport #22922: luminous: rgw: resharding doesn't seem to preserve bucket acls added

#21 Updated by Nathan Cutler about 1 year ago

  • Backport changed from luminous to jewel luminous

#22 Updated by Yuri Weinstein about 1 year ago

Orit Wasserman wrote:

https://github.com/ceph/ceph/pull/20038

merged

#23 Updated by Nathan Cutler about 1 year ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF