there are chances that there is no cluster running at that moment,
so we could have failure messages like
[errno 2] RADOS object not found (error connecting to the cluster)
usage: cephadm rm-cluster [-h] --fsid FSID [--force] [--keep-logs]
[--zap-osds]
cephadm rm-cluster: error: argument --fsid: expected one argument
in that case, better off not failing this bash function, as this
is not a fatal failure.
See-also: https://tracker.ceph.com/issues/57834
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
}
do_killcephadm() {
- FSID=$($CEPH_BIN/ceph -c $conf_fn fsid)
- sudo $CEPHADM rm-cluster --fsid $FSID --force
+ local FSID=$($CEPH_BIN/ceph -c $conf_fn fsid)
+ if [ -n "$FSID" ]; then
+ sudo $CEPHADM rm-cluster --fsid $FSID --force
+ fi
}
do_umountall() {