[slurm-users] The hostname resolution case sensitive

48 views
Skip to first unread message

Bill via slurm-users

unread,
Nov 7, 2024, 2:34:41 AM11/7/24
to slurm-users
Hi,

I want to confirm that the hostname resolution is case sensitive in SLURM ?

Many thanks,
Bill

Bjørn-Helge Mevik via slurm-users

unread,
Nov 7, 2024, 3:14:17 AM11/7/24
to slurm...@schedmd.com
Bill via slurm-users <slurm...@lists.schedmd.com> writes:

> I want to confirm that the hostname resolution is case sensitive in SLURM ?

That should be easy enough to test:

$ sbatch -A nn9999k -t 10 --mem-per-cpu=100 --wrap='sleep 60' --nodelist=c3-1
Submitted batch job 13088180
$ sbatch -A nn9999k -t 10 --mem-per-cpu=100 --wrap='sleep 60' --nodelist=C3-1
sbatch: error: Batch job submission failed: Invalid node name specified

Looks like answer is Yes. :)

--
Regards,
Bjørn-Helge Mevik, dr. scient,
Department for Research Computing, University of Oslo

signature.asc

Ole Holm Nielsen via slurm-users

unread,
Nov 7, 2024, 3:15:36 AM11/7/24
to slurm...@lists.schedmd.com
Hi Bill,

On 11/7/24 08:32, Bill via slurm-users wrote:
> I want to confirm that the hostname resolution is case sensitive in SLURM ?

DNS names (used by Slurm) are case-INsensitive, see for example
https://www.dnscheck.co/faq#are-dns-records-case-sensitive

IHTH,
Ole

--
slurm-users mailing list -- slurm...@lists.schedmd.com
To unsubscribe send an email to slurm-us...@lists.schedmd.com

Ole Holm Nielsen via slurm-users

unread,
Nov 7, 2024, 3:29:56 AM11/7/24
to slurm...@lists.schedmd.com
On 11/7/24 09:09, Bjørn-Helge Mevik via slurm-users wrote:
> Bill via slurm-users <slurm...@lists.schedmd.com> writes:
>
>> I want to confirm that the hostname resolution is case sensitive in SLURM ?
>
> That should be easy enough to test:
>
> $ sbatch -A nn9999k -t 10 --mem-per-cpu=100 --wrap='sleep 60' --nodelist=c3-1
> Submitted batch job 13088180
> $ sbatch -A nn9999k -t 10 --mem-per-cpu=100 --wrap='sleep 60' --nodelist=C3-1
> sbatch: error: Batch job submission failed: Invalid node name specified
>
> Looks like answer is Yes. :)

Thanks for the test, Bjørn-Helge! I can confirm with this example also
looking up a node "a001":

# scontrol show node A001,a001 | head -2
Node A001 not found
NodeName=a001 Arch=x86_64 CoresPerSocket=10

DNS can lookup this node without problems:

# host A001
a001.nifl.fysik.dtu.dk has address 10.2.129.1

Is Slurm's NodeName case sensitivity a bug or a feature? Maybe someone
can shed light on this?

Thanks,

Bjørn-Helge Mevik via slurm-users

unread,
Nov 7, 2024, 4:49:25 AM11/7/24
to slurm...@schedmd.com
Ole Holm Nielsen via slurm-users <slurm...@lists.schedmd.com> writes:

> Is Slurm's NodeName case sensitivity a bug or a feature?

Preventing people from using UPPERCASE hostnames, usernames, group names
etc. is IMNSHO a feature. :D

--
B/H
signature.asc

Ole Holm Nielsen via slurm-users

unread,
Nov 11, 2024, 9:03:18 AM11/11/24
to slurm...@lists.schedmd.com
Agreed :-) Just an added note on this question:

In the slurm.conf manual page is stated:

> The contents of the file are case insensitive except for the names of nodes and partitions.

and under ClusterName:

> Because of limitations in some databases, any upper case letters in the name will be silently mapped to lower case. In order to avoid confusion, it is recommended that the name be lower case.

/Ole
Reply all
Reply to author
Forward
0 new messages