]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm: do not force container removal on unit stop
authorSage Weil <sage@redhat.com>
Mon, 16 Dec 2019 21:55:51 +0000 (15:55 -0600)
committerSage Weil <sage@redhat.com>
Tue, 17 Dec 2019 13:02:38 +0000 (07:02 -0600)
commit26f9fe54cb635cbcd8f74849d6fa3528cdf5d755
tree6c09505690c6f054a13909e1af7cb9fae4c11bac
parent0172dab437885aecbce72bd849f7caffa4fc1a26
cephadm: do not force container removal on unit stop

The -f arg for 'podman rm' will remove the container without actually
stopping it, leaving the running containers and processes (conmon and
daemon) running and generally making a mess of things.

Doing 'podman rm' without the -f on a running container will complain
that the container is still running.

So, first stop, then remove.

Fixes: f1de7060762d31e567a277c02b0d8d533fbb4661
Signed-off-by: Sage Weil <sage@redhat.com>
src/cephadm/cephadm