X-Git-Url: http://git.onelab.eu/?p=monitor.git;a=blobdiff_plain;f=commands%2Fpolicy.py;fp=commands%2Fpolicy.py;h=392746f7b1cdb84b7ea94332e4c82f74f9d021e4;hp=7f8c5a29ceac048bc45ffab014b0d6ad727384e9;hb=dd301eafa4f964ec3dfc28bda85c3576ac9ee634;hpb=5cd0f6fd287d0bc80c22b53b655b51ab7019d205 diff --git a/commands/policy.py b/commands/policy.py index 7f8c5a2..392746f 100755 --- a/commands/policy.py +++ b/commands/policy.py @@ -182,16 +182,6 @@ def main(hostnames, sitenames): sitehist.sendMessage('pcufailed_notice', hostname=host, pcu_name=pcu_name) print "send message for host %s PCU Failure" % host - if nodehist.status == 'failboot' and \ - changed_greaterthan(nodehist.last_changed, 0.25) and \ - not found_between(recent_actions, 'bootmanager_restore', 0.5, 0): - # send down node notice - # delay 0.5 days before retrying... - - print "send message for host %s bootmanager_restore" % host - sitehist.runBootManager(host) - # sitehist.sendMessage('retry_bootman', hostname=host) - if nodehist.status == 'down' and \ changed_greaterthan(nodehist.last_changed, 2): if not nodehist.firewall and not found_within(recent_actions, 'down_notice', 3.5):