#18479·rook

OBC user creation fails when CephObjectStore is an RGW multisite zone not in the master zonegroup

Author: daggazCreated Sep 30, 2026Updated Sep 30, 2026
Labelsbugobjectobject-bucket-claimsobject-multisite

OBC provisioning fails when the CephObjectStore is an RGW multisite zone not in the master zonegroup and Rook is responsible for creating the bucket user.

Rook first creates an obc-* user using the RGW Admin Ops API, then uses that user's credentials to create the bucket using the normal S3 API (provisioner.go).

The problem is that the Admin Ops client is configured using the selected CephObjectStore. If that store is a secondary zone, Rook attempts to create the user there and Ceph returns AccessDenied.

For example:

[rook-ceph-cluster-site-a/zone-a] creating Ceph object user "obc-default-example-bucket-..."
...
AccessDenied

zone-a is a secondary zone; user creation needs to happen on the multisite master.

The actual bucket creation doesn't appear to be the problem. Once Rook has user credentials it creates the bucket using the normal S3 API and the selected store endpoint.

Workaround: explicit user

A working workaround is to create the RGW user separately on the master and specify it as the OBC's bucketOwner:

yaml
spec:
  generateBucketName: example
  storageClassName: zone-a
  additionalConfig:
    bucketOwner: example

When bucketOwner is supplied, getUserCreds() does not call createCephUser(). It gets the existing user through Admin Ops and uses its existing access/secret key.

Once the user has replicated to the secondary this works normally. The bucket is created through S3 on zone-a, and deleting the OBC also correctly leaves the externally managed user alone:

Ceph user "example" does not look like an obc generated user and will not be removed

There may be a short period before the user has replicated to the secondary, but OBC reconciliation will retry.

Possible workaround: split Admin Ops and S3 endpoints

Another possible workaround, which we haven't tested, is to configure:

yaml
parameters:
  objectStoreName: master-zone-a
  endpoint: http://rook-ceph-rgw-zone-a.rook-ceph-cluster-site-a.svc:80

The theory is that objectStoreName would cause Rook's Admin Ops client to use master-zone-a, while the explicit endpoint would cause the S3 client and resulting OBC connection details to use zone-a.

The code does keep these paths separate: setAdminOpsAPIClient() gets its endpoint from the CephObjectStore, whereas setS3Agent() uses getObjectStoreEndpoint() (provisioner.go).

We haven't tried this and would prefer not to depend on the distinction between objectStoreName and an overridden endpoint unless necessary.

Expected behaviour

Rook's automatic OBC user creation should understand RGW multisite: user/admin metadata operations should go to the master zone, while the bucket itself should still be created using the normal S3 API against the selected regional zone.

For now, pre-creating the user on the master and supplying it as bucketOwner is a working workaround.