The IP didn't change. Instead 2 IPs were assigned to the interface on the
node. However, in the DNS, the hostname was now associated with the 2nd IP
provided to the node, while the updateflag.awk requests go via the 1st IP.
Thus xcat ignores the flag updates.
On Wed, Jul 1, 2015 at 9:52 AM, Xiao Peng Wang <[email protected]> wrote:
> I don't see problem to adopt your fix. But what caused the IP change of
> your installnic?
>
> 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
>
> [image: Inactive hide details for Samveen ListReceipient ---2015/06/29
> 19:25:22---Hi, My diskful install process gets stuck in the post]Samveen
> ListReceipient ---2015/06/29 19:25:22---Hi, My diskful install process gets
> stuck in the post-install process on the
>
> From: Samveen ListReceipient <[email protected]>
> To: xCAT <[email protected]>
> Date: 2015/06/29 19:25
> Subject: [xcat-user] Multiple IPs during postinstall in kickstart causing
> DDNS issues
> ------------------------------
>
>
>
> Hi,
>
> My diskful install process gets stuck in the post-install process on the
> `updateflag.awk` script. I understand that this happens when the IP of the
> node doesn't resolve to a name.
>
> However, what bothers me is that this is caused by the assignment of 2 IPs
> to the `ksdevice`.
>
> The DHCP server deletes the ddns entry for the first IP lease, and assigns
> the details of the 2nd lease in the DNS server. However, the updateflag.awk
> script is communicating via the primary IP (it cannot select the secondary
> IP as the local interface to use).
>
> xCAT Server log entries of the process:
> Jun 29 07:38:43 xcatmn01 dhcpd: DHCPDISCOVER from 00:25:90:14:f8:18 via
> 10.2.72.1
> Jun 29 07:38:43 xcatmn01 dhcpd: DHCPOFFER on 10.2.72.9 to
> 00:25:90:14:f8:18 via 10.2.72.1
> Jun 29 07:38:43 xcatmn01 dhcpd: DHCPREQUEST for 10.2.72.9 (10.2.80.2) from
> 00:25:90:14:f8:18 via 10.2.72.1
> Jun 29 07:38:43 xcatmn01 dhcpd: DHCPACK on 10.2.72.9 to 00:25:90:14:f8:18
> via 10.2.72.1
> Jun 29 07:44:28 xcatmn01 dhcpd: DHCPDISCOVER from 00:25:90:14:f8:18 via
> 10.2.72.1
> Jun 29 07:44:28 xcatmn01 dhcpd: ICMP Echo reply while lease 10.2.72.9
> valid.
> Jun 29 07:44:28 xcatmn01 named[32259]: client 10.2.80.2#40866: signer
> "xcat_key" approved
> Jun 29 07:44:28 xcatmn01 named[32259]: client 10.2.80.2#40866: updating
> zone '*poc.lzd.co/IN* <http://poc.lzd.co/IN>': deleting an RR at
> *xcatsn01.poc.lzd.co* <http://xcatsn01.poc.lzd.co/> A
> Jun 29 07:44:28 xcatmn01 dhcpd: if *xcatsn01.poc.lzd.co*
> <http://xcatsn01.poc.lzd.co/> IN TXT "00f5c60bb5f8359302de635845435af5aa"
> rrset exists and *xcatsn01.poc.lzd.co* <http://xcatsn01.poc.lzd.co/> IN A
> 10.2.72.9 rrset exists delete *xcatsn01.poc.lzd.co*
> <http://xcatsn01.poc.lzd.co/> IN A *10.2.72.9* <http://10.2.72.9/>:
> success.
> Jun 29 07:44:28 xcatmn01 named[32259]: client 10.2.80.2#49121: signer
> "xcat_key" approved
> Jun 29 07:44:28 xcatmn01 named[32259]: client 10.2.80.2#49121: updating
> zone '*poc.lzd.co/IN* <http://poc.lzd.co/IN>': deleting an RR at
> *xcatsn01.poc.lzd.co* <http://xcatsn01.poc.lzd.co/> TXT
> Jun 29 07:44:28 xcatmn01 dhcpd: if *xcatsn01.poc.lzd.co*
> <http://xcatsn01.poc.lzd.co/> IN A rrset doesn't exist and
> *xcatsn01.poc.lzd.co* <http://xcatsn01.poc.lzd.co/> IN AAAA rrset doesn't
> exist delete *xcatsn01.poc.lzd.co* <http://xcatsn01.poc.lzd.co/> IN TXT
> "00f5c60bb5f8359302de635845435af5aa": success.
> Jun 29 07:44:28 xcatmn01 named[32259]: client 10.2.80.2#38415: signer
> "xcat_key" approved
> Jun 29 07:44:28 xcatmn01 named[32259]: client 10.2.80.2#38415: updating
> zone '72.2.10.IN-ADDR.ARPA/IN': deleting rrset at '9.72.2.10.IN-ADDR.ARPA'
> PTR
> Jun 29 07:44:28 xcatmn01 dhcpd: removed reverse map on
> 9.72.2.10.in-addr.arpa.
> Jun 29 07:44:28 xcatmn01 dhcpd: Abandoning IP address *10.2.72.9*
> <http://10.2.72.9/>: pinged before offer
> Jun 29 07:44:36 xcatmn01 dhcpd: DHCPDISCOVER from 00:25:90:14:f8:18 via
> 10.2.72.1
> Jun 29 07:44:37 xcatmn01 dhcpd: DHCPOFFER on 10.2.72.10 to
> 00:25:90:14:f8:18 via 10.2.72.1
> Jun 29 07:44:37 xcatmn01 named[32259]: client 10.2.80.2#58725: signer
> "xcat_key" approved
> Jun 29 07:44:37 xcatmn01 named[32259]: client 10.2.80.2#58725: updating
> zone '*poc.lzd.co/IN* <http://poc.lzd.co/IN>': adding an RR at '
> *xcatsn01.poc.lzd.co* <http://xcatsn01.poc.lzd.co/>' A
> Jun 29 07:44:37 xcatmn01 named[32259]: client 10.2.80.2#58725: updating
> zone '*poc.lzd.co/IN* <http://poc.lzd.co/IN>': adding an RR at '
> *xcatsn01.poc.lzd.co* <http://xcatsn01.poc.lzd.co/>' TXT
> Jun 29 07:44:37 xcatmn01 dhcpd: Added new forward map from
> *xcatsn01.poc.lzd.co* <http://xcatsn01.poc.lzd.co/> to 10.2.72.10
> Jun 29 07:44:37 xcatmn01 named[32259]: client 10.2.80.2#58276: signer
> "xcat_key" approved
> Jun 29 07:44:37 xcatmn01 named[32259]: client 10.2.80.2#58276: updating
> zone '72.2.10.IN-ADDR.ARPA/IN': deleting rrset at '10.72.2.10.IN-ADDR.ARPA'
> PTR
> Jun 29 07:44:37 xcatmn01 named[32259]: client 10.2.80.2#58276: updating
> zone '72.2.10.IN-ADDR.ARPA/IN': adding an RR at '10.72.2.10.IN-ADDR.ARPA'
> PTR
> Jun 29 07:44:37 xcatmn01 dhcpd: added reverse map from
> 10.72.2.10.in-addr.arpa. to *xcatsn01.poc.lzd.co*
> <http://xcatsn01.poc.lzd.co/>
> Jun 29 07:44:37 xcatmn01 dhcpd: DHCPREQUEST for 10.2.72.10 (10.2.80.2)
> from 00:25:90:14:f8:18 via 10.2.72.1
> Jun 29 07:44:37 xcatmn01 dhcpd: DHCPACK on 10.2.72.10 to 00:25:90:14:f8:18
> via 10.2.72.1
>
>
> When I check in the console on the node (the 2nd console, Ctrl-Alt-F2), I
> see 2 addresses assigned to the `ksdevice` (Both the IPs assigned to MAC
> 00:25:90:14:f8:18 : 10.2.72.9 and 10.2.72.10).
>
> This is done in the %post section of the kickstart file:
> [root@xcatmn01 tmp]# grep 'dhclient ' /install/autoinst/xcatsn01
> dhclient eth0
>
>
> The primary nic is `eth1`, and the template (
> xCAT-server/share/xcat/install/scripts/post.rh.common) has these line:
>
> [samveen@development xcat-core]$ git blame
> xCAT-server/share/xcat/install/scripts/post.rh.common |tail -n +38 |head
> -n 7
> 53374908 (immarvin 2014-05-30 03:12:08 -0700 38) IP=$(ip addr show dev
> $PRINIC | grep inet | grep -v inet6 | awk '{print $2}' | head -n 1 | awk
> -F '/' '{print $1}')
> 8168b22e (ligc 2012-03-23 08:26:38 +0000 39) if [ -z $IP ]
> 8168b22e (ligc 2012-03-23 08:26:38 +0000 40) then
> 8168b22e (ligc 2012-03-23 08:26:38 +0000 41) dhclient eth0
> 53374908 (immarvin 2014-05-30 03:12:08 -0700 42) #IP=$(ifconfig $PRINIC |
> grep inet | awk '{print $2}' | awk -F: '{print $2}')
> 53374908 (immarvin 2014-05-30 03:12:08 -0700 43) IP=$(ip addr show
> dev $PRINIC | grep inet | grep -v inet6 | awk '{print $2}' | head -n 1 |
> awk -F '/' '{print $1}')
> 8168b22e (ligc 2012-03-23 08:26:38 +0000 44) fi
>
>
> Given that this script sets the variable `PRINIC`, Line 4 should be as
> follows(as can be seen from line 43):
> --- a/xCAT-server/share/xcat/install/scripts/post.rh.common
> +++ b/xCAT-server/share/xcat/install/scripts/post.rh.common
> @@ -38,7 +38,7 @@ fi
> IP=$(ip addr show dev $PRINIC | grep inet | grep -v inet6 | awk '{print
> $2}' | head -n 1 | awk -F '/' '{print $1}')
> if [ -z $IP ]
> then
> - dhclient eth0
> + dhclient $PRINIC
> #IP=$(ifconfig $PRINIC | grep inet | awk '{print $2}' | awk -F:
> '{print $2}')
> IP=$(ip addr show dev $PRINIC | grep inet | grep -v inet6 | awk
> '{print $2}' | head -n 1 | awk -F '/' '{print $1}')
> fi
>
>
> This fixes my problems.
>
> Regards,
> --
> 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 ..)
> ------------------------------------------------------------------------------
> Monitor 25 network devices or servers for free with OpManager!
> OpManager is web-based network management software that monitors
> network devices and physical & virtual servers, alerts via email & sms
> for fault. Monitor 25 devices for free with no restriction. Download now
> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
> _______________________________________________
> xCAT-user mailing list
> [email protected]
> 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
> [email protected]
> 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 ..)
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user