I'd like to allow only particular users to use the cray burstbuffer. I know we can explicitly allow users in burst_buffer.conf, but I'd prefer to use Association MaxTRES limits as we can dynamically modify from a script without needing to modify the slurm configuration, reconfigure and re-enable partitions. Is it possible to deny jobs if a MaxTRES limit on the association is lacking? If not, I'll look into adding the needed support to job_submit/lua so we can enforce this directly in the job submit filter. Thanks so much, Doug
nevermind, it appears that setting DenyOnLimit in the job QOS had the effect of denying association limits. Thanks, Doug
As you figured out, the DenyOnLimit qos flag will reject a job submission if the job violates a qos or association Max* limit. brian@compy:~/slurm/15.08/compy$ sacctmgr modify user brian account=test_acct set maxtres=cpu=0 Modified user associations... C = compy A = test_acct U = brian Would you like to commit changes? (You have 30 seconds to decide) (N/y): y brian@compy:~/slurm/15.08/compy$ sbatch --account=test_acct --qos=test_qos --wrap="hostname" Submitted batch job 99112 brian@compy:~/slurm/15.08/compy$ squeue JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON) 99112 debug wrap brian PD 0:00 1 (AssocMaxCpuPerJobLimit) brian@compy:~/slurm/15.08/compy$ sacctmgr modify qos test_qos set flags=denyonlimit Modified qos... test_qos Would you like to commit changes? (You have 30 seconds to decide) (N/y): y brian@compy:~/slurm/15.08/compy$ sbatch --account=test_acct --qos=test_qos --wrap="hostname" sbatch: error: Batch job submission failed: Job violates accounting/QOS policy (job submit limit, user's size and/or time limits)