]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: fix `cephadm shell --name <daemon-name>` for stopped/failed daemon 56490/head
authorAdam King <adking@redhat.com>
Tue, 12 Mar 2024 14:26:18 +0000 (10:26 -0400)
committerAdam King <adking@redhat.com>
Tue, 26 Mar 2024 19:49:19 +0000 (15:49 -0400)
commit9e02dfb26a48a7bdc03a244699adaf2e669b39e6
treef67af9e143f8374b42398179339631d5eeffddc8
parentc6666877e217c6d638a6119f9f463000e29e800c
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>
(cherry picked from commit dc5e1ea20c31e1089966ab89370d82e24d138524)

Conflicts:
src/cephadm/cephadm.py
src/cephadm/cephadm.py
src/cephadm/tests/test_cephadm.py