Skip to content

Commit 8aa5575

Browse files
author
Michael Jennings
committed
Merge pull request #17 from jthiltges/slurm-resv
Allow SLURM nodes in reservation to be marked offline.
2 parents 91be741 + e839b60 commit 8aa5575

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

helpers/node-mark-offline

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ elif [[ "$NHC_RM" == "slurm" ]]; then
6363
OLD_NOTE_LEADER="${LINE[1]}"
6464
OLD_NOTE="${LINE[*]:2}"
6565
case "$STATUS" in
66-
alloc*|comp*|drain*|drng*|fail*|idle*|maint*|mix*|resume*|undrain*)
66+
alloc*|comp*|drain*|drng*|fail*|idle*|maint*|mix*|resume*|resv*|undrain*)
6767
case "$STATUS" in
6868
drain*|drng*|fail*|maint*)
6969
# If the node is already offline, and there is no old note, and

helpers/node-mark-online

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ elif [[ "$NHC_RM" == "slurm" ]]; then
7474
echo "$0: Marking $HOSTNAME online and clearing note ($OLD_NOTE_LEADER $OLD_NOTE)"
7575
exec $SLURM_SCONTROL $SLURM_SC_ONLINE_ARGS NodeName=$HOSTNAME
7676
;;
77-
alloc*|comp*|idle*|mix*|resume*|undrain*)
77+
alloc*|comp*|idle*|mix*|resume*|resv*|undrain*)
7878
# Node is already online.
7979
echo "$0: Node $HOSTNAME is already online."
8080
;;

0 commit comments

Comments
 (0)