]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm: improve is_container_running() 41684/head
authorSage Weil <sage@newdream.net>
Sat, 5 Jun 2021 15:05:48 +0000 (10:05 -0500)
committerSage Weil <sage@newdream.net>
Mon, 7 Jun 2021 14:10:43 +0000 (09:10 -0500)
commitbfc2cf087ec8ecd849f4550ab8666cc43f37a234
treecd0be6b3e2b813dc2a396b16eb99f759ed0527c5
parentbaceda25c3b81cb7e55f32771c70f01355a6b1b0
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>
(cherry picked from commit 4757a13dc62d34d3649b1df3bd9f17793c201c1f)
src/cephadm/cephadm