From b4004c58bb5fbcaca9cf9cbe89b234159a80517a Mon Sep 17 00:00:00 2001 From: Phil Sphicas Date: Tue, 8 Oct 2019 22:37:49 +0000 Subject: [PATCH] ceph-mon fix logging when no zombie mons found Change-Id: Ie45320bce6945cc1e3ea7ac4d6f46a1e50abf621 --- ceph-mon/templates/bin/moncheck/_reap-zombies.py.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceph-mon/templates/bin/moncheck/_reap-zombies.py.tpl b/ceph-mon/templates/bin/moncheck/_reap-zombies.py.tpl index f83f726e3..0960fb5c0 100644 --- a/ceph-mon/templates/bin/moncheck/_reap-zombies.py.tpl +++ b/ceph-mon/templates/bin/moncheck/_reap-zombies.py.tpl @@ -33,8 +33,8 @@ expected_mons = extract_mons_from_kubeapi() print("current mons: %s" % current_mons) print("expected mons: %s" % expected_mons) +removed_mon = False for mon in current_mons: - removed_mon = False if not mon in expected_mons: print("removing zombie mon %s" % mon) subprocess.call(["ceph", "--cluster", os.environ["NAMESPACE"], "mon", "remove", mon])