From db851caacd4e749808c232c2fd69a5c8fd9d95e2 Mon Sep 17 00:00:00 2001 From: "William (Bill) Allcock" <allcock@anl.gov> Date: Fri, 14 Jan 2022 21:55:51 +0000 Subject: [PATCH] Updated the path and commented out the code to automatically bring the node back online at the admins request. --- hook_chc_pbs_nhc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hook_chc_pbs_nhc.py b/hook_chc_pbs_nhc.py index bbf9cc5..01b0c61 100644 --- a/hook_chc_pbs_nhc.py +++ b/hook_chc_pbs_nhc.py @@ -92,7 +92,7 @@ def markNodeOnline(): try: - script = "/opt/clustertest/bin/chc_scheduler" + script = "/pe/nhc/bin/chc_scheduler" #Get the name of the node where this hook runs nodename = getNodeName() @@ -120,13 +120,13 @@ try: elif (result == 0): pbs.logmsg(pbs.EVENT_DEBUG,"CHC- Node Health Check passed on "+nodename) - +""" #Mark the node online, previously offlined due to health check failure vnode = pbs.server().vnode(nodename) if not vnode.comment is None: if (vnode.comment.startswith('CHC-')): markNodeOnline() - +""" except SystemExit: pass -- GitLab