Skip to content

Commit d534d41

Browse files
committed
helpers: Recognize & ignore new "planned" state
Slurm 21.08 has added a *very* welcome new feature called the "planned" state; this state is used to indicate nodes which would otherwise appear "idle" but are being held for a large/high-priority job. This is a frequent source of user confusion and angst (because they would look at the node counts and wonder why their job wasn't running even though enough nodes appeared to be empty), so having this is a big win for user services/consultant staff and scheduler admins everywhere! As with the handling of the `reboot` states, full recognition of this state will be available in 1.4.4 and 1.5, but for now, the helpers will just ignore this state completely.
1 parent 1fbbaea commit d534d41

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

helpers/node-mark-offline

+1-1
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-
*'@'*|*'#'*|boot*)
66+
*'@'*|*'#'*|boot*|*-*|plnd*)
6767
# These states aren't handled yet.
6868
echo "$0: State \"$STATUS\" not yet handled; ignoring."
6969
exit 0

helpers/node-mark-online

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ elif [[ "$NHC_RM" == "slurm" ]]; then
6060
# Slurm does not run the HealthCheckProgram on nodes in the DOWN state,
6161
# but if someone runs NHC by hand, we want to be able to do the right thing.
6262
case "$STATUS" in
63-
*'@'*|*'#'*|boot*)
63+
*'@'*|*'#'*|boot*|*-*|plnd*)
6464
# These states aren't handled yet.
6565
echo "$0: State \"$STATUS\" not yet handled; ignoring."
6666
exit 0

0 commit comments

Comments
 (0)