Summary: | better error reporting | ||
---|---|---|---|
Product: | Slurm | Reporter: | Stuart Midgley <stuartm> |
Component: | Scheduling | Assignee: | Brian Christiansen <brian> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | 4 - Minor Issue | ||
Priority: | --- | CC: | brian, da |
Version: | 14.03.9 | ||
Hardware: | Linux | ||
OS: | Linux | ||
Site: | DownUnder GeoSolutions | 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.0pre1 | |
Target Release: | --- | DevPrio: | --- |
Emory-Cloud Sites: | --- | ||
Attachments: | Proposed patch. |
Description
Stuart Midgley
2014-11-02 11:55:55 MST
This is for Brian (or whoever works on this): The job_allocate() function in job_mgr.c takes an argument of "char **err_msg" and this can include whatever details we want to pass back to the user about why his job was rejected. Created attachment 1391 [details]
Proposed patch.
The proposed patch gives the following behavior: brian@compy:~/slurm/master2/compy$ sbatch -p debugg ~/jobs/sleep.sh sbatch: error: invalid partition specified: debugg sbatch: error: Batch job submission failed: Invalid partition name specified brian@compy:~/slurm/master2/compy$ sbatch -p debug,debugg ~/jobs/sleep.sh sbatch: error: invalid partition specified: debugg sbatch: error: Batch job submission failed: Invalid partition name specified brian@compy:~/slurm/master2/compy$ sbatch -p debug,debug1,debugg ~/jobs/sleep.sh sbatch: error: invalid partition specified: debugg sbatch: error: Batch job submission failed: Invalid partition name specified brian@compy:~/slurm/master2/compy$ sbatch -p debug,debugg,debug1 ~/jobs/sleep.sh sbatch: error: invalid partition specified: debugg sbatch: error: Batch job submission failed: Invalid partition name specified brian@compy:~/slurm/master2/compy$ sbatch -p debug,debug2,debug1 ~/jobs/sleep.sh Submitted batch job 10 This is fixed in the following commit in 15.08.0pre1: https://github.com/SchedMD/slurm/commit/b0772490e243d7bba4801ad8653aa6be2ad178b4 Thanks, Brian |