[LACP-20] Same LAG group id is generated on bringing down the bond interface and then getting it up again Created: 01/Feb/16  Updated: 04/Feb/16  Resolved: 04/Feb/16

Status: Resolved
Project: lacp
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Mahesh Manivasagam Assignee: Kalaiselvi
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 5162

 Description   

On doing a LACP timeout scenario, the ports associated with the bond interface would wait for 90 sec under the LAG group before moving to non-lag group. In this case, the LAG group id would be removed as there are no LAG’s. But on bringing up the bond interface again, the LAG group that gets created is assigned the same LAG group id. It looks like the LAG group id is retained and not cleared on the datastore and hence the problem.
OVS log:
-------------
Initial LAG creation,
mininet> sh ovs-ofctl -O Openflow13 dump-groups s1
OFPST_GROUP_DESC reply (OF1.3) (xid=0x2):
group_id=56923,type=select,bucket=weight:0,actions=output:1,bucket=weight:0,actions=output:2
group_id=15350,type=all,bucket=weight:0,actions=drop
mininet>
mininet>
mininet>
mininet>
Bond interface down scenario for performing the timeout case,
mininet> py net.get('h1').cmd('ifconfig bond0 down')
Waits for 90 sec
OFPST_GROUP_DESC reply (OF1.3) (xid=0x2):
group_id=56923,type=select,bucket=weight:0,actions=output:1,bucket=weight:0,actions=output:2
group_id=15350,type=all,bucket=weight:0,actions=drop
mininet>
mininet>
mininet>
Post 90 secs,
mininet> sh ovs-ofctl -O Openflow13 dump-groups s1
OFPST_GROUP_DESC reply (OF1.3) (xid=0x2):
group_id=15350,type=all,bucket=weight:0,actions=output:1,bucket=weight:0,actions=output:2
mininet>
mininet>
mininet> py net.get('h1').cmd('ifconfig bond0 up')
mininet>
After bond interface bringup,
mininet> sh ovs-ofctl -O Openflow13 dump-groups s1
OFPST_GROUP_DESC reply (OF1.3) (xid=0x2):
group_id=56923,type=select,bucket=weight:0,actions=output:1,bucket=weight:0,actions=output:2
group_id=15350,type=all,bucket=weight:0,actions=drop
The same group id gets created prior to the bond interface down and after the bond up scenario as well. Looks like the LAG group id is still retained and not cleared from the datastore.



 Comments   
Comment by Kalaiselvi [ 01/Feb/16 ]

On bond interface timeout, the internal bond datastructure is not properly cleaned, leading to reuse of the same bond and thereby same group-id when the bond interface comes up.

Comment by Kalaiselvi [ 01/Feb/16 ]

https://git.opendaylight.org/gerrit/#/c/33850/

Generated at Wed Feb 07 20:06:00 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.