On 5/21/19 2:33 PM, Roosen, Nicolas wrote: > 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). >
A slight precision/modification: I retried the provisioning, and the hostname is correctly set right after the provisioning. But not the slave bonds interfaces. So I manually edit the first bond interface of node1, restart the bond (to get the IP connectivity back), then I can run "updatenode node1 -P confignetwork" from the xcat server, which make the bonding configuration on node1 work. But then after this the hostname is set to localhost. What am I missing here? I have this logs if that helps: 13:25:54,381 INFO xcat.deployment.postscript:State of "bond0" was "" instead of expected "UP". Wait 199 of 200 with interval 1. 13:25:55,385 ERR xcat.deployment.postscript:Interface "bond0" could not be brought "UP". 13:25:55,394 ERR xcat.deployment.postscript:configure bond bond0 failed. [...] 13:25:55,480 INFO xcat.deployment.postscript:create_bond_interface ifname=bond1 slave_ports=enP2p193s0,enP3p65s0 slave_type=ethernet 13:25:55,512 INFO xcat.deployment.postscript:Pickup xcatnet, "130_84_132_0-255_255_255_0", from NICNETWORKS for interface "bond1". 13:26:00,572 ERR xcat.deployment.postscript:Fail to load kernel module "bonding" [...] May 21 18:25:43 node1 xcat.deployment.postscript: INFO postscript end...: confignetwork return with 1 May 21 18:25:43 node1 xcat.deployment: INFO finished firstboot preparation, sending request to 172.31.0.1:3002 for changing status... Thanks. > 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=compute > 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=compute > 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 > -- Nicolas _______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user