Details
-
Bug
-
Resolution: Low Priority
-
Minor
-
None
-
None
-
None
-
3
-
10721
Description
According to Wikipedia, RFC-1123 allows hostnames to begin with a digit. Lustre doesn't like it if you name your host starting with a digit.
This is easy to reproduce: a machine with the hostname 1test fails at llmount:
root@1test ~]# /usr/lib64/lustre/tests/llmount.sh Stopping clients: 1test /mnt/lustre (opts:) Stopping clients: 1test /mnt/lustre2 (opts:) Loading modules from /usr/lib64/lustre/tests/.. detected 1 online CPUs by sysfs libcfs will create CPU partition based on online CPUs ../libcfs/libcfs/libcfs options: 'cpu_npartitions=0' debug=vfstrace rpctrace dlmtrace neterror ha config ioctl super subsystem_debug=all -lnet -lnd -pinger gss/krb5 is not supported Formatting mgs, mds, osts Format mds1: /tmp/lustre-mdt1 Format ost1: /tmp/lustre-ost1 mkfs.lustre: Can't parse NID '1test@tcp' mkfs.lustre: exiting with 1 (Operation not permitted)
where as, if the hostname is changed to test:
[root@test ~]# /usr/lib64/lustre/tests/llmount.sh Stopping clients: test /mnt/lustre (opts:) Stopping clients: test /mnt/lustre2 (opts:) Loading modules from /usr/lib64/lustre/tests/.. detected 1 online CPUs by sysfs libcfs will create CPU partition based on online CPUs ../libcfs/libcfs/libcfs options: 'cpu_npartitions=0' debug=vfstrace rpctrace dlmtrace neterror ha config ioctl super subsystem_debug=all -lnet -lnd -pinger gss/krb5 is not supported Formatting mgs, mds, osts Format mds1: /tmp/lustre-mdt1 Format ost1: /tmp/lustre-ost1 Format ost2: /tmp/lustre-ost2 Checking servers environments Checking clients test environments Loading modules from /usr/lib64/lustre/tests/.. detected 1 online CPUs by sysfs libcfs will create CPU partition based on online CPUs debug=vfstrace rpctrace dlmtrace neterror ha config ioctl super subsystem_debug=all -lnet -lnd -pinger gss/krb5 is not supported Setup mgs, mdt, osts Starting mds1: -o loop /tmp/lustre-mdt1 /mnt/mds1 Started lustre-MDT0000 Starting ost1: -o loop /tmp/lustre-ost1 /mnt/ost1 Started lustre-OST0000 Starting ost2: -o loop /tmp/lustre-ost2 /mnt/ost2 Started lustre-OST0001 Starting client: test: -o user_xattr,flock test@tcp:/lustre /mnt/lustre Using TIMEOUT=20 disable quota as required [root@test ~]#