[NETVIRT-240] Pipeline flows are not consistently installed on OVS node with pre-existing integration bridge Created: 05/Nov/16  Updated: 09/Mar/18  Resolved: 16/Nov/16

Status: Resolved
Project: netvirt
Component/s: None
Affects Version/s: Boron
Fix Version/s: None

Type: Bug
Reporter: Bertrand Low Assignee: Bertrand Low
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: 7093

 Description   

On an OVS switch that has an existing integration bridge (e.g. br-int) before set-manager is called, the pipeline flows for that bridge may not always get installed on the switch once set-manager is called.

e.g.

[root@odl32 odl]# ovs-vsctl show
073c3d4a-110b-43be-88d7-7e80a57f133d
Bridge br-int
Port br-int
Interface br-int
type: internal
ovs_version: "2.5.0"
[root@odl32 odl]# ovs-vsctl set-manager tcp:192.168.254.34:6640 tcp:192.168.254.33:6640 tcp:192.168.254.35:6640
[root@odl32 odl]# ovs-vsctl show
073c3d4a-110b-43be-88d7-7e80a57f133d
Manager "tcp:192.168.254.34:6640"
is_connected: true
Manager "tcp:192.168.254.33:6640"
is_connected: true
Manager "tcp:192.168.254.35:6640"
is_connected: true
Bridge br-int
Controller "tcp:192.168.254.33:6653"
is_connected: true
Controller "tcp:192.168.254.35:6653"
is_connected: true
Controller "tcp:192.168.254.34:6653"
is_connected: true
fail_mode: secure
Port br-int
Interface br-int
type: internal
ovs_version: "2.5.0"
[root@odl32 odl]# ovs-ofctl dump-flows -O openflow13 br-int
OFPST_FLOW reply (OF1.3) (xid=0x2):



 Comments   
Comment by Bertrand Low [ 05/Nov/16 ]

On debugging, it appears that netvirt is causing a dpid change on the OVS switch by sending down a new hw_addr (MAC) when ODL connects. The changing dpid in turn causes the connection to flap between ODL and the bridge as OVS reconnects to advertise the new dpid. This connection flap does not allow for reliable installation of the pipeline flows on the switch.

The details of this bug are captured on the email thread:
https://lists.opendaylight.org/pipermail/netvirt-dev/2016-October/001906.html

Comment by Bertrand Low [ 05/Nov/16 ]

Submitted this patch to stable/boron:
https://git.opendaylight.org/gerrit/#/c/48024/

Comment by Bertrand Low [ 16/Nov/16 ]

Cherry-picked into master:

https://git.opendaylight.org/gerrit/#/c/48300/1

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