ifup_vhost need to use "ip addr show" rather than ifconfig

Bug #1761525 reported by Senthilnathan Murugappan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R5.0
Fix Committed
High
alexey-mr
Trunk
Fix Committed
High
alexey-mr

Bug Description

Using build-51 and contrail-ansible-deployer to deploy on centos74.
On node restart unable to login to the host and observed the below errors on /var/log/messages
FYI net-tools package doesnt come pre-installed on minimal-centos74 we should either mandate installation of net-tools or use an alternative command for ifconfig.

Apr 4 22:20:50 a2s29 network: Bringing up interface vhost0: /etc/sysconfig/network-scripts/ifup-vhost: line 78: ifconfig: command not found
Apr 4 22:20:50 a2s29 kernel: vrouter: loading out-of-tree module taints kernel.
Apr 4 22:20:50 a2s29 kernel: vrouter: module verification failed: signature and/or required key missing - tainting kernel
Apr 4 22:20:50 a2s29 kernel: vrouter version: {"build-info": [{"build-time": "2018-04-01 08:39:48.903617", "build-hostname": "centos-7-4-builder-juniper-contrail-ci-0000024339", "build-user": "zuul", "build-version": "5.0.0"}]}
Apr 4 22:20:50 a2s29 network: RTNETLINK answers: File exists
Apr 4 22:20:50 a2s29 kernel: e1000e: enp2s0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
Apr 4 22:20:50 a2s29 kernel: IPv6: ADDRCONF(NETDEV_CHANGE): enp2s0: link becomes ready
Apr 4 22:20:50 a2s29 network: /etc/sysconfig/network-scripts/ifup-vhost: line 51: ifconfig: command not found
Apr 4 22:20:50 a2s29 network: /etc/sysconfig/network-scripts/ifup-vhost: line 51: ifconfig: command not found
Apr 4 22:20:50 a2s29 network: /etc/sysconfig/network-scripts/ifup-vhost: line 51: ifconfig: command not found
Apr 4 22:20:51 a2s29 dhclient[1069]: DHCPDISCOVER on vhost0 to 255.255.255.255 port 67 interval 5 (xid=0x1ccd966b)
Apr 4 22:20:56 a2s29 dhclient[1069]: DHCPDISCOVER on vhost0 to 255.255.255.255 port 67 interval 14 (xid=0x1ccd966b)
Apr 4 22:20:51 a2s29 dhclient[1069]: DHCPDISCOVER on vhost0 to 255.255.255.255 port 67 interval 5 (xid=0x1ccd966b)
Apr 4 22:20:56 a2s29 dhclient[1069]: DHCPDISCOVER on vhost0 to 255.255.255.255 port 67 interval 14 (xid=0x1ccd966b)
Apr 4 22:21:10 a2s29 dhclient[1069]: DHCPDISCOVER on vhost0 to 255.255.255.255 port 67 interval 14 (xid=0x1ccd966b)
Apr 4 22:21:24 a2s29 dhclient[1069]: DHCPDISCOVER on vhost0 to 255.255.255.255 port 67 interval 10 (xid=0x1ccd966b)
Apr 4 22:21:34 a2s29 dhclient[1069]: DHCPDISCOVER on vhost0 to 255.255.255.255 port 67 interval 18 (xid=0x1ccd966b)
Apr 4 22:21:52 a2s29 dhclient[1069]: No DHCPOFFERS received.
Apr 4 22:21:54 a2s29 network: Determining IP information for vhost0... failed.
Apr 4 22:21:54 a2s29 network: [FAILED]
Apr 4 22:21:54 a2s29 systemd: network.service: control process exited, code=exited status=1
Apr 4 22:21:54 a2s29 systemd: Failed to start LSB: Bring up/down networking.
Apr 4 22:21:54 a2s29 systemd: Unit network.service entered failed state.
Apr 4 22:21:54 a2s29 systemd: network.service failed.
Apr 4 22:21:54 a2s29 systemd: Reached target Network.
Apr 4 22:21:54 a2s29 systemd: Starting Network.

Jeba Paulaiyan (jebap)
tags: added: blocker
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/41484
Submitter: alexey-mr (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R5.0

Review in progress for https://review.opencontrail.org/41485
Submitter: alexey-mr (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/41484
Committed: http://github.com/Juniper/contrail-container-builder/commit/d2137da7618f497d0085ac13c0aec08f64b7624b
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit d2137da7618f497d0085ac13c0aec08f64b7624b
Author: alexey-mr <email address hidden>
Date: Thu Apr 5 23:36:20 2018 +0300

Avoid using ifconfig

ifconfig tool is absent on some hosts, e.g.
centos minimal.

Change-Id: I7597135ed0a02f69b7fd829e4927d18e22caca81
Closes-Bug: #1761525

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/41485
Committed: http://github.com/Juniper/contrail-container-builder/commit/1f2a37651a18f603b273c244dd54963cb69460ec
Submitter: Zuul v3 CI (<email address hidden>)
Branch: R5.0

commit 1f2a37651a18f603b273c244dd54963cb69460ec
Author: alexey-mr <email address hidden>
Date: Thu Apr 5 23:36:20 2018 +0300

Avoid using ifconfig

ifconfig tool is absent on some hosts, e.g.
centos minimal.

Change-Id: I7597135ed0a02f69b7fd829e4927d18e22caca81
Closes-Bug: #1761525

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.