Project

General

Profile

Actions

Bug #72849

closed
KC KC

Bucket ACLS (canned and custom) are not migrated completely once the user is migrated to account

Bug #72849: Bucket ACLS (canned and custom) are not migrated completely once the user is migrated to account

Added by Krunal Chheda about 1 year ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
squid, tentacle
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v20.3.0-3037-g5917c06106
Released In:
v21.2.0~2058
Upkeep Timestamp:
2026-10-24T01:58:24+00:00

Description

in rgw, whenever a bucket is created, it stores acl (default if none provided or custom or canned acl passed during create bucket or put_acl()) as bucket attrs.

The acls are stored as RGWAccessControlPolicy The data is stored across 2 members

RGWAccessControlList acl;
ACLOwner owner;

Both these members store the uid of the bucket-owner.
Now when the uid is migrated to account using below command, following code changes the owner of bucket and its acl to account id

radosgw-admin modify user --uid <user id> --account-id <acc_id>

however the bucket acls are not completely migrated as can seen here Its only migrating one member "ACLOwner owner" but did not migrate the "RGWAccessControlList acl"

The problem with this incomplete migration is, now when the migrated user (account) tries to call the CreateBucket() again it fails with error "Cannot modify existing access control policy" because the old_policy when loaded still contains the UID whereas the new request contains the ACCOUNT_ID and there is mismatch.


Related issues 2 (0 open — 2 closed)

Copied to rgw - Backport #73055: squid: Bucket ACLS (canned and custom) are not migrated completely once the user is migrated to accountResolvedKrunal Chheda

Actions
Copied to rgw - Backport #73056: tentacle: Bucket ACLS (canned and custom) are not migrated completely once the user is migrated to accountResolvedKrunal Chheda

Actions

KC Updated by Krunal Chheda about 1 year ago Actions #1

  • Status changed from New to Fix Under Review
  • Pull request ID set to 65370

UB Updated by Upkeep Bot about 1 year ago Actions #2

  • Status changed from Fix Under Review to Pending Backport
  • Merge Commit set to 5917c0610636d57894e7cb5f41611c528f3115f9
  • Fixed In set to v20.3.0-3037-g5917c06106
  • Upkeep Timestamp set to 2025-09-16T19:42:56+00:00

UB Updated by Upkeep Bot about 1 year ago Actions #3

  • Copied to Backport #73055: squid: Bucket ACLS (canned and custom) are not migrated completely once the user is migrated to account added

UB Updated by Upkeep Bot about 1 year ago Actions #4

  • Copied to Backport #73056: tentacle: Bucket ACLS (canned and custom) are not migrated completely once the user is migrated to account added

UB Updated by Upkeep Bot about 1 year ago Actions #5

  • Tags (freeform) set to backport_processed

KC Updated by Krunal Chheda 9 months ago Actions #6

  • Status changed from Pending Backport to Resolved

UB Updated by Upkeep Bot 3 months ago Actions #7

  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2025-09-16T19:42:56+00:00 to 2026-08-28T01:34:18+00:00

UB Updated by Upkeep Bot about 1 month ago Actions #8

  • Released In set to v21.2.0~2058
  • Upkeep Timestamp changed from 2026-08-28T01:34:18+00:00 to 2026-10-24T01:58:24+00:00
Actions

Also available in: PDF Atom