I tested the updated anaconda.pm and it resolves the "bootnic" issue - thank you yangsong.
Unfortunately, I find myself in the same situation as before, namely the postbootscripts do not run after a reboot. The issue here is that during Anaconda run, it creates ifcfg-eth1 through ifcfg-eth4. The boot options specified on kcmdline (IP address, DNS, netmask) get baked into ifcfg-eth1. However, when the node reboots, the devices are enumerated starting with zero, ifcfg-eth0 through ifcfg-eth3. The result of this is that "eth1" doesn't start because there is no physical connection. The correct interface should be eth0. This could be a problem with Anaconda. So I have to run a custom bootscript in either case: 1) I fix “ifcfg-bootnic” and change the DEVICE line; or 2) I fix “ifcfg-eth1” and change the DEVICE line. I’m not sure why this is such a pain, other than the insistence on “old” interface names. I will look into living with the new “better” names. For reference, this is xCAT Version 2.12.2 (git commit e4a7359d31008d81c4c57e0857d5f09009a3269c, built Thu Aug 18 06:43:29 EDT 2016) site.managedaddressmode=static noderes.installnic=mac noderes.primarynic=mac in the osimage definition: addkcmdline=net.ifnames=0,biosdevname=0 Using "mac" seemed like the clean way to handle interface names in RHEL6. I tired setting the installnic to eth0 and it didn’t work. It looks like Anaconda really wants to start enumerating the interfaces with 1. FYI, I experimented with setting “ifname=eth0:<mac>” and it did not work. That explains why “bootnic” logic was added at some point. If we add ifname=eth0:<mac> to the kcmdline, Anaconda will complain: “Warning: ifname=eth0 uses the kernal namespace for interfaces. This can fail for multiple network interfaces and is discouraged! Please use a custom name like "netboot" or "bluesocket" or use biosdevname and no ifname= at all.” From: Song BJ Yang [mailto:yang...@cn.ibm.com] Sent: Wednesday, September 14, 2016 10:30 AM To: Xiao Peng Wang <w...@cn.ibm.com>; russa...@comcast.net; hille...@rhrk.uni-kl.de Cc: xcat-user@lists.sourceforge.net Subject: Re: Fw: Re: [xcat-user] SL7.2 and ifcfg-bootnic hi, This seems to be a bug, I will fix it soon. Please trace it in this ticket https://github.com/xcat2/xcat-core/issues/1837 thanks ------------------------------------------------------------------------------ YANG Song (杨嵩) IBM China System Technology Laboratory Tel: 86-10-82452903 Email: yang...@cn.ibm.com <mailto:yang...@cn.ibm.com> Address: Building 28, ZhongGuanCun Software Park, No.8, Dong Bei Wang West Road, Haidian District Beijing 100193, PRC 北京市海淀区东北旺西路8号中关村软件园28号楼 邮编: 100193 ----- Original message ----- From: Xiao Peng Wang/China/IBM To: Song BJ Yang/China/IBM@IBMCN Cc: Subject: Fw: Re: [xcat-user] SL7.2 and ifcfg-bootnic Date: Mon, Sep 12, 2016 2:05 PM Hi Yang Song, Could you take a look why we want to use the nic name to be 'bootnic' in the managedaddressmode mode? Refer to the code in anaconda.pm 1512 if ($::XCATSITEVALS{managedaddressmode} =~ /static/) { 1513 my ($ipaddr, $hostname, $gateway, $netmask) = xCAT::NetworkUtils->getNodeNetworkCfg($node); 1514 unless ($ipaddr) { Thanks Best Regards ---------------------------------------------------------------------- Wang Xiaopeng (王晓朋) IBM China System Technology Laboratory Tel: 86-10-82453455 Email: w...@cn.ibm.com <mailto:w...@cn.ibm.com> Address: 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road, Haidian District Beijing P.R.China 100193 ----- Original message ----- From: "Russell Auld" <russa...@comcast.net <mailto:russa...@comcast.net> > To: "'xCAT Users Mailing list'" <xcat-user@lists.sourceforge.net <mailto:xcat-user@lists.sourceforge.net> > Cc: Subject: Re: [xcat-user] SL7.2 and ifcfg-bootnic Date: Sat, Sep 10, 2016 7:51 PM Markus, Did you ever resolve this issue? I encountered the same problem using RHEL7.2 and I also have "managedaddressmode" set to static. Recapping, after installation, there exists an "ifcfg-bootnic" file with the IP address, DNS settings, netmask, etc configured inside of it. The problem is that the device specification in the file is also specified as "bootnic". Of course, there is no such device on the system, which means that after the first reboot, there is no network connection and the postbootscripts do not run. -----Original Message----- From: Russell Auld [mailto:russa...@comcast.net] Sent: Friday, May 20, 2016 9:04 AM To: 'xCAT Users Mailing list' <xcat-user@lists.sourceforge.net <mailto:xcat-user@lists.sourceforge.net> > Subject: Re: [xcat-user] SL7.2 and ifcfg-bootnic You could remove/unset "managedaddressmode" and use a postscript to change the nic config from dhcp to static. We used to use a combination of "confignics" and "hardeths". You would need to be running dhcpd on the master node for that to work. -----Original Message----- From: Dr. Markus Hillenbrand [mailto:hille...@rhrk.uni-kl.de] Sent: Friday, May 20, 2016 1:32 AM To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net <mailto:xcat-user@lists.sourceforge.net> > Subject: Re: [xcat-user] SL7.2 and ifcfg-bootnic Hi, managedaddressmode is set to static because the default value is dhcp which we do not want to use. Markus On 04.05.2016 02:53, Xiao Peng Wang wrote: > Did you use the 'managedaddressmode' attribute in site table? If yes, > you may not need to use it. Try to run without set this attribute. > > Thanks > Best Regards > ---------------------------------------------------------------------- > Wang Xiaopeng (王晓朋) > IBM China System Technology Laboratory > Tel: 86-10-82453455 > Email: w...@cn.ibm.com <mailto:w...@cn.ibm.com> > Address: 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road, > Haidian District Beijing P.R.China 100193 > > > > ----- Original message ----- > From: "Dr. Markus Hillenbrand" <hille...@rhrk.uni-kl.de > <mailto:hille...@rhrk.uni-kl.de> > > To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net > <mailto:xcat-user@lists.sourceforge.net> > > Cc: > Subject: Re: [xcat-user] SL7.2 and ifcfg-bootnic > Date: Tue, May 3, 2016 3:57 PM > > Yes, I did. > Can I somehow disable naming the file and device "bootnic"? > > > Markus > > > > On 03.05.2016 04:19, Xiao Peng Wang wrote: > > Not sure why SL7.2 has this strange behaviour since we did not see this > > in rh7.2 > > > > Did you copied the correct template and pkglist file from rh to SL? > > > > Thanks > > Best Regards > > ---------------------------------------------------------------------- > > Wang Xiaopeng (王晓朋) > > IBM China System Technology Laboratory > > Tel: 86-10-82453455 > > Email: w...@cn.ibm.com <mailto:w...@cn.ibm.com> > > Address: 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road, > > Haidian District Beijing P.R.China 100193 > > > > > > > > ----- Original message ----- > > From: "Dr. Markus Hillenbrand" <hille...@rhrk.uni-kl.de > <mailto:hille...@rhrk.uni-kl.de> > > > To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net > <mailto:xcat-user@lists.sourceforge.net> > > > Cc: > > Subject: Re: [xcat-user] SL7.2 and ifcfg-bootnic > > Date: Mon, May 2, 2016 2:53 PM > > > > Here you are: > > > > > > root@node802 [~] cat /etc/sysconfig/network-scripts/ifcfg-bootnic > > # Generated by parse-kickstart > > UUID=c8ec5532-bb3b-4ee9-b307-24f925e282fc > > DNS2=131.246.1.116 > > DNS1=131.246.9.116 > > BOOTPROTO=none > > DEVICE=bootnic > > ONBOOT=yes > > IPV6INIT=yes > > TYPE=Ethernet > > IPADDR=10.255.8.102 > > PREFIX=16 > > GATEWAY=10.255.3.234 > > DEFROUTE=yes > > IPV4_FAILURE_FATAL=no > > IPV6_AUTOCONF=yes > > IPV6_DEFROUTE=yes > > IPV6_PEERDNS=yes > > IPV6_PEERROUTES=yes > > IPV6_FAILURE_FATAL=no > > NAME="System bootnic" > > > > root@node802 [~] ifup bootnic > > ERROR : [/etc/sysconfig/network-scripts/ifup-eth] Device bootnic > does > > not seem to be present, delaying initialization. > > > > When I set DEVICE=eth0 in the file, it works. > > > > Additional info: I have set > "addkcmdline=net.ifnames=0,biosdevname=0" > > because we have software that relies on traditional interface names. > > > > > > Markus > > > > On 28.04.2016 08:48, Xiao Peng Wang wrote: > > > I have not SL7.2 server, but the cfg file ifcfg-bootnic might > also be a > > > valid name. Could you cat this file? > > > > > > On the compute node, what's the output of 'ifup ifcfg-bootnic'? > > > > > > Thanks > > > Best Regards > > > > ---------------------------------------------------------------------- > > > Wang Xiaopeng (王晓朋) > > > IBM China System Technology Laboratory > > > Tel: 86-10-82453455 > > > Email: w...@cn.ibm.com <mailto:w...@cn.ibm.com> > > > Address: 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West > Road, > > > Haidian District Beijing P.R.China 100193 > > > > > > > > > > > > ----- Original message ----- > > > From: "Dr. Markus Hillenbrand" <hille...@rhrk.uni-kl.de > <mailto:hille...@rhrk.uni-kl.de> > > > > To: "xcat-user@lists.sourceforge.net > <mailto:xcat-user@lists.sourceforge.net> " <xcat-user@lists.sourceforge.net > <mailto:xcat-user@lists.sourceforge.net> > > > > Cc: > > > Subject: [xcat-user] SL7.2 and ifcfg-bootnic > > > Date: Wed, Apr 27, 2016 3:48 PM > > > > > > Hi, > > > > > > when deploying a compute node with SL7.2, xCAT generates > > > /etc/sysconfig/network-scripts/ifcfg-bootnic instead of > > > /etc/sysconfig/network-scripts/ifcfg-eth0. After the first > reboot of the > > > machine, the network is not working because it looks for a > device named > > > "bootnic" that does not exists. How can I tell xCAT to create > > > /etc/sysconfig/network-scripts/ifcfg-eth0 instead? > > > > > > I have set the kernel parameters "net.ifnames=0 > biosdevname=0" because > > > we need the old style network device names. > > > > > > > > > Markus > > > > > > > > > > ------------------------------------------------------------------------------ > > > Find and fix application performance issues faster with > Applications > > > Manager > > > Applications Manager provides deep performance insights into > > > multiple tiers of > > > your business applications. It resolves application problems > quickly and > > > reduces your MTTR. Get your free trial! > > > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > > > _______________________________________________ > > > xCAT-user mailing list > > > xCAT-user@lists.sourceforge.net > <mailto:xCAT-user@lists.sourceforge.net> > > > https://lists.sourceforge.net/lists/listinfo/xcat-user > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Find and fix application performance issues faster with > Applications Manager > > > Applications Manager provides deep performance insights into > multiple tiers of > > > your business applications. It resolves application problems > quickly and > > > reduces your MTTR. Get your free trial! > > > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > > > > > > > > > > > > _______________________________________________ > > > xCAT-user mailing list > > > xCAT-user@lists.sourceforge.net > <mailto:xCAT-user@lists.sourceforge.net> > > > https://lists.sourceforge.net/lists/listinfo/xcat-user > > > > > > > -- > > > > > > > ------------------------------------------------------------------------ > > Dr.-Ing. Markus Hillenbrand E-Mail: > hille...@rhrk.uni-kl.de <mailto:hille...@rhrk.uni-kl.de> > > Technische Universität Kaiserslautern Telefon: 0631/205-4173 > > Regionales Hochschulrechenzentrum Telefax: 0631/205-3056 > > Postfach 3049 > > 67653 Kaiserslautern http://www.rhrk.uni-kl.de > > > ------------------------------------------------------------------------ > > > > > > > ------------------------------------------------------------------------------ > > Find and fix application performance issues faster with Applications > > Manager > > Applications Manager provides deep performance insights into > > multiple tiers of > > your business applications. It resolves application problems > quickly and > > reduces your MTTR. Get your free trial! > > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > > _______________________________________________ > > xCAT-user mailing list > > xCAT-user@lists.sourceforge.net > <mailto:xCAT-user@lists.sourceforge.net> > > https://lists.sourceforge.net/lists/listinfo/xcat-user > > > > > > > > > > > ------------------------------------------------------------------------------ > > Find and fix application performance issues faster with Applications > Manager > > Applications Manager provides deep performance insights into multiple > tiers of > > your business applications. It resolves application problems quickly and > > reduces your MTTR. Get your free trial! > > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > > > > > > > > _______________________________________________ > > xCAT-user mailing list > > xCAT-user@lists.sourceforge.net > <mailto:xCAT-user@lists.sourceforge.net> > > https://lists.sourceforge.net/lists/listinfo/xcat-user > > > > -- > > > ------------------------------------------------------------------------ > Dr.-Ing. Markus Hillenbrand E-Mail: hille...@rhrk.uni-kl.de > <mailto:hille...@rhrk.uni-kl.de> > Technische Universität Kaiserslautern Telefon: 0631/205-4173 > Regionales Hochschulrechenzentrum Telefax: 0631/205-3056 > Postfach 3049 > 67653 Kaiserslautern http://www.rhrk.uni-kl.de > ------------------------------------------------------------------------ > > > > ------------------------------------------------------------------------------ > Find and fix application performance issues faster with Applications > Manager > Applications Manager provides deep performance insights into > multiple tiers of > your business applications. It resolves application problems quickly and > reduces your MTTR. Get your free trial! > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > _______________________________________________ > xCAT-user mailing list > xCAT-user@lists.sourceforge.net <mailto:xCAT-user@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/xcat-user > > > > > ------------------------------------------------------------------------------ > Find and fix application performance issues faster with Applications Manager > Applications Manager provides deep performance insights into multiple tiers of > your business applications. It resolves application problems quickly and > reduces your MTTR. Get your free trial! > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > > > > _______________________________________________ > xCAT-user mailing list > xCAT-user@lists.sourceforge.net <mailto:xCAT-user@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/xcat-user > -- ------------------------------------------------------------------------ Dr.-Ing. Markus Hillenbrand E-Mail: hille...@rhrk.uni-kl.de <mailto:hille...@rhrk.uni-kl.de> Technische Universität Kaiserslautern Telefon: 0631/205-4173 Regionales Hochschulrechenzentrum Telefax: 0631/205-3056 Postfach 3049 67653 Kaiserslautern http://www.rhrk.uni-kl.de ------------------------------------------------------------------------ ------------------------------------------------------------------------------ Mobile security can be enabling, not merely restricting. Employees who bring their own devices (BYOD) to work are irked by the imposition of MDM restrictions. Mobile Device Manager Plus allows you to control only the apps on BYO-devices by containerizing them, leaving personal data untouched! https://ad.doubleclick.net/ddm/clk/304595813;131938128;j _______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net <mailto:xCAT-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/xcat-user ------------------------------------------------------------------------------ _______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net <mailto:xCAT-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/xcat-user
------------------------------------------------------------------------------
_______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user