Add node health to fault states

Adjusts ordering and ensures that node health states are included in
faults if they are less than 50%.

Also adjusts fault ID generation and runs fault checks only coordinator
nodes to avoid too many runs.
This commit is contained in:
2023-12-01 15:50:11 -05:00
parent 8594eb697f
commit 9c2b1b29ee
2 changed files with 88 additions and 36 deletions

View File

@ -328,19 +328,19 @@ class ZKHandler(object):
return True
def children(self, key, retval=None):
def children(self, key):
"""
Lists all children of a key
"""
try:
path = self.get_schema_path(key)
if path is None:
# This path is invalid; this is likely due to missing schema entries, so return None
return retval
raise NoNodeError
return self.zk_conn.get_children(path)
except NoNodeError:
return retval
# This path is invalid; this is likely due to missing schema entries, so return None
return None
def rename(self, kkpairs):
"""