{"action":"closed","issue":{"url":"https://api.github.com/repos/xcat2/xcat-core/issues/2974","repository_url":"https://api.github.com/repos/xcat2/xcat-core","labels_url":"https://api.github.com/repos/xcat2/xcat-core/issues/2974/labels{/name}","comments_url":"https://api.github.com/repos/xcat2/xcat-core/issues/2974/comments","events_url":"https://api.github.com/repos/xcat2/xcat-core/issues/2974/events","html_url":"https://github.com/xcat2/xcat-core/issues/2974","id":225913301,"number":2974,"title":"[Support]Emulating `xCAT 2.9.1` ddns behaviour with `xCAT 2.13.2`","user":{"login":"samveen","id":1241434,"avatar_url":"https://avatars2.githubusercontent.com/u/1241434?v=3","gravatar_id":"","url":"https://api.github.com/users/samveen","html_url":"https://github.com/samveen","followers_url":"https://api.github.com/users/samveen/followers","following_url":"https://api.github.com/users/samveen/following{/other_user}","gists_url":"https://api.github.com/users/samveen/gists{/gist_id}","starred_url":"https://api.github.com/users/samveen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samveen/subscriptions","organizations_url":"https://api.github.com/users/samveen/orgs","repos_url":"https://api.github.com/users/samveen/repos","events_url":"https://api.github.com/users/samveen/events{/privacy}","received_events_url":"https://api.github.com/users/samveen/received_events","type":"User","site_admin":false},"labels":[{"id":388668289,"url":"https://api.github.com/repos/xcat2/xcat-core/labels/component:network","name":"component:network","color":"fbca04","default":false},{"id":551182344,"url":"https://api.github.com/repos/xcat2/xcat-core/labels/sprint1","name":"sprint1","color":"bfd4f2","default":false},{"id":243855799,"url":"https://api.github.com/repos/xcat2/xcat-core/labels/type:support","name":"type:support","color":"c7def8","default":false}],"state":"closed","locked":false,"assignee":{"login":"bybai","id":6743951,"avatar_url":"https://avatars1.githubusercontent.com/u/6743951?v=3","gravatar_id":"","url":"https://api.github.com/users/bybai","html_url":"https://github.com/bybai","followers_url":"https://api.github.com/users/bybai/followers","following_url":"https://api.github.com/users/bybai/following{/other_user}","gists_url":"https://api.github.com/users/bybai/gists{/gist_id}","starred_url":"https://api.github.com/users/bybai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bybai/subscriptions","organizations_url":"https://api.github.com/users/bybai/orgs","repos_url":"https://api.github.com/users/bybai/repos","events_url":"https://api.github.com/users/bybai/events{/privacy}","received_events_url":"https://api.github.com/users/bybai/received_events","type":"User","site_admin":false},"assignees":[{"login":"bybai","id":6743951,"avatar_url":"https://avatars1.githubusercontent.com/u/6743951?v=3","gravatar_id":"","url":"https://api.github.com/users/bybai","html_url":"https://github.com/bybai","followers_url":"https://api.github.com/users/bybai/followers","following_url":"https://api.github.com/users/bybai/following{/other_user}","gists_url":"https://api.github.com/users/bybai/gists{/gist_id}","starred_url":"https://api.github.com/users/bybai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bybai/subscriptions","organizations_url":"https://api.github.com/users/bybai/orgs","repos_url":"https://api.github.com/users/bybai/repos","events_url":"https://api.github.com/users/bybai/events{/privacy}","received_events_url":"https://api.github.com/users/bybai/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/xcat2/xcat-core/milestones/28","html_url":"https://github.com/xcat2/xcat-core/milestone/28","labels_url":"https://api.github.com/repos/xcat2/xcat-core/milestones/28/labels","id":2381923,"number":28,"title":"2.13.5","description":"","creator":{"login":"whowutwut","id":10049070,"avatar_url":"https://avatars3.githubusercontent.com/u/10049070?v=3","gravatar_id":"","url":"https://api.github.com/users/whowutwut","html_url":"https://github.com/whowutwut","followers_url":"https://api.github.com/users/whowutwut/followers","following_url":"https://api.github.com/users/whowutwut/following{/other_user}","gists_url":"https://api.github.com/users/whowutwut/gists{/gist_id}","starred_url":"https://api.github.com/users/whowutwut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whowutwut/subscriptions","organizations_url":"https://api.github.com/users/whowutwut/orgs","repos_url":"https://api.github.com/users/whowutwut/repos","events_url":"https://api.github.com/users/whowutwut/events{/privacy}","received_events_url":"https://api.github.com/users/whowutwut/received_events","type":"User","site_admin":false},"open_issues":93,"closed_issues":80,"state":"open","created_at":"2017-03-13T13:27:14Z","updated_at":"2017-06-05T06:12:16Z","due_on":"2017-06-30T07:00:00Z","closed_at":null},"comments":13,"created_at":"2017-05-03T08:23:16Z","updated_at":"2017-06-05T06:12:16Z","closed_at":"2017-06-05T06:12:16Z","body":"**Problem description:**\r\nI've recently upgraded our xCAT installation from 2.9.1 to 2.13.2. After the upgrade, I am facing an issue with ddns updates of aliased hostnames and nic-interface based hostname aliases.\r\n\r\nMy relevant site configuration is as below:\r\n```\r\n[V2 samveen@xcatmn1 ~]$ ip -4 -o a |awk '{print $2,$4}'\r\nlo 127.0.0.1/8\r\nens1f0 10.0.16.12/24\r\neno1 10.2.16.10/20\r\n[V2 samveen@xcatmn1 ~]$  lsdef -t site clustersite |egrep -i 'name|dns'\r\nObject name: clustersite\r\n    dnshandler=ddns\r\n    externaldns=1\r\n    nameservers=10.2.16.10\r\n```\r\n\r\nNetwork configuration:\r\n```\r\n[V2 samveen@xcatmn1 ~]$ lsdef -t network APPS,SRVC \r\nObject name: SRVC\r\n    dynamicrange=10.2.28.2-10.2.31.253\r\n    mask=255.255.240.0\r\n    mgtifname=eno1\r\n    net=10.2.16.0\r\n    tftpserver=10.2.16.10\r\nObject name: APPS\r\n    dhcpserver=10.0.16.12\r\n    logservers=10.0.16.12\r\n    mask=255.255.248.0\r\n    mgtifname=!remote!ens1f0\r\n    nameservers=10.2.16.11,10.2.16.10\r\n    net=10.4.8.0\r\n    ntpservers=ntp1.infra\r\n    vlanid=101\r\n```\r\nNode configuration:\r\n```\r\n[V2 samveen@xcatmn1 ~]$ lsdef staticorigin2 -i nicips,ip,mac,nichostnamesuffixes\r\nObject name: staticorigin2\r\n    ip=10.2.17.49\r\n    mac=1c:98:ec:1d:32:d0!staticorigin2-priv|14:02:ec:77:c9:d0!staticorigin2-pub\r\n    nichostnamesuffixes.eno49=-pub\r\n    nichostnamesuffixes.eno1=-priv\r\n    nicips.eno1=10.2.17.49\r\n    nicips.eno49=10.4.8.48\r\n```\r\nPost update `makedns` output:\r\n```\r\n[V2 samveen@xcatmn1 ~]$ makedns staticorigin2\r\nHandling staticorigin2-pub in /etc/hosts.\r\nIgnoring host staticorigin2-pub, it does not belong to any nets defined in networks table or the net it belongs to is configured to use an external nameserver.\r\nHandling staticorigin2 in /etc/hosts.\r\nGetting reverse zones, this may take several minutes for a large cluster.\r\nCompleted getting reverse zones.\r\nUpdating DNS records, this may take several minutes for a large cluster.\r\nCompleted updating DNS records.\r\n```\r\n\r\nRunning `nslookup` on the expected dns entries for the host:\r\n```\r\n[V2 samveen@xcatmn1 ~]$ nslookup staticorigin2\r\nServer:         10.2.16.10\r\nAddress:        10.2.16.10#53\r\n\r\nName:   staticorigin2.vndc\r\nAddress: 10.2.17.49\r\n\r\n[V2 samveen@xcatmn1 ~]$ nslookup staticorigin2-pub\r\nServer:         10.2.16.10\r\nAddress:        10.2.16.10#53\r\n\r\n** server can't find staticorigin2-priv: NXDOMAIN\r\n\r\n[V2 samveen@xcatmn1 ~]$ nslookup staticorigin2-priv\r\nServer:         10.2.16.10\r\nAddress:        10.2.16.10#53\r\n\r\n** server can't find staticorigin2-priv: NXDOMAIN\r\n\r\n```\r\n\r\nExpected output (This is ddns records created by `makeds` for `xCAT-2.9.1` for another server `staticorigin1`):\r\n```\r\n[V2 samveen@xcatmn1 ~]$ nslookup staticorigin1\r\nServer:         10.2.16.10\r\nAddress:        10.2.16.10#53\r\n\r\nName:   staticorigin1.vndc\r\nAddress: 10.2.16.77\r\n\r\n[V2 samveen@xcatmn1 ~]$ nslookup staticorigin1-pub\r\nServer:         10.2.16.10\r\nAddress:        10.2.16.10#53\r\n\r\nName:   staticorigin1-pub.vndc\r\nAddress: 10.4.8.49\r\n\r\n[V2 samveen@xcatmn1 ~]$ nslookup staticorigin1-priv\r\nServer:         10.2.16.10\r\nAddress:        10.2.16.10#53\r\n\r\nstaticorigin1-priv.vndc canonical name = staticorigin1.vndc.\r\nName:   staticorigin1.vndc\r\nAddress: 10.2.16.77\r\n\r\n```\r\n\r\nHow do I get the expected output in xCAT 2.13.2?\r\nMy challenges are the following:\r\n- xCAT 2.13.2 isn't creating aliased names for the nodename and primary IP (`-priv` alias)\r\n- DNS information for DHCP records in the `network` objects is now being used as the ddns update point: I can either remove it and have bad DNS entries in node `resolv.conf`, **_or_** keep it in place and not get the interface alias records added to ddns."}}
{"actor":{"display_login":"bybai"}}