otherwise "ceph mon metadata" will hang, when we try to stop an
already-stopped cluster. and `vstart_runner.py` always calls `stop.sh`
before setting up a cluster.
Signed-off-by: Kefu Chai <kchai@redhat.com>
done
if [ $stop_all -eq 1 ]; then
- #Umount mounted filesystems from vstart cluster
- do_umountall
+ if "${CEPH_BIN}"/ceph -s --connect-timeout 1 -c $conf_fn >/dev/null 2>&1; then
+ # Umount mounted filesystems from vstart cluster
+ do_umountall
+ fi
if "${CEPH_BIN}"/rbd device list -c $conf_fn >/dev/null 2>&1; then
"${CEPH_BIN}"/rbd device list -c $conf_fn | tail -n +2 |