Comment 20 for bug 1441435

Revision history for this message
Peter Zhurba (pzhurba) wrote :

CentOS env seems working on hardware env

Performed steps:

Check if present config files and what does it contens

[root@node-1 ~]# ls -l /etc/sysconfig/network-scripts/interface-up-script-*
-rwxr-xr-x 1 root root 58 May 20 08:11 /etc/sysconfig/network-scripts/interface-up-script-bond1
-rwxr-xr-x 1 root root 58 May 20 08:11 /etc/sysconfig/network-scripts/interface-up-script-br-aux
[root@node-1 ~]# cat /etc/sysconfig/network-scripts/interface-up-script-*
#!/bin/sh
echo "post-up sleep up to 15. " ; sleep 15
true
#!/bin/sh
echo "post-up sleep up to 45. " ; sleep 45
true
[root@node-1 ~]#

Check boot log output. If post up scripts is performed

root@node-1 ~]# cat /var/log/boot.log
  Welcome to CentOS
……………………………
……………………………
Bringing up interface bond1: post-up sleep up to 15.
                                                           [ OK ]
Bringing up interface eth0: [ OK ]
Bringing up interface eth1: [ OK ]
Bringing up interface p_br-floating-0: [ OK ]
Bringing up interface p_br-prv-0: [ OK ]
Bringing up interface bond0.387: [ OK ]
Bringing up interface bond1.388: [ OK ]
Bringing up interface eth1.386: [ OK ]
Bringing up interface br-aux: post-up sleep up to 45.
                                                           [ OK ]
……………………………
……………………………

Reboot node and check how does ifup take time and how fast we get connectivity

[root@node-1 /]# cat /root/bin/b_chk
#!/bin/bash
BND=${1:-bond0}
ip=${2:-172.16.38.71}
echo $BND $ip
# cat /proc/net/bonding/$BND
ifdown $BND
sleep 10
date
echo "Start $BND"
time ifup $BND
echo "up is done "
time until ping -q -c 1 $ip -w 1 >/dev/null
do
    echo -n "+"
    sleep 1
done

[root@node-1 ~]# b_chk br-aux 172.16.38.71
br-aux 172.16.38.71
Wed May 20 11:39:43 UTC 2015
Start br-aux
post-up sleep up to 45.

real 0m45.154s
user 0m0.066s
sys 0m0.068s
up is done

real 0m0.002s
user 0m0.000s
sys 0m0.000s
[root@node-1 ~]# b_chk bond1 10.30.6.2
bond1 10.30.6.2
Wed May 20 11:40:54 UTC 2015
Start bond1
post-up sleep up to 15.

real 0m15.564s
user 0m0.103s
sys 0m0.307s
up is done

real 0m0.001s
user 0m0.000s
sys 0m0.000s
[root@node-1 ~]#