Redhat-R4.0-provisioning vrouter manually using contrail-compute-setup removed interface file while creating vhost0

Bug #1692993 reported by shajuvk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.0
Fix Committed
High
Kumar Harsh
Trunk
Fix Committed
High
Kumar Harsh

Bug Description

Issue1:
========
contrail-compute-setup script (https://github.com/Juniper/contrail-provisioning/blob/R4.0/contrail_provisioning/compute/network.py) for provisioning vrouter removing interface file and saved the interface file as .rpmsave.

ex: My setup has an interface eno1 which need to be used for vhost0, while creating vhost0, instead of setting it as static on ifcfg-eno1, this file is moved as ifcfg-eno1.rpmsave (/etc/sysconfig/interface-script/ifcfg-eno1.rpmsave) . While rebooting the box vhost0 and eno1 also receiving ip. If I move the ifcfg-eno1.rpmsave from sysconfig path to root directory. This works fine.

Ubuntu this works but for rpm (redhat)provisioning not correct.

Issue2:
=======
gateway entry was missing for ifcfg-vhost0 interface file. vrouter-agent.conf missing gateway entry.

[root@a5s8 ~]# cat ifcfg-eno1.rpmsave
# Generated by dracut initrd
NAME="eno1"
DEVICE="eno1"
ONBOOT=yes
NETBOOT=yes
UUID="690d6194-e3bb-4d1e-8b7b-b5f60ab7f549"
IPV6INIT=yes
BOOTPROTO=dhcp
TYPE=Ethernet

[root@a5s8 ~]# cat /etc/sysconfig/network-scripts/ifcfg-vhost0
#Contrail vhost0
DEVICE=vhost0
ONBOOT=yes
BOOTPROTO=none
IPV6INIT=no
USERCTL=yes
IPADDR=10.84.14.8
NETMASK=255.255.255.0
GATEWAY=10.84.14.254 ==============> this was missing
NM_CONTROLLED=no
#NETWORK MANAGER BUG WORKAROUND
SUBCHANNELS=1,2,3
DNS1=10.84.5.100
DNS2=172.21.200.60
DNS3=172.29.131.60
DNS4=8.8.8.8
DOMAIN="contrail.juniper.net juniper.net jnpr.net"

shajuvk (shajuvk)
information type: Proprietary → Public
shajuvk (shajuvk)
description: updated
Revision history for this message
Kumar Harsh (hkumar) wrote :

Please provide information on how provisioning is done .

-- harsh

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

Review in progress for https://review.opencontrail.org/32884
Submitter: Kumar Harsh (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/32968
Submitter: Kumar Harsh (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/32884
Submitter: Kumar Harsh (<email address hidden>)

Revision history for this message
Kumar Harsh (hkumar) wrote :

For part 2 of the bug :

Gateway for a single network case ( no data , management separation ) gateway is taken from

 netstat -rn output .

Since gateway was not set seems like a setup problem, it is handled well in provisioning script .

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

Review in progress for https://review.opencontrail.org/32968
Submitter: Kumar Harsh (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/32884
Committed: http://github.com/Juniper/contrail-controller/commit/691862c278cdc34e0210a441e5999640164067fa
Submitter: Zuul (<email address hidden>)
Branch: master

commit 691862c278cdc34e0210a441e5999640164067fa
Author: Kumar Harsh <email address hidden>
Date: Fri Jul 21 15:29:10 2017 +0530

Save interface config file backup as orig.ifcfg for redhat

Change-Id: Ib70afe13eee216206d181503c4cfd4a982adbd29
Closes-Bug: #1692993

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

Reviewed: https://review.opencontrail.org/32968
Committed: http://github.com/Juniper/contrail-controller/commit/94bf5d2ea5b0953ddf369a5ae077c2dfe918ab0b
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit 94bf5d2ea5b0953ddf369a5ae077c2dfe918ab0b
Author: Kumar Harsh <email address hidden>
Date: Fri Jul 21 15:29:10 2017 +0530

Save interface config file backup as orig.ifcfg for redhat

Change-Id: Ib70afe13eee216206d181503c4cfd4a982adbd29
Closes-Bug: #1692993

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.