[NETVIRT-462] L2GW tunnel(s) not created when auto tunnel mode is enabled Created: 06/Feb/17  Updated: 03/May/18  Resolved: 05/Apr/18

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

Type: Bug Priority: Medium
Reporter: Victor Pickard Assignee: Akash Sahu
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


External issue ID: 7743

 Description   

When auto tunnel mode is enabled (default for netvirt, currently), there are some issues when L2GW and L2GW connection are configured. Usually, what I see is there will not be a tunnel between the TOR and the remote TEP (dump vtep db).

If I delete the automatically created Transport Zones in ITM via restconf, and then create the L2GW and L2GW connection, the tunnel between the TOR and remote TEP will be created.

This issue has also been observed and repored by Tomer Pearl in the OVSDB mailing list.

One workaround that has been mentioned (I have not tried it yet) is to disable auto tunnel creation in netvirt config file.



 Comments   
Comment by Victor Pickard [ 06/Feb/17 ]

Email on ovsdb-dev, from Daya, about how this works.

Hi pearl,
First word of caution - I am not sure if this is tested with netvirt autoconfig tunnel creation mode, or works with the same.
So, the assumption is that a transport zone is available, with a bunch of ovs nodes, which are already fully meshed.
Given this,when the l2gw create commands comes through, netivirt will build tunnels from each ovs endpt in the TZ (or other hwvtep endpts) to the new l2gw device. Netvirt will also populate all the remote TEPs in the physical locator table of the hwvtep, to enable it to build its own tunnels as and when needed.

Can you try the following –
Switch off tunnel autocreation, use REST aPI to create TZ with all OVS, and then see if u face any issues.
Use the netvirt autoconfig mode, but create the neutron network first, which will trigger creation of the TZ with OVS switches upfront, then add the l2gw API.

If we know this is the issue, (and it may be different from the exception you are seeing below), we can update the l2gw code as follows in case the netvirt auto0config mode is enabled –
It should not build tunnels as part of l2gw create operations. When l2gw conn-create comes through, it needs to look up the corresponding TZ, and add the hwvtep into this tz as an external endpt, this will enable tunnels from all ovs’s in that tz to the hwvtep, netvirt should also publish only the subset of physical locators in that tz onto the hwvtep.

Thanks,
daya

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