]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: fix `cephadm shell --name <daemon-name>` for stopped/failed daemon 56147/head
authorAdam King <adking@redhat.com>
Tue, 12 Mar 2024 14:26:18 +0000 (10:26 -0400)
committerAdam King <adking@redhat.com>
Fri, 15 Mar 2024 18:54:23 +0000 (14:54 -0400)
commitdc5e1ea20c31e1089966ab89370d82e24d138524
treeef2683fcb99a76d6c983e32d81b72d45dc5d93ea
parentf9c280ce593fdde2914a93262fb3d9bc525f7947
cephadm: fix `cephadm shell --name <daemon-name>` for stopped/failed daemon

This previously would always try to use 'podman
inspect' on the running container of the daemon,
but this doesn't work if the daemon is stopped
or failed. Doing this for stopped/failed daemons
is a valid use case as we recommend cephadm shell
with --name for running debugging tools (often
for OSDs)

Fixes: https://tracker.ceph.com/issues/64879
Signed-off-by: Adam King <adking@redhat.com>
src/cephadm/cephadm.py
src/cephadm/tests/test_cephadm.py