]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
stop.sh: do not block script when there is no running cluster 35637/head
authorKiefer Chang <kiefer.chang@suse.com>
Thu, 18 Jun 2020 07:42:50 +0000 (15:42 +0800)
committerKiefer Chang <kiefer.chang@suse.com>
Thu, 18 Jun 2020 07:51:32 +0000 (15:51 +0800)
commit9884b9313db506a35b4e49d46c754965d90476ed
tree3d9cb799dc6ec9db62f04526ffcff5817bf78bd1
parent6f6123ea8e811f3c536058baf502bb25bd00a34e
stop.sh: do not block script when there is no running cluster

A query for current fsid is called inside `do_killcephadm`. This blocks
the script when there is no running cluster. The fix avoids entering the
function if cephadm command fails or returns no daemons.

The change also hides the following output for non-cephadm environments:

```
Unable to locate any of ['podman', 'docker']
```

Fixes: https://tracker.ceph.com/issues/46067
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
src/stop.sh