Thank you, Yuan and Christian!

Yuan, I haven't tried it, but it seems that your suggestion would not
actually solve my problem. Makehosts would generate, as you were saying,
this line:

192.168.20.2 hpcmn-test-eth1 hpcmn-test.kkeane.sandiego.edu

But the DNS server should only listen on 192.168.101.2. That is why I my
preferred solution would be to change the zones to have an NS record that
actually points to the correct NIC: hpcmn-test.imm.sabre.kkeane.sandiego.edu
<https://urldefense.proofpoint.com/v2/url?u=http-3A__hpcmn-2Dtest.imm.sabre.kkeane.sandiego.edu&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=uiTcPxjMR44SPRNNb6l_nA&m=qOGCyyozraYLXWyU1XgEcM6-vkB49PjaqtU3rHORky8&s=6nw3zFqtLPxPY7WklKHp9OPW9ZXtUZKTOYl4JXzKCRM&e=>

Christian - you are right. Putting the names into the "hostnames" field was
a bit of a hack. It actually works if there is only one name in that field,
but if there are multiple names in that field, makehosts seems to only use
the last one. And it also seems to *replace* rather than add to the names
that xCAT would ordinarily use.


On Wed, Nov 1, 2017 at 7:04 PM, Yuan Y Bai <by...@cn.ibm.com> wrote:

