stackhpc / ansible-role-openhpc

Ansible role for OpenHPC
Apache License 2.0
44 stars 15 forks source link

Default partition is confusing #149

Open sjpb opened 1 year ago

sjpb commented 1 year ago

Because https://github.com/stackhpc/ansible-role-openhpc/blob/master/templates/slurm.conf.j2#L134 defaults to setting a partition to Default=YES if a group/partition in openhpc_slurm_partitions does not define the default parameter, in a case like this the second partition still ends up being the actual default in slurm:

openhpc_slurm_partitions:
    - name: first
      default: YES
    - name: second

and second has to specifically be marked default: NO to make the first the default.