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 <partharora1010@gmail.com>
(cherry picked from commit 0999cf9b56)
This commit is contained in:
1 parent
58480455e8
commit
fac78dd09f
1 file changed
+2
-1
@@ -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:"
|
||||
|
||||
Reference in new issue
Block a user