Wind River Support Network

HomeDefectsCGP6-503
Fixed

CGP6-503 : Starting second VRF instance failing

Created: Oct 8, 2015    Updated: Feb 11, 2019
Resolved Date: Nov 9, 2015
Found In Version: 6.0.0.23
Fix Version: 6.0.0.27
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: Kernel

Description

Configure WRlinux6 CGL project as the following options:
/opt/WRLX6/wrlinux-6/wrlinux/configure --enable-board=qemux86_64 --enable-kernel=cgl --enable-rootfs=glibc_cgl --enable-bootimage=hdd --enable-parallel-pkgbuilds=8 --enable-jobs=8 --enable-reconfig --enable-internet-download=yes --enable-rm-oldimgs=yes --with-rcpl-version=0023

Then "make start-target" and create and start vrf instance as the CARRIER GRADE PROFILE USER’S GUIDE, chapter 5 described.
When starting the second vrf instance, it failed.
See the following log:
---------------------------
root@qemu0:~# vrf-status 
name:vrf_1
state:   STOPPED
pid:        -1

name:vrf_2
state:   STOPPED
pid:        -1

root@qemu0:~# vrf-start 1
cgroup: lxc-start (1634) created nested cgroup for controller "blkio" which has incomplete hierarchy support. Nested cgroups may change behavior in the future.
cgroup: lxc-start (1634) created nested cgroup for controller "memory" which has incomplete hierarchy support. Nested cgroups may change behavior in the future.
cgroup: "memory" requires setting use_hierarchy to 1 on the root.
device eth0 entered promiscuous mode
vrf_1 successfully started
root@qemu0:~# vrf-start 2
vrf_2 failed to start
-------------------------------------

On RCPL 17, with the same configure options and steps, it success.

Detailed steps and log in the "step to reproduce"

Steps to Reproduce

===========LOG===========


root@qemu0:~# vrf-status


root@qemu0:~# sestatus
SELinux status: disabled


root@qemu0:~# vrf-status
root@qemu0:~# vrf-create
Enter VRF# to create: 1

Filesystem installation type:
Binaries, libraries share with physical VR with all installations
1.Minimum installation
Only bootstrap configuration files copy from physical VR to VR.
2.Filesystem copy on write
Physical VR etc dir is mounted to VR READONLY. Any write to VR
etc dir will be written to VR own fs etc dir.
0.Exit installation
Nothing will be installed and quit
Please choose:2

ADD - Add an interface to the VRF
DEL - Delete an interface from the VRF
SHOW - show the interfaces already configured in the VRF
DONE - finished adding interfaces
Select action:ADD

Enter the name of the new interface in the VRF or EXIT to quit: veth0

eth0 sit0
Select the physical link to map to VRF interface veth0 or EXIT to quit: eth0

Select type of networking configuration for VRF interface veth0:
PHYSICAL
VLAN
MACVLAN
EXIT (to quit)
Enter selection: MACVLAN

Select type of macvlan configuration:
PRIVATE
VEPA
BRIDGE
EXIT (to quit)
Enter selection: BRIDGE

Enter an IPv4 address for interface veth0 in the form xxx.xxx.xxx.xxx/yy
11.22.33.44/24

ADD - Add an interface to the VRF
DEL - Delete an interface from the VRF
SHOW - show the interfaces already configured in the VRF
DONE - finished adding interfaces
Select action:SHOW

The following interfaces have been configured for this VRF:
-----------------------------------------------------------
1) eth0 --> veth0 11.22.33.44/24 (MACVLAN)

ADD - Add an interface to the VRF
DEL - Delete an interface from the VRF
SHOW - show the interfaces already configured in the VRF
DONE - finished adding interfaces
Select action:done
Set SELinux config file as permissive
'vrf_1' created
vrf_1 successfully created
root@qemu0:~# vrf-create 2

Filesystem installation type:
Binaries, libraries share with physical VR with all installations
1.Minimum installation
Only bootstrap configuration files copy from physical VR to VR.
2.Filesystem copy on write
Physical VR etc dir is mounted to VR READONLY. Any write to VR
etc dir will be written to VR own fs etc dir.
0.Exit installation
Nothing will be installed and quit
Please choose:2

ADD - Add an interface to the VRF
DEL - Delete an interface from the VRF
SHOW - show the interfaces already configured in the VRF
DONE - finished adding interfaces
Select action:ADD

Enter the name of the new interface in the VRF or EXIT to quit: veth0

eth0 sit0
Select the physical link to map to VRF interface veth0 or EXIT to quit: eth0

Select type of networking configuration for VRF interface veth0:
PHYSICAL
VLAN
MACVLAN
EXIT (to quit)
Enter selection: MACVLAN

Select type of macvlan configuration:
PRIVATE
VEPA
BRIDGE
EXIT (to quit)
Enter selection: BRIDGE

Enter an IPv4 address for interface veth0 in the form xxx.xxx.xxx.xxx/yy
11.22.33.46/24

ADD - Add an interface to the VRF
DEL - Delete an interface from the VRF
SHOW - show the interfaces already configured in the VRF
DONE - finished adding interfaces
Select action:SHOW

The following interfaces have been configured for this VRF:
-----------------------------------------------------------
1) eth0 --> veth0 11.22.33.46/24 (MACVLAN)

ADD - Add an interface to the VRF
DEL - Delete an interface from the VRF
SHOW - show the interfaces already configured in the VRF
DONE - finished adding interfaces
Select action:done
Set SELinux config file as permissive
'vrf_2' created
vrf_2 successfully created
root@qemu0:~# vrf-status
name:vrf_1
state: STOPPED
pid: -1

name:vrf_2
state: STOPPED
pid: -1

root@qemu0:~# vrf-start 1
vrf_1 successfully started
root@qemu0:~# vrf-start 2
vrf_2 failed to start




================
Live chat
Online