]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm: improve is_container_running()
authorSage Weil <sage@newdream.net>
Sat, 5 Jun 2021 15:05:48 +0000 (10:05 -0500)
committerSage Weil <sage@newdream.net>
Sat, 5 Jun 2021 20:39:29 +0000 (15:39 -0500)
commit4757a13dc62d34d3649b1df3bd9f17793c201c1f
tree2f79dfdd3ec24e905b305105bc299639b37bb46f
parent9b9d90bddf192347c538e0a42fc5e84c4eb8594b
cephadm: improve is_container_running()

The 'podman ps' command sporatically exits with 125, I suspect due
to some race/bug in podman itself.

However, our goal here is just to check if a specific container
is running.  Use inspect for that instead--it's even (a bit) faster.

Fixes: https://tracker.ceph.com/issues/51109
Signed-off-by: Sage Weil <sage@newdream.net>
src/cephadm/cephadm