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 were updated
 - PASS: Evict a connected ceph client, clear the ceph blacklist and
         check the pod volume is remounted correctly

Note: The eviction test was performed manually, the rook-ceph app does
not have a monitor to trigger an eviction.

Partial-Bug: 2085648

Change-Id: Ifedf6e6be17d8d2550c4d814aff56513e4ffaf7a
Signed-off-by: Gustavo Ornaghi Antunes <gustavo.ornaghiantunes@windriver.com>
This commit is contained in:
Gustavo Ornaghi Antunes 2024-11-01 15:40:35 -03:00
parent 650f27901d
commit 0670391cad

@ -180,6 +180,10 @@ cephClusterSpec:
osd: system-node-critical
mgr: system-cluster-critical
csi:
cephfs:
kernelMountOptions: "recover_session=clean"
placement:
all:
tolerations: