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.  
 
 
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

 
 

_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to