Ticket 1273

Summary: squeue enhancement
Product: Slurm Reporter: David Bigagli <david>
Component: OtherAssignee: David Bigagli <david>
Status: RESOLVED FIXED QA Contact:
Severity: 5 - Enhancement    
Priority: --- CC: brian, da, schedulerqueen
Version: 15.08.x   
Hardware: Linux   
OS: Linux   
Site: NASA - NCCS Alineos Sites: ---
Atos/Eviden Sites: --- Confidential Site: ---
Coreweave sites: --- Cray Sites: ---
DS9 clusters: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Linux Distro: ---
Machine Name: CLE Version:
Version Fixed: 14.11.1 Target Release: ---
DevPrio: --- Emory-Cloud Sites: ---

Description David Bigagli 2014-11-25 05:37:25 MST
Guys,

After spending most of today rolling out bash patches, I have an RFE.

squeue -w <node_list>  will show the jobs running on <node_list>

This is great for checking to see if anything is running before you
start messing with any nodes.  However, if <node_list> consists
of an invalid list of nodes (because you mis-typed something),
squeue -w will return nothing, which is the same as if it was a valid
list of nodes, and nothing was running on them.

Can squeue -w print "Invalid Nodes" if any of <node_list> is invalid
instead of just silently pretending that nothing is running on them?
(I understand that * technically * nothing IS running on an invalid
nodename, but I think you see my point.)

Thanks for considering,

-Bruce
Comment 1 David Bigagli 2014-11-25 08:53:50 MST
How this output looks like to you:

david@prometeo ~/slurm/work>squeue -w regor[1-4]
             JOBID PARTITION     NAME     USER ST       TIME  NODES CPUS NODELIST(REASON) 
              2568    markab  sleepme    david  R       5:49      1    1 regor1 
              2567    markab  sleepme    david  R       6:04      1    1 regor1 
david@prometeo ~/slurm/work>squeue -w ESA
squeue: error: Invalid node name ESA
david@prometeo ~/slurm/work>squeue -w regor[1-7]
squeue: error: Invalid node name regor5
david@promedavid@prometeo ~/slurm/work>echo $?
1

David
Comment 2 David Bigagli 2014-11-25 09:56:36 MST
Fised in commit de00cc6dd3f7.

David