Remember that that attribute hosts.hostnames is really aliases that you want defined for the node in name resolution (/etc/hosts and dns). Yes, the attribute is poorly named, but it doesn't have anything to do with what hostname is set to on the node. I think a very simple postscript is the way to go.
Bruce Potter STSM, Linux & AIX Cluster Development, IBM, Poughkeepsie, NY Email: [email protected] Phone: external: 845-433-7073, internal: TL 293-7073 From: Xiao Peng Wang <[email protected]> To: xCAT Users Mailing list <[email protected]>, Cc: "'xCAT Users Mailing list'" <[email protected]> Date: 11/20/2012 10:21 PM Subject: Re: [xcat-user] Can a short hostname be converted to a FQDN during an install? Looks like the current code logic does not handle the case the customer set the hostname for the node in the host.hostname. The correct code logic should be to check the 'host.hostname' when add the hostname entry for the node to the dhcpd.leases file. You could try to take a look of addnode() in the dhcp.pm Thanks Best Regards ---------------------------------------------------------------------- Wang Xiaopeng (王晓朋) IBM China System Technology Laboratory Tel: 86-10-82453455 Email: [email protected] Address: 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road, Haidian District Beijing P.R.China 100193 Inactive hide details for "Pocina, Goran" ---2012/11/21 05:37:16---We'd like to use short hostnames as all of our keys in the x"Pocina, Goran" ---2012/11/21 05:37:16---We'd like to use short hostnames as all of our keys in the xCAT tables, to save typing, and have the From: "Pocina, Goran" <[email protected]> To: "'xCAT Users Mailing list'" <[email protected]>, Date: 2012/11/21 05:37 Subject: [xcat-user] Can a short hostname be converted to a FQDN during an install? We’d like to use short hostnames as all of our keys in the xCAT tables, to save typing, and have the FQDN assigned as the hostname after an install. We could fix the hostname with a postscript, or perhaps a Kickstart statement, however we’d prefer to have it done more transparently. It would be great if we could use something like a regex in “network.nodehostname=”/\z/.nyc.desres.deshaw.com/” to do this automatically: [root@drdkvm0003 dump1]# lsdef -t network 149_77_52_0-255_255_254_0 Object name: 149_77_52_0-255_255_254_0 ddnsdomain=nyc.desres.deshaw.com domain=nyc.desres.deshaw.com dynamicrange=149.77.53.132-149.77.53.191 gateway=149.77.52.10 mask=255.255.254.0 mgtifname=!remote! nameservers=149.77.52.53,149.77.52.35,10.232.15.130 net=149.77.52.0 nodehostname=/\z/.nyc.desres.deshaw.com/ ntpservers=149.77.52.24,149.77.52.41,149.77.52.138,149.77.52.129 tftpserver=149.77.53.252 But this doesn’t seem to have any effect on the DHCP host-name entry generated in the leases file, or on the “HOSTNAME=develkv8” entry put in /etc/sysconfig/network after the install. BTW. We do have the FQDN listed first in /etc/hosts and DNS: [root@develkv8 ~]# hostname develkv8 [root@develkv8 ~]# host 149.77.53.121 121.53.77.149.in-addr.arpa domain name pointer develkv8.nyc.desres.deshaw.com. [root@develkv8 ~]# grep develkv8 /etc/hosts >>> 149.77.53.121 develkv8.nyc.desres.deshaw.com develkv8 # row 0 rack 0 rank 0 Is there a transparent way to do this? Thanks. ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user
<<inline: graycol.gif>>
------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user
