[OVSDB-450] Deleting a bridge in OVS deletes the ProtocolEntry for all bridges Created: 09/Feb/18  Updated: 01/May/19

Status: Open
Project: ovsdb
Component/s: Southbound.Open_vSwitch
Affects Version/s: Oxygen-SR1
Fix Version/s: None

Type: Bug Priority: High
Reporter: Thomas Ferrandiz Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: openflow, ovsdb
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS: Linux 4.2.0-34-generic #39~14.04.1-Ubuntu SMP Fri Mar 11 11:38:02 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Open vSwitch: 2.8.1

Opendaylight: Carbon-SR2


Attachments: File odl_ovsdb_bug_report.sh    

 Description   

Hello,

I found a bug when using ODL to manage multiple bridges on a single OVS.

The problem is as follows:

  • I create two bridges br1 and br2 on an OVS node and set them to use OpenFlow 1.3 by setting a ProtocolEntry with OvsdbBridgeProtocolOpenflow13.class in OvsdbBridgeAugmentationBuilder.
  • Setting the ProtocolEntry is required because OVS 2.8.1 defaults to a version of OpenFlow not supported by ODL
  • I then delete bridge br2 through the OVSDB REST API
  • At that point, br2 is correctly deleted but br1 gets disconnected from ODL OpenFlow plugin

The following line appears in the log:

2018-02-09 17:41:42,787 | INFO | on-dispatcher-61 | ProtocolRemovedCommand | 345 - org.opendaylight.ovsdb.southbound-impl - 1.4.2.Carbon | Removed ProtocolEntry : OpenFlow13 for OVSDB Bridge : null

instead of something like

2018-02-09 17:41:42,787 | INFO | on-dispatcher-61 | ProtocolRemovedCommand | 345 - org.opendaylight.ovsdb.southbound-impl - 1.4.2.Carbon | Removed ProtocolEntry : OpenFlow13 for OVSDB Bridge : br2

 

When checking the ovsdb topology through the REST API, it appears that the ProtocolEntry has been removed for br1 as well

 

It is possible to get back the connectivity using 

ovs-vsctl set bridge br1 protocols=OpenFlow13

but that requires manual action on the OVS.

 

Do not hesitate to contact me if more info is required.

Thanks

Thomas

 



 Comments   
Comment by Vishal Thapar [ 23/May/18 ]

Can you confirm if it works on Nitrogen or latest Master. Could you also share the REST URI and JSON used to delete the bridge?

Comment by Thomas Ferrandiz [ 06/Jun/18 ]

I tested with Oxygen SR1, the bug is still present.

The REST URI and JSON used to create the bridges, then delete one of them are provided in the attached file odl_ovsdb_bug_report.sh

 

 

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