Menu

#4259 [PCM]Run confignics script failed, if multi-nics with eth0:0 as one of interfaces

2.8.5
closed
confignics (18)
postscripts
5
2015-03-18
2014-08-27
fengli
No

Steps:
1.Provission nodes with interface of eth0:0 for additinal nic
2. provisioning failed due to run confignics script failed:


Thu Aug 14 16:31:15 CST 2014 Running postscript: confignics
confignics on compute000: config install nic:0, remove: 0, iba ports:
bmc!9.111.251.139
eth0:0!192.168.1.4
eth0!192.168.1.3
confignics on compute000: unknown nic type for bmc: 9.111.251.139 .
confignics on compute000: call 'configeth eth0:0 192.168.1.4 provision'
configeth on compute000: os type: redhat
configeth on compute000: old configuration: 2: eth0: <broadcast,multicast,up,lower_up> mtu 1500 qdisc mq state UP qlen 1000
link/ether 40:f2:e9:23:fe:2a brd ff:ff:ff:ff:ff:ff
inet 192.168.1.3/24 brd 192.168.1.255 scope global eth0
inet 192.168.1.4/24 brd 192.168.1.255 scope global secondary eth0:0
inet6 fe80::42f2:e9ff:fe23:fe2a/64 scope link
valid_lft forever preferred_lft forever
configeth on compute000: new configuration
192.168.1.4, 192.168.1.0, 255.255.255.0, <xcatmaster>
2: eth0: <broadcast,multicast,up,lower_up> mtu 1500 qdisc mq state UP qlen 1000
eth0:0
configeth on compute000: delete 192.168.1.3_24 for eth0:0 temporary.
configeth on compute000: eth0:0 changed, modify the configuration files
eth0:0
Postscript: confignics exited with code 0
Thu Aug 14 16:31:16 CST 2014 Running postscript: setupcnldaplient
Postscript: setupcnldaplient exited with code 0
awk: //xcatpost/updateflag.awk:22: fatal: remote host and port information (192.168.1.1, 3002) invalid
Starting crond: [ OK ]
Starting atd: [ OK ]
Starting rhsmcertd...[ OK ]</broadcast,multicast,up,lower_up></xcatmaster></broadcast,multicast,up,lower_up>

Red Hat Enterprise Linux Server release 6.5 (Santiago)
Kernel 2.6.32-431.el6.x86_64 on an x86_64

compute000 login: root
Password:
[root@compute000 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 40:F2:E9:23:FE:2A
inet6 addr: fe80::42f2:e9ff:fe23:fe2a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15159 errors:0 dropped:0 overruns:0 frame:0
TX packets:4540 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:21168468 (20.1 MiB) TX bytes:465051 (454.1 KiB)
Memory:90580000-905a0000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:260 (260.0 b) TX bytes:260 (260.0 b)

[root@compute000 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="dhcp"
HWADDR="40:F2:E9:23:FE:2A"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
UUID="a44519d8-3b41-4674-a33e-0e0ce2aed50d"
[root@compute000 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0:0
DEVICE=eth0:0
BOOTPROTO=static
NM_CONTROLLED=no
IPADDR=192.168.1.4
NETMASK=255.255.255.0
ONBOOT=yes
[root@compute000 ~]# service network restart
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0:
Determining IP information for eth0...ADDRCONF(NETDEV_UP): eth0: link is not ready
igb: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
done.
Determining if ip address 192.168.1.4 is already in use for device eth0...
[ OK ]
[root@compute000 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 40:F2:E9:23:FE:2A
inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::42f2:e9ff:fe23:fe2a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15264 errors:0 dropped:0 overruns:0 frame:0
TX packets:4559 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:21188332 (20.2 MiB) TX bytes:468051 (457.0 KiB)
Memory:90580000-905a0000

eth0:0 Link encap:Ethernet HWaddr 40:F2:E9:23:FE:2A
inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Memory:90580000-905a0000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:320 (320.0 b) TX bytes:320 (320.0 b)

[root@compute000 ~]#

Contacted Xiaopeng Wang and confirmed that this is an xCAT bug, append below fix, the problem gone:

[root@xian-pcm ~]# diff confignics /install/postscripts/confignics
125c125
< str_ret="${str_ret}${str_networkname}|"


    str_ret="${str_ret}${str_networkname},"

303c303
< if [ echo $key | grep -E 'e(n|th|m)[0-9a-z]+' ];then


    if [ `echo $key | grep -E 'e(n|th)[0-9a-z]+'` ];then

[root@xian-pcm ~]# diff configeth /install/postscripts/configeth
631c631
< str_history=ip addr show dev $str_nic_name | grep inet | grep -iv dynamic | grep -iv link | awk '{print $2}'


str_history=`ip addr show dev $str_nic_name | grep inet | grep -iv dynamic | grep -iv link | grep  $str_nic_name | awk '{print $2}'`

right side /install/postscripts/<filename> is original file, left side is file with fix.</filename>

Discussion

  • XiaoPeng Wang

    XiaoPeng Wang - 2014-08-28

    Only the fix in /install/postscripts/configeth is necessary to fix this issue. The fix has been checked in to 2.8.5.

    2.8.5 003fafcff351ef0c722c53b9d15fab36347ffc85
    2.9 fc55bc9fd799297292f3e17122bf8d15c123b6b3

     
  • XiaoPeng Wang

    XiaoPeng Wang - 2014-08-28
    • status: open --> pending
     
  • XiaoPeng Wang

    XiaoPeng Wang - 2015-03-18
    • status: pending --> closed
     
MongoDB Logo MongoDB