Ticket 19336 - Incorrect JSON output for 'scontrol show node'
Summary: Incorrect JSON output for 'scontrol show node'
Status: OPEN
Alias: None
Product: Slurm
Classification: Unclassified
Component: Accounting (show other tickets)
Version: 23.02.7
Hardware: Linux Linux
: 6 - No support contract
Assignee: Jacob Jenson
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2024-03-15 20:34 MDT by Sergiy Khan
Modified: 2024-03-15 20:34 MDT (History)
0 users

See Also:
Site: -Other-
Alineos Sites: ---
Atos/Eviden Sites: ---
Confidential Site: ---
Coreweave sites: ---
Cray Sites: ---
DS9 clusters: ---
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 Sergiy Khan 2024-03-15 20:34:57 MDT
'scontrol show node --json' always shows the MIXED state as ALLOCATED. For example, compare:

$ scontrol show node <nodename>
CPUAlloc=26 CPUEfctv=32 CPUTot=32 CPULoad=22.93
State=MIXED ...

$ scontrol show node <nodename> --json
   "state": [
     "ALLOCATED"
   ],

Similarly, states `[DRAIN, MIXED]` are displayed as `[ALLOCATED, DRAIN]` in the JSON output.