From dda9ee08b19a30bf543a3a1e5d223a942009239f Mon Sep 17 00:00:00 2001 From: Felipe Sanches Zanoni Date: Fri, 1 Nov 2024 15:41:33 -0300 Subject: [PATCH] Enable auto-reconnect for cephfs mount This change enables the auto-reconnect in cephfs mount when a client is disconnected. It can occur by an issue in ceph client or a client eviction in mds caused by ceph client hanging. Test Plan: - PASS: upload/apply rook-ceph app - PASS: Create PVC with StorageClass cephfs - PASS: Create POD with PVC - PASS: Check in POD if the mount options was updated - PASS: Evict a connected ceph client, clear the ceph blacklist and check the pod volume is remounted correctly Partial-Bug: 2085648 Change-Id: If53951fea90e429515975ef0dc2d077f4e8f2622 Signed-off-by: Felipe Sanches Zanoni --- .../k8sapp_platform/k8sapp_platform/helm/ceph_fs_provisioner.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python3-k8sapp-platform/k8sapp_platform/k8sapp_platform/helm/ceph_fs_provisioner.py b/python3-k8sapp-platform/k8sapp_platform/k8sapp_platform/helm/ceph_fs_provisioner.py index bbcb182..ccbd8c3 100644 --- a/python3-k8sapp-platform/k8sapp_platform/k8sapp_platform/helm/ceph_fs_provisioner.py +++ b/python3-k8sapp-platform/k8sapp_platform/k8sapp_platform/helm/ceph_fs_provisioner.py @@ -172,6 +172,7 @@ class CephFSProvisionerHelm(base.FluxCDBaseHelm): "clusterID": cluster_id, "name": K8CephFSProvisioner.get_storage_class_name(bk), "fs_name": K8CephFSProvisioner.get_fs(bk), + "kernelMountOptions": "recover_session=clean", "data_pool_name": K8CephFSProvisioner.get_data_pool(bk), "metadata_pool_name": K8CephFSProvisioner.get_metadata_pool(bk), "volumeNamePrefix": app_constants.HELM_CEPH_FS_PROVISIONER_VOLUME_NAME_PREFIX,