Ticket 22585

Summary: "sinfo -t idle" shows DRAIN node
Product: Slurm Reporter: thanhnh
Component: AccountingAssignee: Marcin Stolarek <cinek>
Status: RESOLVED INFOGIVEN QA Contact:
Severity: 4 - Minor Issue    
Priority: --- CC: cinek
Version: 24.05.4   
Hardware: Linux   
OS: Linux   
See Also: https://support.schedmd.com/show_bug.cgi?id=21428
Site: FB (PSLA) Slinky Site: ---
Alineos Sites: --- Atos/Eviden Sites: ---
Confidential Site: --- Coreweave sites: ---
Cray Sites: --- DS9 clusters: ---
Google sites: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- NoveTech Sites: ---
Nvidia HWinf-CS Sites: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Tzag Elita Sites: ---
Linux Distro: --- Machine Name:
CLE Version: Version Fixed:
Target Release: --- DevPrio: ---
Emory-Cloud Sites: ---

Description thanhnh 2025-04-15 18:21:27 MDT
Hi,
This issue doesn't affect our live traffic, but it is confusing to me why "sinfo -t idle" shows both DRAIN and IDLE.
This question might have been asked before, and it might have been done purposely, so I would love to understand the rationale here.
Comment 1 Marcin Stolarek 2025-04-16 05:03:48 MDT
The reason for nodes shown in "drain" state being displayed by sinfo -t idle is that those aren't states in terms of finete state machine, but rather a flags. When you're look at the output of `scontrol show node` for those the state will be shown as:
>State=IDLE+DRAIN 

Starting from slurm 25.05[1] it will be possible to use sinfo with state combination specified like "idle+~drain" - the list of "states" separated by "+" will mean that all the states are required, and the "~" prefix negates the meaning.

Let me know if that makes it more clear for you.

cheers,
Marcin
[1]commits: 89e67427..f9e99750
Comment 3 Marcin Stolarek 2025-04-22 04:51:20 MDT
I'm marking the case as info given. Should you have any questions, please reopen.
Comment 4 thanhnh 2025-04-24 17:20:34 MDT
Thanks for the detailed answer! I'm clear on that now.