I am having some issues with confignics not setting my install nic to a
static address. I believe there are bugs with the script. It is failing
with the following error: 

analytics-n2: xcatdsklspost: downloaded postscripts successfully
analytics-n2: Fri Jun 24 14:50:50 CDT 2016 Running postscript:
confignics
analytics-n2: confignics on analytics-n2: config install nic:1, remove:
0, iba ports: 
analytics-n2: ib0!172.40.21.2
analytics-n2: eno1!172.21.4.2
analytics-n2: confignics on analytics-n2: call 'configeth -s eno1
analytics-n2: configeth on analytics-n2: os type: redhat
analytics-n2: grep: 172.21.4.0: No such file or directory
analytics-n2: configeth on analytics-n2: config install nic, can not
find information from dhcp lease file, return.
analytics-n2: confignics on analytics-n2: call 'configeth -s eno1
analytics-n2: configeth on analytics-n2: os type: redhat
analytics-n2: grep: 172.21.4.0: No such file or directory
analytics-n2: configeth on analytics-n2: config install nic, can not
find information from dhcp lease file, return.
analytics-n2: confignics on analytics-n2: executed script: configib for
nics: ib0, ports: 
analytics-n2: Postscript: confignics exited with code 0 

One thing I noticed is the following line is looking for a file with the
word "leases", when it's "lease" on centos 7: 

str_lease_file=`ls /var/lib/dhclient/*$str_inst_nic* | grep leases` 

Changing that one line yielded an almost-working static configuration.
It got all the right IP information in there, but I ended up with 3 mac
addresses in the HWADDR line. 

Here's my lsdef and IP information of the node: 

Object name: analytics-n2
 addkcmdline=nomodeset
 arch=x86_64
 currchain=boot
 currstate=boot
 groups=all,centos-analytics-df
 initrd=xcat/osimage/centos-analytics-df/initrd.img
 kcmdline=quiet inst.repo=http://172.21.0.1:80/install/centos7.2/x86_64/
inst.ks=http://172.21.0.1:80/install/autoinst/analytics-n2 ip=dhcp 
 kernel=xcat/osimage/centos-analytics-df/vmlinuz
 mac=00:21:5e:e8:8e:e0
 mgt=ipmi
 netboot=xnba
 nicips.ib0=172.40.21.2
 nicips.eno1=172.21.4.2
 nicnetworks.ib0=172_40_0_0_Infiniband
 nicnetworks.eno1=172_21_4_0_ANALYTICS
 nictypes.ib0=Infiniband
 nictypes.eno1=Ethernet
 os=centos7.2
 postscripts=remoteshell
 profile=centos-analytics-df
 provmethod=centos-analytics-df
 status=booted
 statustime=06-24-2016 12:15:54
 updatestatus=synced
 updatestatustime=06-24-2016 14:51:06
 xcatmaster=172.21.0.1
 zonename=analytics 

[root@analytics-n2 dhclient]# ifconfig
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
 inet 172.21.4.2 netmask 255.255.255.0 broadcast 172.21.4.255
 inet6 fe80::221:5eff:fee8:8ee0 prefixlen 64 scopeid 0x20<link>
 ether 00:21:5e:e8:8e:e0 txqueuelen 1000 (Ethernet)
 RX packets 16882 bytes 8704695 (8.3 MiB)
 RX errors 0 dropped 272 overruns 0 frame 0
 TX packets 7404 bytes 1325543 (1.2 MiB)
 TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
 device memory 0x93260000-9327ffff 

eno2: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
 ether 00:21:5e:e8:8e:e1 txqueuelen 1000 (Ethernet)
 RX packets 0 bytes 0 (0.0 B)
 RX errors 0 dropped 0 overruns 0 frame 0
 TX packets 0 bytes 0 (0.0 B)
 TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
 device memory 0x93220000-9323ffff 

enp0s29f1u2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
 inet 169.254.95.120 netmask 255.255.255.0 broadcast 169.254.95.255
 inet6 fe80::21:5eff:fee8:8ee4 prefixlen 64 scopeid 0x20<link>
 ether 02:21:5e:e8:8e:e4 txqueuelen 1000 (Ethernet)
 RX packets 3849 bytes 255260 (249.2 KiB)
 RX errors 0 dropped 0 overruns 0 frame 0
 TX packets 1958 bytes 87948 (85.8 KiB)
 TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

ib0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 2044
 inet 172.40.21.2 netmask 255.255.0.0 broadcast 172.40.255.255
 inet6 fe80::202:c903:5:afa1 prefixlen 64 scopeid 0x20<link>
Infiniband hardware address can be incorrect! Please read BUGS section
in ifconfig(8).
 infiniband A0:00:02:20:FE:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00
txqueuelen 1024 (InfiniBand)
 RX packets 22 bytes 1960 (1.9 KiB)
 RX errors 0 dropped 0 overruns 0 frame 0
 TX packets 8 bytes 616 (616.0 B)
 TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
 inet 127.0.0.1 netmask 255.0.0.0
 inet6 ::1 prefixlen 128 scopeid 0x10<host>
 loop txqueuelen 0 (Local Loopback)
 RX packets 24 bytes 1704 (1.6 KiB)
 RX errors 0 dropped 0 overruns 0 frame 0
 TX packets 24 bytes 1704 (1.6 KiB)
 TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 

 
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to