From 1ea48002121554257259deea785b2308533de874 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 13 Feb 2023 15:54:46 -0500 Subject: [PATCH] Set node health to None when restarting --- node-daemon/pvcnoded/objects/MonitoringInstance.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/node-daemon/pvcnoded/objects/MonitoringInstance.py b/node-daemon/pvcnoded/objects/MonitoringInstance.py index 5bdc8162..7ae29f5b 100644 --- a/node-daemon/pvcnoded/objects/MonitoringInstance.py +++ b/node-daemon/pvcnoded/objects/MonitoringInstance.py @@ -372,3 +372,12 @@ class MonitoringInstance(object): for future in concurrent.futures.as_completed(to_future_plugin_results): # This doesn't do anything, just lets us wait for them all to complete pass + # Set the node health to None as no previous checks are now valid + self.zkhandler.write( + [ + ( + ("node.monitoring.health", self.this_node.name), + None, + ), + ] + )