Ticket 3821

Summary: scontrol show job jobid should print an error message if jobid is non-numerical
Product: Slurm Reporter: Ole.H.Nielsen <Ole.H.Nielsen>
Component: User CommandsAssignee: Director of Support <support>
Status: RESOLVED FIXED QA Contact:
Severity: 4 - Minor Issue    
Priority: --- CC: da
Version: 16.05.10   
Hardware: Linux   
OS: Linux   
Site: DTU Physics 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: 17.02.4 Target Release: ---
DevPrio: --- Emory-Cloud Sites: ---

Description Ole.H.Nielsen@fysik.dtu.dk 2017-05-18 06:26:11 MDT
The command "scontrol show job jobid" prints job information.  However, if a non-numerical jobid is given, the command prints all jobs in the system. 

Expected behaviour: Error message like in the case of a non-existent numerical jobid: 
slurm_load_jobs error: Invalid job id specified

Reproduce by: scontrol show job atextstring
Comment 7 Tim Shaw 2017-05-24 14:03:06 MDT
Ole,

Thanks for identifying this bug.  It has been fixed in commit ea906a243a55 and will be available in the 17.02.4 release.

Regards.

Tim