> Hi Kevin,
>
> I am glad that it does work.
>
> For your question about makehosts:
> In your example, the short names are all 'hpcmn-test',  since 'makehsots'
> generate both short name and long name for one nic ip, here you need to
> configure nics table for eth1 and eth0,  so that, makehosts can generate
> different short names for all nics. and you can add specific long name in
> nics.nicaliases. Take eth1 and eth2 as example:
>
> public nic: eth1: hpcmn-test.kkeane.sandiego.edu
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__hpcmn-2Dtest.kkeane.sandiego.edu&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=uiTcPxjMR44SPRNNb6l_nA&m=qOGCyyozraYLXWyU1XgEcM6-vkB49PjaqtU3rHORky8&s=BV7qQ0Jaj9sy1S0lBaI639BdCAVfhV6HxMsK3ezZRKM&e=>
> management nic: eth2: hpcmn-test.imm.sabre.kkeane.sandiego.edu
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__hpcmn-2Dtest.imm.sabre.kkeane.sandiego.edu&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=uiTcPxjMR44SPRNNb6l_nA&m=qOGCyyozraYLXWyU1XgEcM6-vkB49PjaqtU3rHORky8&s=6nw3zFqtLPxPY7WklKHp9OPW9ZXtUZKTOYl4JXzKCRM&e=>
>
> 1, configure hosts table for mangement ip:
> "hpcmn-test","192.168.101.2",,,,
>
> 2, configure nics table for secondary nics:
> "hpcmn-test","eth1!192.168.20.2",,,,,,"eth1!hpcmn-test.kkeane.sandiego.edu
> ",,,,,
>
> 3, use the same networks table with yours.
>
> 4, use lsdef to see hpcmn-test node definition:
> ]# lsdef hpcmn-test
> Object name: hpcmn-test
>     groups=all
>     ip=192.168.101.2
>     nicaliases.eth1=hpcmn-test.kkeane.sandiego.edu
>     nicips.eth1=192.168.20.2
>     postbootscripts=otherpkgs
>     postscripts=syslog,remoteshell,syncfiles
>
> 5. execute 'makehosts hpcmn-test', check /etc/hosts file:
> 192.168.101.2 hpcmn-test hpcmn-test.imm.sabre.kkeane.sandiego.edu
> 192.168.20.2 hpcmn-test-eth1 hpcmn-test.kkeane.sandiego.edu
>
> Here makehosts create short name hpcmn-test-eth1 which is different short
> name from hpcmn-test. And the long name hpcmn-test.kkeane.sandiego.edu is
> what your wanted. If you define hosts table otherinterfaces, it should have
> different short name with the node name, so you have errors.
>
> I also think Christian gave your another tips to work this, Thanks
> Christian.
>
> Best Regards
> --------------------------------------------------
> Yuan Bai (白媛)
>
> CSTL HPC System Management Development
> Tel:86-10-82451401
> E-mail: by...@cn.ibm.com
> 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: Kevin Keane <kke...@sandiego.edu>
> To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
> Cc:
> Subject: Re: [xcat-user] makedns-generated zones and their NS record
> Date: Thu, Nov 2, 2017 12:00 AM
>
> Thank you, Yuan and Christian!
>
> I have actually pretty much done what both of you had suggested, and it
> does work - somewhat.
>
> I have the following networks:
>
> [root@hpcmn-test ~]# tabdump networks
> #netname,net,mask,mgtifname,gateway,dhcpserver,tftpserver,
> nameservers,ntpservers,logservers,dynamicrange,staticrange,
> staticrangeincrement,nodehostname,ddnsdomain,vlanid,domain,mtu,comments,
> disable
> "hpcpublic","192.168.20.0","255.255.255.0","eth1","192.
> 168.20.1",,,,,,,,,,,,"sabre.kkeane.sandiego.edu
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__sabre.kkeane.sandiego.edu&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=uiTcPxjMR44SPRNNb6l_nA&m=qOGCyyozraYLXWyU1XgEcM6-vkB49PjaqtU3rHORky8&s=BPq3fYv2lgNKMem0EqSdNliyMbx2VMrnTVJyAqliwo8&e=>
> ","1500","HPC Public Network",
> "hpccompute","192.168.100.0","255.255.255.0","eth0",,"192.
> 168.100.2","<xcatmaster>",,,,"192.168.100.200-192.168.100.
> 229",,,"/z/-compute/",,,"compute.sabre.kkeane.sandiego.edu
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__compute.sabre.kkeane.sandiego.edu&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=uiTcPxjMR44SPRNNb6l_nA&m=qOGCyyozraYLXWyU1XgEcM6-vkB49PjaqtU3rHORky8&s=bQEY2MRyFmYWayfp_iokWxVJhOs3sc3cI5VG8gBGL28&e=>
> ","1500","HPC Compute Network",
> "hpcmanagement","192.168.101.0","255.255.255.0","eth2","<
> xcatmaster>","192.168.101.2","<xcatmaster>",,,,"192.168.101.
> 200-192.168.101.229",,,"/z/-imm/",,,"imm.sabre.kkeane.sandiego.edu
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__imm.sabre.kkeane.sandiego.edu&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=uiTcPxjMR44SPRNNb6l_nA&m=qOGCyyozraYLXWyU1XgEcM6-vkB49PjaqtU3rHORky8&s=-7mb0iCbJlqLOBxrptlD0GKvbiDV-o7G5FUGupEr1dI&e=>","1500","HPC
> Management Network",
>
> I also have defined hpcmn-test as a node (thanks, Christian, for the tip
> about unmanaged!):
>
> Object name: hpcmn-test
>     groups=all
>     hostnames=hpcmn-test.kkeane.sandiego.edu
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__hpcmn-2Dtest.kkeane.sandiego.edu&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=uiTcPxjMR44SPRNNb6l_nA&m=qOGCyyozraYLXWyU1XgEcM6-vkB49PjaqtU3rHORky8&s=BV7qQ0Jaj9sy1S0lBaI639BdCAVfhV6HxMsK3ezZRKM&e=>
> hpcmn-test.imm.sabre.kkeane.sandiego.edu
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__hpcmn-2Dtest.imm.sabre.kkeane.sandiego.edu&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=uiTcPxjMR44SPRNNb6l_nA&m=qOGCyyozraYLXWyU1XgEcM6-vkB49PjaqtU3rHORky8&s=6nw3zFqtLPxPY7WklKHp9OPW9ZXtUZKTOYl4JXzKCRM&e=>
>     ip=192.168.101.2
>     postbootscripts=otherpkgs
>     postscripts=syslog,remoteshell,syncfiles
>
> When I manually edit /etc/hosts as Yuan suggested, everything does work:
>
> 127.0.0.1 localhost
> 192.168.101.2 hpcmn-test hpcmn-test.imm.sabre.kkeane.sandiego.edu
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__hpcmn-2Dtest.imm.sabre.kkeane.sandiego.edu&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=uiTcPxjMR44SPRNNb6l_nA&m=qOGCyyozraYLXWyU1XgEcM6-vkB49PjaqtU3rHORky8&s=6nw3zFqtLPxPY7WklKHp9OPW9ZXtUZKTOYl4JXzKCRM&e=>
> hpcmn-test.kkeane.sandiego.edu
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__hpcmn-2Dtest.kkeane.sandiego.edu&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=uiTcPxjMR44SPRNNb6l_nA&m=qOGCyyozraYLXWyU1XgEcM6-vkB49PjaqtU3rHORky8&s=BV7qQ0Jaj9sy1S0lBaI639BdCAVfhV6HxMsK3ezZRKM&e=>
> .
>
> But there are two problems with this:
>
> - hpcmn-test.kkeane.sandiego.edu
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__hpcmn-2Dtest.kkeane.sandiego.edu&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=uiTcPxjMR44SPRNNb6l_nA&m=qOGCyyozraYLXWyU1XgEcM6-vkB49PjaqtU3rHORky8&s=BV7qQ0Jaj9sy1S0lBaI639BdCAVfhV6HxMsK3ezZRKM&e=>
> really should be associated with the public IP (192.168.20.2 in my example)
> - makehosts does not honor this name, even though it is in the node's
> hostnames attribute. Here is what makehosts produces:
>
> 127.0.0.1 localhost
> 192.168.101.2 hpcmn-test hpcmn-test.imm.sabre.kkeane.sandiego.edu
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__hpcmn-2Dtest.imm.sabre.kkeane.sandiego.edu&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=uiTcPxjMR44SPRNNb6l_nA&m=qOGCyyozraYLXWyU1XgEcM6-vkB49PjaqtU3rHORky8&s=6nw3zFqtLPxPY7WklKHp9OPW9ZXtUZKTOYl4JXzKCRM&e=>
>
>
>
> On Wed, Nov 1, 2017 at 7:00 AM, Christian Caruthers <ccaruth...@lenovo.com
> > wrote:
>
> I just had to deal with a similar issue. Try the following:
>
>
>
> -          Fill out each network in the networks table, including domain
> name. Don’t worry about nameservers or gateway unless there is are external
> resources that should be used. NOTE defining an external nameserver in
> networks table will cause makedns to ignore any IPs in that subnet.
>
> -          Define hpcmn-test as an unmanaged node in the cluster (nodeadd
> hpcmn-test groups=__Unmanaged or something similar)
>
> -          Define its primary interface (the one whose domain matches
> site.domain value) in hosts.node/hosts.ip (this should also be what was
> deinfed in nodelist above)
>
> -          Define all other interfaces in hosts.otherinterfaces with
> fqdn. For example:
> “hpcmn-test”,”1.2.3.4”,,”hpctest.compute.sabre.kkeane.sandiego.edu:2
> .3.4.5,hpcmn-test.imm.sabre.kkeane.sandiego.edu:3.4.5.6”,,,,
> The domain names listed for each IP in hosts should match the
> networks.domain entry for each respective subnet.
>
>
>
> Regards,
> *Christian Caruthers*
> Lenovo Professional Services
>
> Mobile: 757-289-9872 <(757)%20289-9872>
>
>
>
> *From:* Kevin Keane [mailto:kke...@sandiego.edu]
> *Sent:* Tuesday, October 31, 2017 4:21 PM
> *To:* xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
> *Subject:* [xcat-user] makedns-generated zones and their NS record
>
>
>
> I have a management node with three NICs, and want to use makedns to
> generate the DNS configuration.
>
> My management node has three names, corresponding to the three NICs:
>
> eth0: hpcmn-test.compute.sabre.kkeane.sandiego.edu
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__hpcmn-2Dtest.compute.sabre.kkeane.sandiego.edu&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=uiTcPxjMR44SPRNNb6l_nA&m=qOGCyyozraYLXWyU1XgEcM6-vkB49PjaqtU3rHORky8&s=qyw4d1KRc_9Z_djj5ca7X4iIEakENnCnc0hb0rQpAuc&e=>
> eth1: hpcmn-test.kkeane.sandiego.edu
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__hpcmn-2Dtest.kkeane.sandiego.edu&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=uiTcPxjMR44SPRNNb6l_nA&m=qOGCyyozraYLXWyU1XgEcM6-vkB49PjaqtU3rHORky8&s=BV7qQ0Jaj9sy1S0lBaI639BdCAVfhV6HxMsK3ezZRKM&e=>
> eth2: hpcmn-test.imm.sabre.kkeane.sandiego.edu
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__hpcmn-2Dtest.imm.sabre.kkeane.sandiego.edu&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=uiTcPxjMR44SPRNNb6l_nA&m=qOGCyyozraYLXWyU1XgEcM6-vkB49PjaqtU3rHORky8&s=6nw3zFqtLPxPY7WklKHp9OPW9ZXtUZKTOYl4JXzKCRM&e=>
>
>
>
> hostname -f returns hpcmn-test.kkeane.sandiego.edu
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__hpcmn-2Dtest.kkeane.sandiego.edu&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=uiTcPxjMR44SPRNNb6l_nA&m=qOGCyyozraYLXWyU1XgEcM6-vkB49PjaqtU3rHORky8&s=BV7qQ0Jaj9sy1S0lBaI639BdCAVfhV6HxMsK3ezZRKM&e=>
> (which is name by which my management node will be known on our public
> network).
>
>
>
> I have the DNS server listening only on eth2. Consequently, the zones in
> the DNS server should have the corresponding name server
> hpcmn-test.imm.sabre.kkeane.sandiego.edu
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__hpcmn-2Dtest.imm.sabre.kkeane.sandiego.edu&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=uiTcPxjMR44SPRNNb6l_nA&m=qOGCyyozraYLXWyU1XgEcM6-vkB49PjaqtU3rHORky8&s=6nw3zFqtLPxPY7WklKHp9OPW9ZXtUZKTOYl4JXzKCRM&e=>.
> However, the zones generated by makedns -n instead use the
> hpcmn-test.kkeane.sandiego.edu
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__hpcmn-2Dtest.kkeane.sandiego.edu&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=uiTcPxjMR44SPRNNb6l_nA&m=qOGCyyozraYLXWyU1XgEcM6-vkB49PjaqtU3rHORky8&s=BV7qQ0Jaj9sy1S0lBaI639BdCAVfhV6HxMsK3ezZRKM&e=>
> name.
>
> $TTL 86400
> @ IN SOA hpcmn-test.kkeane.sandiego.edu
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__hpcmn-2Dtest.kkeane.sandiego.edu&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=uiTcPxjMR44SPRNNb6l_nA&m=qOGCyyozraYLXWyU1XgEcM6-vkB49PjaqtU3rHORky8&s=BV7qQ0Jaj9sy1S0lBaI639BdCAVfhV6HxMsK3ezZRKM&e=>.
> root.hpcmn-test.kkeane.sandiego.edu
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__root.hpcmn-2Dtest.kkeane.sandiego.edu&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=uiTcPxjMR44SPRNNb6l_nA&m=qOGCyyozraYLXWyU1XgEcM6-vkB49PjaqtU3rHORky8&s=t6KrfXR1tWC80yWg4PHx29WwSuOqllm-urksHQpp5nQ&e=>.
> ( 2017103100 <(201)%20710-3100> 10800 3600 604800 86400 )
>   IN NS  hpcmn-test.kkeane.sandiego.edu
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__hpcmn-2Dtest.kkeane.sandiego.edu&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=uiTcPxjMR44SPRNNb6l_nA&m=qOGCyyozraYLXWyU1XgEcM6-vkB49PjaqtU3rHORky8&s=BV7qQ0Jaj9sy1S0lBaI639BdCAVfhV6HxMsK3ezZRKM&e=>
> .
>
> This wreaks havoc with future calls to makedns; updates will time out
> because the DNS server is not listening at the IP address that corresponds
> to this name (and in fact, makehosts doesn't even put this name into
> /etc/hosts)
>
> How can I get makedns to generate zones with an NS record that points to
> hpcmn-test.imm.sabre.kkeane.sandiego.edu
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__hpcmn-2Dtest.imm.sabre.kkeane.sandiego.edu&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=uiTcPxjMR44SPRNNb6l_nA&m=qOGCyyozraYLXWyU1XgEcM6-vkB49PjaqtU3rHORky8&s=6nw3zFqtLPxPY7WklKHp9OPW9ZXtUZKTOYl4JXzKCRM&e=>
> ?
>
>
>
> Thanks!
>
>
>
> --
>
> _______________________________________________________________________
> Kevin Keane | Systems Architect | University of San Diego ITS |
> kke...@sandiego.edu
> Maher Hall, 192 |5998 Alcalá Park | San Diego, CA 92110-2492 |
> 619.260.6859 <%28619%29%20260-2298>
>
> ------------------------------------------------------------
> ------------------
> 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
> xCAT-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xcat-user
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.net_lists_listinfo_xcat-2Duser&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=uiTcPxjMR44SPRNNb6l_nA&m=qOGCyyozraYLXWyU1XgEcM6-vkB49PjaqtU3rHORky8&s=hPKsNXiWqtAcvuIsqfqImkbgNW63t9klIiHq1q_MFnI&e=>
>
>
>
>
>
> --
>
> _______________________________________________________________________
> Kevin Keane | Systems Architect | University of San Diego ITS |
> kke...@sandiego.edu
> Maher Hall, 192 |5998 Alcalá Park | San Diego, CA 92110-2492 |
> 619.260.6859 <%28619%29%20260-2298>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! https://urldefense.proofpoint.
> com/v2/url?u=http-3A__sdm.link_slashdot&d=DwICAg&c=jf_
> iaSHvJObTbx-siA1ZOg&r=uiTcPxjMR44SPRNNb6l_nA&m=qOGCyyozraYLXWyU1XgEcM6-
> vkB49PjaqtU3rHORky8&s=S6md-fzBhTt_BUdWEMoT-QGShPLpbyukOaEw_JgsRlE&e=
> _______________________________________________
> xCAT-user mailing list
> xCAT-user@lists.sourceforge.net
> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.
> sourceforge.net_lists_listinfo_xcat-2Duser&d=DwICAg&
> c=jf_iaSHvJObTbx-siA1ZOg&r=uiTcPxjMR44SPRNNb6l_nA&m=
> qOGCyyozraYLXWyU1XgEcM6-vkB49PjaqtU3rHORky8&s=
> hPKsNXiWqtAcvuIsqfqImkbgNW63t9klIiHq1q_MFnI&e=
>
>
>
>
> ------------------------------------------------------------
> ------------------
> 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
> xCAT-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xcat-user
>
>


-- 

_______________________________________________________________________
Kevin Keane | Systems Architect | University of San Diego ITS |
kke...@sandiego.edu
Maher Hall, 192 |5998 Alcalá Park | San Diego, CA 92110-2492 | 619.260.6859
<%28619%29%20260-2298>
------------------------------------------------------------------------------
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
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to