To add to this, at least at the time there were a number of situations where 
applications would fail if there were an underscore in a name.  So we added 
filtering out _.

This is all rooted in https://tools.ietf.org/html/rfc952 which did not include 
_ in the host name.

I have not revisited the state of software in the last few years to determine 
if _ is now ok more broadly.

From: Yuan Y Bai <[email protected]>
Sent: Friday, June 22, 2018 1:45 AM
To: [email protected]
Cc: [email protected]
Subject: [External] Re: [xcat-user] xCAT node name invalid characters or hard 
code limitations ?

Hi Peter,

1 : is the ‘_’ not allow to use in the compute name ?
'_' is not allowed to use in the compute name.

2: is there any way to make it possible to use the ‘_’ in compute name in xCAT ?
I suggest you not use '_' in compute name, '_' is invalid, if you change 
makedns code to let `makedns -n` works, I am not sure if other functions work 
well too. If you want to change code, you can enhance this line 440: "unless 
($names =~ /^[a-z0-9\. \t\n-]+$/i) {"  in /opt/xcat/lib/perl/xCAT_plugin/ddns.pm

Best Regards
--------------------------------------------------
Yuan Bai (白媛)

CSTL HPC System Management Development
Tel:86-10-82451401
E-mail: [email protected]<mailto:[email protected]>
Address: IBM ZGC Campus. Ring Building 28,
ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road, Haidian District,
Beijing P.R.China 100193

IBM环宇大厦
北京市海淀区东北旺西路8号,中关村软件园28号楼
邮编:100193


----- Original message -----
From: peter CZ1 Peng <[email protected]<mailto:[email protected]>>
To: xCAT Users Mailing list 
<[email protected]<mailto:[email protected]>>
Cc:
Subject: [xcat-user] xCAT node name invalid characters or hard code limitations 
?
Date: Fri, Jun 22, 2018 1:31 PM


Hi ,Dear

I setup the xCAT and see below failed info when try to makedns –n ,can anybody 
help to take a look ,thanks



Ignoring line 172.32.44.178 cfdv3_192g_012-bmc cfdv3_192g_012-bmc.cluster  in 
/etc/hosts, names  cfdv3_192g_012-bmc cfdv3_192g_012-bmc.cluster  contain 
invalid characters (valid characters include a through z, numbers and the '-', 
but not '_'

makedns -n ,





[root@mgt ~]# makedns -n

Ignoring line 172.29.101.6 n05_xcc n05_xcc.cluster  in /etc/hosts, names  
n05_xcc n05_xcc.cluster  contain invalid characters (valid characters include a 
throug                   h z, numbers and the '-', but not '_'

Handling n01-xcc in /etc/hosts.



So question is



1 : is the ‘_’ not allow to use in the compute name ?

2: is there any way to make it possible to use the ‘_’ in compute name in xCAT ?









Peter CZ peng
Department :Complex Solution Rack TE
Address:ISH3 Shenzhen

Lenovo China


+86 86361590
+86 18129979128
609 1590
[email protected]<mailto:[email protected]>







Lenovo.com /www.lenovo.com <http://www.lenovo.com/www.lenovo.com>
Twitter<http://twitter.com/lenovo> | Facebook | 
Instagram<https://instagram.com/lenovo> | Blogs<http://blog.lenovo.com/> | 
Forums<http://forums.lenovo.com/>



[Lenovo_2015]








------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
xCAT-user mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/xcat-user


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to