From 6887958c67afb49e16869ec9f11df2bb2c14f4fe Mon Sep 17 00:00:00 2001 From: subhamkrai Date: Tue, 6 Feb 2024 13:30:00 +0530 Subject: [PATCH] test: use mounter kernal instead of fuse this kernal version is greater than 5.11 let's use mounter kernal instead of fuse. Signed-off-by: subhamkrai (cherry picked from commit abc272c91c9e8f18c522595cd69485db72320d4c) --- tests/framework/installer/ceph_manifests.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tests/framework/installer/ceph_manifests.go b/tests/framework/installer/ceph_manifests.go index d0bc1e313..aec6f743a 100644 --- a/tests/framework/installer/ceph_manifests.go +++ b/tests/framework/installer/ceph_manifests.go @@ -242,6 +242,14 @@ spec: databaseSizeMB: "1024" ` } + + if m.settings.ConnectionsEncrypted { + clusterSpec += ` + csi: + cephfs: + kernelMountOptions: ms_mode=secure + ` + } return clusterSpec + ` priorityClassNames: mon: system-node-critical @@ -349,9 +357,9 @@ parameters: csi.storage.k8s.io/node-stage-secret-namespace: ` + m.settings.Namespace + ` ` if m.settings.ConnectionsEncrypted { - // encryption requires either the 5.11 kernel or the fuse mounter. Until the newer - // kernel is available in minikube, we need to test with fuse. - sc += " mounter: fuse" + // Encryption with kernel version <= 5.11 requires 'mounter: fuse'. For kernel version >= 5.12, it requires 'mounter: kernel'. + // Since the Github action Minikube has kernel version > 5.12, the setting is set to 'mounter: kernel'. + sc += " mounter: kernel" } return sc }