Bond interfaces are not properly started after restarting vrouter-dpdk with bonding and vlans

Bug #1565958 reported by Florek
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
New
Undecided
Kiran
R3.0
Fix Committed
Undecided
Vinod Nair

Bug Description

The problem is being created when the vrouter is being stopped and ports are being unbind (this is from /var/log/contrail.log):

bond-slaves: eth6 eth8
[…]
bond-xmit-hash-policy: layer3+4
+ ifup bond0
Waiting for a slave to join bond0 (will timeout after 60s)
No slave joined bond0, continuing anyway
+ for iface in '$(ifquery --list)'
+ ifquery bond0.2003
+ grep -i bond
vlan-raw-device: bond0
+ ifup bond0.2003
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
ERROR: trying to add VLAN #2003 to IF -:bond0:- error: Operation not supported
Cannot find device "bond0.2003"
Failed to bring up bond0.2003.
+ for iface in '$(ifquery --list)'
+ ifquery bond0.2004
+ grep -i bond
vlan-raw-device: bond0
+ ifup bond0.2004
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
ERROR: trying to add VLAN #2004 to IF -:bond0:- error: Operation not supported
Cannot find device "bond0.2004"
Failed to bring up bond0.2004.
[…]
+ for iface in '$(ifquery --list)'
+ ifquery eth6
+ grep -i bond
bond-master: bond0
+ ifup eth6
+ for iface in '$(ifquery --list)'
+ ifquery eth8
+ grep -i bond
bond-master: bond0
+ ifup eth8

It should first start eth6 and eth8 and after that the bond0.vlan_number interfaces. Please take a look on running this manually:
1) the way /opt/contrail/bin/vrouter-functions.sh is doing that right now:
root@node-28:~# ifdown bond0.2003
Removed VLAN -:bond0.2003:-
root@node-28:~# ifdown bond0.2004
Removed VLAN -:bond0.2004:-
root@node-28:~# ifdown eth6
root@node-28:~# ifdown eth8
root@node-28:~# ifup bond0.2003
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
ERROR: trying to add VLAN #2003 to IF -:bond0:- error: Operation not supported
Cannot find device "bond0.2003"
Failed to bring up bond0.2003.
root@node-28:~# ifup bond0.2004
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
ERROR: trying to add VLAN #2004 to IF -:bond0:- error: Operation not supported
Cannot find device "bond0.2004"
Failed to bring up bond0.2004.

2) the way it should be done:
root@node-28:~# ifup eth6
root@node-28:~# ifup eth8
root@node-28:~# ifup bond0.2003
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
Added VLAN with VID == 2003 to IF -:bond0:-
root@node-28:~# ifup bond0.2004
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
Added VLAN with VID == 2004 to IF -:bond0:-

Tags: dpdk
Jeba Paulaiyan (jebap)
tags: added: dpdk
information type: Proprietary → Public
Changed in juniperopenstack:
assignee: nobody → Raja Sivaramakrishnan (raja-u)
Changed in juniperopenstack:
assignee: Raja Sivaramakrishnan (raja-u) → Kiran (kiran-kn80)
Revision history for this message
Kiran (kiran-kn80) wrote :

Have committed the fix as part of Bug 1565124

Revision history for this message
Kiran (kiran-kn80) wrote :
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.