ceph-mon fix logging when no zombie mons found
Change-Id: Ie45320bce6945cc1e3ea7ac4d6f46a1e50abf621
This commit is contained in:
parent
926348fe24
commit
b4004c58bb
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user