Ticket 19336

Summary: Incorrect JSON output for 'scontrol show node'
Product: Slurm Reporter: Sergiy Khan <sergiy.khan>
Component: AccountingAssignee: Jacob Jenson <jacob>
Status: OPEN --- QA Contact:
Severity: 6 - No support contract    
Priority: ---    
Version: 23.02.7   
Hardware: Linux   
OS: Linux   
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: ---

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.