]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
src/stop.sh: fixup ceph-mds daemon count
authorMichael Fritch <mfritch@suse.com>
Mon, 6 Jun 2022 19:10:10 +0000 (13:10 -0600)
committerMichael Fritch <mfritch@suse.com>
Mon, 6 Jun 2022 22:06:30 +0000 (16:06 -0600)
the ceph-mds daemon count is preventing an unmount of fuse clients
and the stop of any existing mds-daemons

fixup for 8a4a432e8b6e

Fixes: https://tracker.ceph.com/issues/55902
Signed-off-by: Michael Fritch <mfritch@suse.com>
src/stop.sh

index 60b6216b6840a5720300061adfc18c26debfef47..1f65ea2f33b0c4856290d39ff5c2c07a64192c1b 100755 (executable)
@@ -105,7 +105,7 @@ do_umountall() {
 
     #Get fuse mounts of the cluster
     num_of_ceph_mdss=$(ps -e | grep \ ceph-mds$ | wc -l)
-    if test num_of_ceph_mdss -ne 0; then
+    if test $num_of_ceph_mdss -ne 0; then
         CEPH_FUSE_MNTS=$("${CEPH_BIN}"/ceph -c $conf_fn tell mds.* client ls 2>/dev/null | grep mount_point | tr -d '",' | awk '{print $2}')
         [ -n "$CEPH_FUSE_MNTS" ] && sudo umount -f $CEPH_FUSE_MNTS
     fi