Hi Roosen, Nicolas
I am glad that `confignetwork` can work well in your postbootscripts.
Since `confignetwork` has some restrictions under postscripts in 2.14.6, it can work well in postbootscripts. I have enhance it running in postscripts in 2.15 branch, If you want to run it in postscripts, you can download latest `confignetwork` , `configeth` and `nicutils.sh` from 2.15 master branch.
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
--------------------------------------------------
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: "Roosen, Nicolas" <nicolas.roo...@hpe.com>
To: "xcat-user@lists.sourceforge.net" <xcat-user@lists.sourceforge.net>
Cc:
Subject: [EXTERNAL] Re: [xcat-user] confignetwork and localhost hostname
Date: Thu, May 23, 2019 6:46 PM
Hi,
On 5/23/19 12:28 PM, Yuan Y Bai wrote:
> Hi Nicolas
>
> Based on your log, you use `confignics`. `confignics` cannot configure bond.
>
> Could you try to use like the following command to configure bond?
>
> chdef cn1 postbootscripts="otherpkgs,confignetwork -s"
> postscripts="syslog,remoteshell,syncfiles"
>
>
yes you're right, I was mixing the two methods.
It still doesn't work when I use the "confignetwork" in the postscripts.
But postbootscript is fine for me.
So I did some tests recently, and it almost works (see below why) when
provisioning the node using the "postbootscript" method.
Now I have an issue with the Ethernet driver (i40e / i40iw on a Intel
X722 card) which does a core dump, but that's another story :-/
Thanks for you help.
Nicolas
>
> 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: "Roosen, Nicolas" <nicolas.roo...@hpe.com>
> To: "xcat-user@lists.sourceforge.net" <xcat-user@lists.sourceforge.net>
> Cc:
> Subject: [EXTERNAL] Re: [xcat-user] confignetwork and localhost hostname
> Date: Wed, May 22, 2019 3:51 PM
>
> On 5/22/19 8:52 AM, Yuan Y Bai wrote:
> > Hi Roosen,
> >
> > Could you try to use `confignetwork -s` instead of `confignetwork` in
> > your postscripts?
> >
> > You can use this command to change your postscripts: chdef node1
> > postscripts="syslog,remoteshell,syncfiles,confignetwork -s"
> >
> > I think you use install NIC as one of bond slaves. `confignetwork -s`
> > can configure hostname during configure install NIC, after that, it
> > start to create bond.
> >
>
> Thanks for the suggestion. I added the "-s" switch, still the issue is
> the same.
>
> In the logs I see that the "bonding" module fails to load when
> provisioning, maybe I have to add this module somewhere (initramfs ?).
>
> rt..: confignics
> confignics on node1: config install nic:0, remove: 0, iba ports: 1
> ib0!10.148.251.11
> bond0!1.2.3.4
> bond1!6.7.8.9
> confignics on node1: unknown nic type for bond0: 1.2.3.4 .
> confignics on node1: unknown nic type for bond1: 6.7.8.9 .
> confignics on node1: executed script: configib for nics: ib0, ports: 1
> bond0!BONDING_OPTS=mode=2
> bond1!MTU=9000
> ...: confignics return with 1
> [...]
> configure nic and its device : bond0 enp195s0f0@enp195s0f1
> type=ethernet
> ond0".
> [E]:Error: Fail to load kernel module "bonding"
> [I]: >>
> ./nicutils.sh: line 1391: /sys/class/net/bonding_masters: Permission
> denied
> [E]:Error: stage 0: Fail to create bond device "bond0"
>
>
> Thanks.
> Nicolas
>
> >
> > 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: "Roosen, Nicolas" <nicolas.roo...@hpe.com>
> > To: "xcat-user@lists.sourceforge.net"
> <xcat-user@lists.sourceforge.net>
> > Cc:
> > Subject: [EXTERNAL] [xcat-user] confignetwork and localhost
> hostname
> > Date: Tue, May 21, 2019 8:34 PM
> >
> > Hello, on xCAT 2.14.6 w/ RHEL 7.6, I have this weird issue: after
> > provisioning the hostname is not correctly set, it stays to
> "localhost".
> >
> > This happened since I added the "confignetwork" script to the node
> > definition (to setup bonded interfaces).
> >
> > Here are some details:
> >
> > lsdef -t node -o node1
> >
> > Object name: node1
> > arch=x86_64
> > currchain=boot
> > currstate=install rhels7.6-x86_64-compute
> > groups=all
> > installnic=mac
> > ip=1.2.3.4
> > mac=08:00:00:00:00:00
> > mgt=none
> > netboot=xnba
> > nicdevices.bond0=enp195s0f0|enp195s0f1
> > nicdevices.bond1=enP2p193s0|enP3p65s0
> > nicextraparams.bond0=BONDING_OPTS=mode=2
> > nicextraparams.bond1=MTU=9000
> > nicips.bond0=1.2.3.4
> > nicips.bond1=6.7.8.9
> > nicnetworks.bond0=1_1_3_4-255_255_0_0
> > nicnetworks.bond1=6_7_8_9-255_255_255_0
> > nictypes.enP3p65s0=ethernet
> > nictypes.bond0=bond
> > nictypes.bond1=bond
> > nictypes.enp195s0f1=ethernet
> > nictypes.enP2p193s0=ethernet
> > nictypes.enp195s0f0=ethernet
> > os=rhels7.6
> > postbootscripts=otherpkgs
> > postscripts=syslog,remoteshell,syncfiles,confignetwork
> > primarynic=mac
> > profile="">> > provmethod=rhels7.6-x86_64-install-node
> > routenames=defaultroute
> > status=booted
> > statustime=05-20-2019 17:42:15
> > updatestatus=synced
> > updatestatustime=05-20-2019 14:31:18
> >
> >
> > lsdef -t osimage -o rhels7.6-x86_64-install-node
> >
> > Object name: rhels7.6-x86_64-install-node
> > addkcmdline=earlyprintk=ttyS0,115200 console=tty0
> > console=ttyS0,115200
> > imagetype=linux
> > osarch=x86_64
> > osdistroname=rhels7.6-x86_64
> > osname=Linux
> > osvers=rhels7.6
> > otherpkgdir=/install/post/otherpkgs/rhels7.6/x86_64
> >
> >
> otherpkglist=/install/custom/install/rh/sdflex.rhels7.otherpkgs.pkglist
> > partitionfile=/install/custom/install/rh/sdflexparitions
> >
> >
> pkgdir=/install/rhels7.6/x86_64,/install/post/otherpkgs/rhels7.6/x86_64
> > pkglist=/opt/xcat/share/xcat/install/rh/sdflex.rhels7.pkglist
> > profile="">> > provmethod=install
> > template=/install/custom/install/rh/sdflex.rhels7.tmpl
> >
> > --
> > Nicolas
> >
>
> _______________________________________________
> xCAT-user mailing list
> xCAT-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xcat-user
> <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
>
--
Nicolas Roosen
Technical Consultant
+33 970010023 Office
+33 777161256 Mobile
_______________________________________________
xCAT-user mailing list
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