Bond interfaces are not properly started after restarting vrouter-dpdk with bonding and vlans
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/
bond-slaves: eth6 eth8
[…]
bond-xmit-
+ 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/
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/
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/
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/
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/
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/
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/
Added VLAN with VID == 2004 to IF -:bond0:-
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) |
Have committed the fix as part of Bug 1565124