galaxyproject/ansible-slurm

Port-Ranges are converted into strings

maikknebel opened this issue · 2 comments

When i try to set a port-range, it gets converted into a string, which leads to an error in the slurm-deamon while loading the conf.

slurm_nodes:
  - name: dockerworker[1-10]
    NodeAddr: 192.168.0.1
    Port: [6818-6828]
    State: UNKNOWN

slurm.conf

...
NodeName=dockerworker[1-10] NodeAddr=192.168.0.1 Port=[u'6818-6828'] State=UNKNOWN
...

Error in slurmctrld

ERROR: [../../../src/common/hostlist.c:1735] Invalid range: `u'6818-6828'': Invalid argument

If you quote it, it should work. E.g.

slurm_nodes:
  - name: dockerworker[1-10]
    NodeAddr: 192.168.0.1
    Port: "[6818-6828]"
    State: UNKNOWN

It is working now, thanks for the quick reply.