Ticket 1804 - scontrol delimiter in one-liner output, add test
Summary: scontrol delimiter in one-liner output, add test
Status: RESOLVED FIXED
Alias: None
Product: Slurm
Classification: Unclassified
Component: Test Suite (show other tickets)
Version: 14.11.6
Hardware: Linux Linux
: 5 - Enhancement
Assignee: Moe Jette
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2015-07-13 23:26 MDT by John Hanks
Modified: 2015-08-27 10:14 MDT (History)
3 users (show)

See Also:
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 (22.01 KB, patch)
2015-07-24 09:52 MDT, Nathan Yee
Details | Diff
Test for sinfo -O option (6.69 KB, patch)
2015-08-27 09:13 MDT, Nathan Yee
Details | Diff

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