]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: fix `cephadm shell --name <daemon-name>` for stopped/failed daemon 56491/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:50:55 +0000 (15:50 -0400)
commit727c9ab21e7b84a7f5e4a84ac72479ed4424ad4d
tree0bcd60a2f8aa9de7b8ee98319ed278bc8b8e1d18
parentd379d2ce4c980253ced860c98f6f27a989780b10
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)
src/cephadm/cephadm.py
src/cephadm/tests/test_cephadm.py