[NETVIRT-348] ODL breaks ovs switch config on reconnect Created: 12/Dec/16  Updated: 19/Oct/17  Resolved: 12/Dec/16

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

Type: Bug
Reporter: Romanos Skiadas Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: HTML File br-ex     HTML File karafaa     HTML File karafab     HTML File karafac     HTML File karafad     HTML File ovs-vsctl     Text File ovs-vswitchd.log     HTML File port-ifcfg    
External issue ID: 7342

 Description   

Using Boron-SR2 artifact, OpenStack mitaka.
The networking setup is like this:

external-interface <> ext-linux-bridge <-A> br-floating(ovs bridge) <-> br-int

When ovs is restarted, port A ends up misconfigured.
I've collected the logs from such a restart (due to a segfault on the ovs side-working on that). The way this happens makes me think that netvirt pushes some configuration that it should.

To reproduce:

service openvswitch-switch restart



 Comments   
Comment by Romanos Skiadas [ 12/Dec/16 ]

>netvirt pushes some configuration that it should
should not*

Comment by Romanos Skiadas [ 12/Dec/16 ]

Attachment ovs-vswitchd.log has been added with description: ovs log

Comment by Romanos Skiadas [ 12/Dec/16 ]

Attachment ovs-vsctl has been added with description: ovs vsctl

Comment by Romanos Skiadas [ 12/Dec/16 ]

Attachment br-ex has been added with description: ifcfg of linux bridge

Comment by Romanos Skiadas [ 12/Dec/16 ]

Attachment port-ifcfg has been added with description: ifcfg of br-ex to br-floating port

Comment by Romanos Skiadas [ 12/Dec/16 ]

Attachment karafaa has been added with description: karaf log 1

Comment by Romanos Skiadas [ 12/Dec/16 ]

Attachment karafab has been added with description: karaf log 2

Comment by Romanos Skiadas [ 12/Dec/16 ]

Attachment karafac has been added with description: karaf log 3/4

Comment by Romanos Skiadas [ 12/Dec/16 ]

Attachment karafad has been added with description: karaf log 4/4

Comment by Alon Kochba [ 12/Dec/16 ]

Hi Skiadas,

I'm closing this on invalid, unless you have a specific reason for thinking this is ODL related..
Currently the only thing ODL does for your 'br-floating' bridge is add a patch port in it. Nothing else.

The only bridge that is fully controlled by ODL is the br-int bridge, any other bridge is assumed to pre-exist and not modified on purpose (except addition of patch port).

This seems like an OVS bug to me, I have previously seen similar issues when OVS restarts and particularily when it crashes. It's not cleaning up the previous socket so you reach this error:

2016-12-07T10:23:16.672Z|00042|netdev|WARN|trying to create netdev p_ff798dba-0 of different type internal, already is system
2016-12-07T10:23:16.672Z|00043|bridge|WARN|could not open network device p_ff798dba-0 (File exists)

As a workaround you can try deleting the socket for this port and restart ovs, it should fix things.

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