Il 11/02/2016 09:38, Diego Zuccato ha scritto:

> For the time being I worked around it by using a script:
> #!/bin/bash
> # Syntax: sspp partition group
> AU=$(getent group $2 | sed 's/.*://')
> scontrol update PartitionName=$1 AllowAccounts=$AU
> scontrol reconf
Sorry. This script does not work as I intended.

> I don't really understand why is scontrol reconf needed at all, but if I
> don't use it, jobs won't get submitted.
I understood: it's because scontrol reconf rereads the config file,
where access is open for everybody, thus ignoring the previous setting.

If I omit it, slurmctld.log contains:
[2016-02-11T09:48:01.965] update_part: setting AllowAccounts to
[...],diego.zuccato,[...] for partition pp_base
[2016-02-11T09:48:01.965] cons_res: select_p_reconfigure
[2016-02-11T09:48:01.965] cons_res: select_p_node_init
[2016-02-11T09:48:01.965] cons_res: preparing for 5 partitions
[2016-02-11T09:48:18.340] part_policy_valid_acct: job's account not
known, so it can't use this partition (pp_base allows
[...],diego.zuccato,[...])
[2016-02-11T09:48:18.340] _slurm_rpc_submit_batch_job: Invalid account
or account/partition combination specified

Why is account not known? Isn't it the username from which I submit jobs?

-- 
Diego Zuccato
Servizi Informatici
Dip. di Fisica e Astronomia (DIFA) - Università di Bologna
V.le Berti-Pichat 6/2 - 40127 Bologna - Italy
tel.: +39 051 20 95786
mail: [email protected]

Reply via email to