From: Samveen L. <lis...@sa...> - 2015-07-02 09:07:44
|
As per https://www.ietf.org/rfc/rfc1034.txt , the hyphen is the only non-alphanumeric character allowed in DNS names(`.` is a separator). In fact, the default behaviour of xCAT is to use hyphenated names for all secondary interfaces (see the /etc/hosts output in my previous mails). On Thu, Jul 2, 2015 at 3:31 PM, Samveen ListReceipient <lis...@sa... > wrote: > My problem is not with the `host-name` field of the lease (which already > matches the nodename anyway). I want the DDNS-hostname to be set to match > the node definition in xcat (and what would be generated by makedns). I > have trouble because the DHCPD incorrectly updates the hostname's A record > in DDNS to point to the last issued lease instead of the lease for the > primary interface (which DHCPD doesn't know about, and xCAT does). > > If for example a BMC reset happens, then the DNS A record for the host now > points to the IPMI interface's IP. > > A good example is that the hostname resolution between /etc/hosts and the > DNS server give different results: > > [root@xcatmn01 xcat_prep]# host xcatsn01 localhost > > Using domain server: > > Name: localhost > > Address: 127.0.0.1#53 > > Aliases: > > > xcatsn01.poc.lzd.co has address 10.2.72.11 > > [root@xcatmn01 xcat_prep]# grep xcatsn01 /etc/hosts > > 10.4.0.10 xcatsn01 xcatsn01.poc.lzd.co xcatsn01-eth1 > > 10.1.240.10 xcatsn01-m xcatsn01-m.poc.lzd.co > > 10.2.72.11 xcatsn01-s xcatsn01-s.poc.lzd.co > > In my setup, I depend on DHCPD to set the correct DNS names instead of > using `makedns xcatsn01`, and current behaviour doesn't match expected > behaviour. > > On Thu, Jul 2, 2015 at 12:52 PM, Xiao Peng Wang <wx...@cn...> wrote: > >> It will cause problem that your node name is different with the >> hostname/ddns-name in the dhcp leases file. Are both the hostname >> xcatsn01-s and xcatsn01 exist? You should try to figure out the possible >> error in the dns resolution. And avoid using '-' in node name is a good >> idea. >> >> Thanks >> Best Regards >> ---------------------------------------------------------------------- >> Wang Xiaopeng (王晓朋) >> IBM China System Technology Laboratory >> Tel: 86-10-82453455 >> Email: wx...@cn... >> Address: 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road, >> Haidian District Beijing P.R.China 100193 >> >> [image: Inactive hide details for Samveen ListReceipient ---2015/07/01 >> 13:04:43---I forgot to add that for the interface bound to xcats]Samveen >> ListReceipient ---2015/07/01 13:04:43---I forgot to add that for the >> interface bound to xcatsn01-s, the complete network is the dynamic rang >> >> From: Samveen ListReceipient <lis...@sa...> >> To: xCAT <xca...@li...> >> Date: 2015/07/01 13:04 >> Subject: Re: [xcat-user] Static assignment of IPs >> ------------------------------ >> >> >> >> I forgot to add that for the interface bound to xcatsn01-s, the complete >> network is the dynamic range: >> >> [root@xcatmn01 xcat_prep]# lsdef -t network PROVISIONING-SVC -i >> dynamicrange >> Object name: PROVISIONING-SVC >> dynamicrange=10.2.72.2-10.2.72.254 >> >> >> >> On Wed, Jul 1, 2015 at 12:01 PM, Samveen ListReceipient < >> *lis...@sa...* <lis...@sa...>> wrote: >> >> The network related items of my node definition are as follows: >> >> [root@xcatmn01 xcat_prep]# lsdef -t node -o xcatsn01 -i >> installnic,ip,mac,nicips,nictypes,primarynic,nichostnamesuffixes >> Object name: xcatsn01 >> installnic=eth0 >> ip=10.4.0.10 >> >> mac=00:25:90:14:f8:18!xcatsn01-s|00:25:90:14:f8:19!xcatsn01|00:25:90:14:f2:c3!xcatsn01-m >> nichostnamesuffixes.ipmi=-m >> nichostnamesuffixes.eth0=-s >> nicips.eth1=10.4.0.10 >> nicips.ipmi=10.1.240.10 >> nicips.eth0=10.2.72.4 >> nictypes.ipmi=Ethernet >> nictypes.eth1=Ethernet >> nictypes.eth0=Ethernet >> primarynic=eth1 >> >> >> The /etc/hosts entries are as follows: >> [root@xcatmn01 xcat_prep]# grep xcatsn01 /etc/hosts >> 10.4.0.10 xcatsn01 *xcatsn01.poc.lzd.co* <http://xcatsn01.poc.lzd.co/> >> xcatsn01-eth1 >> 10.1.240.10 xcatsn01-m *xcatsn01-m.poc.lzd.co* >> <http://xcatsn01-m.poc.lzd.co/> >> 10.2.72.4 xcatsn01-s *xcatsn01-s.poc.lzd.co* >> <http://xcatsn01-s.poc.lzd.co/> >> >> >> The DHCP lease entries are as follows: >> >> host xcatsn01 { >> dynamic; >> hardware ethernet 00:25:90:14:f8:19; >> fixed-address 10.4.0.10; >> supersede server.ddns-hostname = "xcatsn01"; >> supersede host-name = "xcatsn01"; >> if option user-class-identifier = "xNBA" and option >> client-architecture = 00:00 { >> supersede server.filename = >> "http://$ >> {next-server}/tftpboot/xcat/xnba/nodes/xcatsn01"; >> } elsif option client-architecture = 00:00 { >> supersede server.filename = "xcat/xnba.kpxe"; >> } else { >> supersede server.filename = ""; >> } >> } >> host xcatsn01-m { >> dynamic; >> hardware ethernet 00:25:90:14:f2:c3; >> fixed-address 10.1.240.10; >> supersede server.ddns-hostname = "xcatsn01"; >> supersede host-name = "xcatsn01"; >> if option user-class-identifier = "xNBA" and option >> client-architecture = 00:00 { >> supersede server.filename = >> "http://$ >> {next-server}/tftpboot/xcat/xnba/nodes/xcatsn01"; >> } elsif option client-architecture = 00:00 { >> supersede server.filename = "xcat/xnba.kpxe"; >> } else { >> supersede server.filename = ""; >> } >> } >> host xcatsn01-s { >> dynamic; >> hardware ethernet 00:25:90:14:f8:18; >> supersede server.ddns-hostname = "xcatsn01"; >> supersede host-name = "xcatsn01"; >> if option user-class-identifier = "xNBA" and option >> client-architecture = 00:00 { >> supersede server.filename = >> "http://$ >> {next-server}/tftpboot/xcat/xnba/nodes/xcatsn01"; >> } elsif option client-architecture = 00:00 { >> supersede server.filename = "xcat/xnba.kpxe"; >> } else { >> supersede server.filename = ""; >> } >> } >> >> >> As can be seen from the lease entry for xcatsn01-s and xcatsn01-m, >> the ddns-hostname is the same for all 3 entries. My expectation of the ddns >> behaviour is that it should match the /etc/hosts (and `makedns`) actions. >> ie. for xcatsn01-s, the server.ddns-hostname = "xcatsn01-s"; and for >> xcatsn01-m, the server.ddns-hostname = "xcatsn01-m"; >> >> The existing behaviour causes trouble for me as the IP for xcatsn01-s is >> assigned from the dynamic range, instead of the static range, and thus my >> /etc/hosts and DNS entries don't remain in sync, leading to unexpected >> behaviour. >> >> Am I correct in my expectation or it is unrealistic? >> >> -- >> Samveen S. Gulati >> *http://samveen.in* <http://samveen.in/> >> >> The best-laid schemes o' mice an 'men >> Gang aft agley, >> An'lea'e us nought but grief an' pain, >> For promis'd joy! >> -- Robert Burns >> (The best laid plans of mice and men often go awry, >> and bring nothing but grief and pain instead of ..) >> >> >> >> >> >> -- >> -- >> Samveen S. Gulati >> *http://samveen.in* <http://samveen.in/> >> >> The best-laid schemes o' mice an 'men >> >> Gang aft agley, >> >> An'lea'e us nought but grief an' pain, >> >> For promis'd joy! >> -- Robert Burns >> >> (The best laid plans of mice and men often go awry, >> and bring nothing but grief and pain instead of ..) >> ------------------------------------------------------------------------------ >> Don't Limit Your Business. Reach for the Cloud. >> GigeNET's Cloud Solutions provide you with the tools and support that >> you need to offload your IT needs and focus on growing your business. >> Configured For All Businesses. Start Your Cloud Today. >> https://www.gigenetcloud.com/ >> _______________________________________________ >> xCAT-user mailing list >> xCA...@li... >> https://lists.sourceforge.net/lists/listinfo/xcat-user >> >> >> >> ------------------------------------------------------------------------------ >> Don't Limit Your Business. Reach for the Cloud. >> GigeNET's Cloud Solutions provide you with the tools and support that >> you need to offload your IT needs and focus on growing your business. >> Configured For All Businesses. Start Your Cloud Today. >> https://www.gigenetcloud.com/ >> _______________________________________________ >> xCAT-user mailing list >> xCA...@li... >> https://lists.sourceforge.net/lists/listinfo/xcat-user >> >> > > > -- > -- > Samveen S. Gulati > http://samveen.in > > The best-laid schemes o' mice an 'men > Gang aft agley, > An'lea'e us nought but grief an' pain, > For promis'd joy! > -- Robert Burns > (The best laid plans of mice and men often go awry, > and bring nothing but grief and pain instead of ..) > -- -- Samveen S. Gulati http://samveen.in The best-laid schemes o' mice an 'men Gang aft agley, An'lea'e us nought but grief an' pain, For promis'd joy! -- Robert Burns (The best laid plans of mice and men often go awry, and bring nothing but grief and pain instead of ..) |