From: Shweta Sodani Date: Thu, 2 Jul 2026 11:23:46 +0000 (+0530) Subject: mgr/smb: Allow pool creation for empty RGW buckets X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c1a672751dc1e50a852488b27487e62250e480d5;p=ceph.git mgr/smb: Allow pool creation for empty RGW buckets When an RGW bucket is empty, SMB clients cannot create directories, files, or upload data because the default.rgw.buckets.data pool does not yet exist. The previous CephX capabilities ('mon allow r') did not permit pool creation during the first write operation. The fix changes the mon capability from 'allow r' to 'allow *' to enable pool creation on the first write to an empty RGW bucket. Once the pool exists, subsequent operations succeed normally. Fixes: https://tracker.ceph.com/issues/77764 Signed-off-by: Shweta Sodani --- diff --git a/src/pybind/mgr/smb/rgw_auth.py b/src/pybind/mgr/smb/rgw_auth.py index 14929f17765..fbe873fd441 100644 --- a/src/pybind/mgr/smb/rgw_auth.py +++ b/src/pybind/mgr/smb/rgw_auth.py @@ -33,7 +33,7 @@ class RGWAuthorizer: if not caps: caps = [ 'mon', - 'allow r', + 'allow *', # Required for pool creation on first write to empty RGW buckets 'osd', 'allow rwx tag rgw *=*', ]