From fac78dd09f7ae5d27b0f75fb2f562cb80a6df422 Mon Sep 17 00:00:00 2001 From: parth-gr Date: Wed, 19 Feb 2025 14:36:03 +0530 Subject: [PATCH] mds: fix mds liveness probe mds liveness probe call ceph cmd with mons and keyring, but ceph actually looks for the ceph keyring at default folder first and then use the cmd line keyring path, So to avoid that use ceph_args env variable to expose the keyring folder path, Workaround for https://tracker.ceph.com/issues/70167 closes: https://github.com/rook/rook/issues/15373 Signed-off-by: parth-gr (cherry picked from commit 0999cf9b5654bc2c95088d193e0a4f0712d8b4ff) --- pkg/operator/ceph/file/mds/livenessprobe.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/operator/ceph/file/mds/livenessprobe.sh b/pkg/operator/ceph/file/mds/livenessprobe.sh index 5cddfac15..667bb8e4a 100644 --- a/pkg/operator/ceph/file/mds/livenessprobe.sh +++ b/pkg/operator/ceph/file/mds/livenessprobe.sh @@ -7,7 +7,8 @@ FILESYSTEM_NAME="{{ .FilesystemName }}" KEYRING="{{ .Keyring }}" CMD_TIMEOUT="{{ .CmdTimeout }}" -outp="$(ceph fs dump --mon-host="$ROOK_CEPH_MON_HOST" --mon-initial-members="$ROOK_CEPH_MON_INITIAL_MEMBERS" --keyring "$KEYRING" --connect-timeout="$CMD_TIMEOUT" --format json)" +export CEPH_ARGS="--keyring $KEYRING" # workaround for https://tracker.ceph.com/issues/70167 +outp="$(ceph fs dump --mon-host="$ROOK_CEPH_MON_HOST" --mon-initial-members="$ROOK_CEPH_MON_INITIAL_MEMBERS" --name="mds.$MDS_ID" --connect-timeout="$CMD_TIMEOUT" --format json)" rc=$? if [ $rc -ne 0 ]; then echo "ceph MDS dump check failed with the following output:"