Ticket 1804

Summary: scontrol delimiter in one-liner output, add test
Product: Slurm Reporter: John Hanks <john.hanks>
Component: Test SuiteAssignee: Moe Jette <jette>
Status: RESOLVED FIXED QA Contact:
Severity: 5 - Enhancement    
Priority: --- CC: brian, da, nyee32
Version: 14.11.6   
Hardware: Linux   
OS: Linux   
Site: KAUST 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: 15.08.0
Target Release: --- DevPrio: ---
Emory-Cloud Sites: ---
Attachments: Added ability to display allocated memory from sinfo
Test for sinfo -O option

Description John Hanks 2015-07-13 23:26:52 MDT
Hello,

This is a request for enlightenment or enhancement, I'll happily take either one.

Is there a way to specify the delimiter in scontrol output when dumping everything on one line? 

And/or to force the display of all possible columns with value=n/a as needed so that the fields will be predictable when parsing this output? 

And/or to have values with strings containing spaces quoted with ' ' or " "? (I think Reason is the only one with possible spaces) 

Alternatively if there is a better way to dump bulk information about nodes in an easy to parse format that would work too. sinfo would almost work by specifying the desired options/format but it doesn't seem to be able include a nodes allocated memory, which is what I am trying to summarize to show our overall %MEM utilization.

The goal is to turn each line into a python dict for the given node, in case there is a better shortcut to get that.

Thanks,

jbh
Comment 1 Nathan Yee 2015-07-24 09:52:19 MDT
Created attachment 2070 [details]
Added ability to display allocated memory from sinfo
Comment 2 Moe Jette 2015-07-24 09:56:14 MDT
Nathan, Please work on a test for this new functionality also.
Comment 3 Moe Jette 2015-07-27 06:04:16 MDT
The modified sinfo option supporting all of the possible fields is in this commit:
https://github.com/SchedMD/slurm/commit/bafcb17f768596fd4f97c62791b5ac09891353c8

It will be in Slurm version 15.08.0-pre7 when released, likely in a couple of weeks.

This ticket is being left open to add a regression test for the new functionality.
Comment 4 Nathan Yee 2015-08-27 09:13:02 MDT
Created attachment 2157 [details]
Test for sinfo -O option