From 8f53522162923ff30b113155ed50e12b143f8ddd Mon Sep 17 00:00:00 2001 From: Felix Prasse <1330854+flx5@users.noreply.github.com> Date: Mon, 28 Apr 2025 21:33:25 +0200 Subject: [PATCH] csi: update caps to include executable permission ceph-csi uses an exclusive lock for cryptfs operations. This needs the x capability on the metadata pool. Fixes #15283 Signed-off-by: Felix Prasse <1330854+flx5@users.noreply.github.com> --- pkg/operator/ceph/csi/secrets.go | 2 +- pkg/operator/ceph/csi/secrets_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/operator/ceph/csi/secrets.go b/pkg/operator/ceph/csi/secrets.go index 8cbe2646f..86739101f 100644 --- a/pkg/operator/ceph/csi/secrets.go +++ b/pkg/operator/ceph/csi/secrets.go @@ -98,7 +98,7 @@ func cephCSIKeyringCephFSNodeCaps() []string { return []string{ "mon", "allow r", "mgr", "allow rw", - "osd", "allow rw tag cephfs *=*", + "osd", "allow rwx tag cephfs metadata=*, allow rw tag cephfs data=*", "mds", "allow rw", } } diff --git a/pkg/operator/ceph/csi/secrets_test.go b/pkg/operator/ceph/csi/secrets_test.go index d76b9db2a..7b3d2116a 100644 --- a/pkg/operator/ceph/csi/secrets_test.go +++ b/pkg/operator/ceph/csi/secrets_test.go @@ -34,7 +34,7 @@ func TestCephCSIKeyringRBDProvisionerCaps(t *testing.T) { func TestCephCSIKeyringCephFSNodeCaps(t *testing.T) { caps := cephCSIKeyringCephFSNodeCaps() - assert.Equal(t, caps, []string{"mon", "allow r", "mgr", "allow rw", "osd", "allow rw tag cephfs *=*", "mds", "allow rw"}) + assert.Equal(t, caps, []string{"mon", "allow r", "mgr", "allow rw", "osd", "allow rwx tag cephfs metadata=*, allow rw tag cephfs data=*", "mds", "allow rw"}) } func TestCephCSIKeyringCephFSProvisionerCaps(t *testing.T) {