Ticket 22585 - "sinfo -t idle" shows DRAIN node
Summary: "sinfo -t idle" shows DRAIN node
Status: RESOLVED INFOGIVEN
Alias: None
Product: Slurm
Classification: Unclassified
Component: Accounting (show other tickets)
Version: 24.05.4
Hardware: Linux Linux
: 4 - Minor Issue
Assignee: Marcin Stolarek
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2025-04-15 18:21 MDT by thanhnh
Modified: 2025-04-24 17:20 MDT (History)
1 user (show)

See Also:
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: ---


Attachments

Note You need to log in before you can comment on or make changes to this ticket.
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.