X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=policy.py;h=11ec4a7e5b74e57ac85c7abbef68ea1ecdcdc4d1;hb=refs%2Fheads%2F2.0;hp=43b37cad5a8d1f53e5ef797a2d3db0b027b6c2b4;hpb=1c04163935026728755e777c29c3c234642e4235;p=monitor.git diff --git a/policy.py b/policy.py index 43b37ca..11ec4a7 100755 --- a/policy.py +++ b/policy.py @@ -33,7 +33,7 @@ api = plc.getAuthAPI() def logic(): - plc.nodeBootState(host, 'rins') + plc.nodeBootState(host, 'reinstall') node_end_record(host) def main(hostnames, sitenames): @@ -67,6 +67,8 @@ def main(hostnames, sitenames): changed_lessthan(nodehist.last_changed, 1.0) and \ found_within(recent_actions, 'down_notice', 7.0) and \ not found_within(recent_actions, 'online_notice', 0.5): + # NOTE: chronicly flapping nodes will not get 'online' notices + # since, they are never up long enough to be 'good'. # NOTE: searching for down_notice proves that the node has # gone through a 'down' state first, rather than just # flapping through: good, offline, online, ...