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 <Felipe.SanchesZanoni@windriver.com>
This commit is contained in:
Felipe Sanches Zanoni 2024-11-01 15:41:33 -03:00
parent 673bbf711d
commit dda9ee08b1

View File

@ -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,