Bug 1906455
Summary: | [OVN] Asymmetric traffic path between external host and VM with a FIP / inconsistent NAT? | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux Fast Datapath | Reporter: | Daniel Alvarez Sanchez <dalvarez> |
Component: | ovn2.13 | Assignee: | OVN Team <ovnteam> |
Status: | CLOSED WONTFIX | QA Contact: | Jianlin Shi <jishi> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | FDP 20.B | CC: | cgoncalves, ctrautma, dceara, jishi, lorenzo.bianconi, ltomasbo, michele, mmichels, ralongi |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-12-01 15:57:05 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Daniel Alvarez Sanchez
2020-12-10 14:51:46 UTC
(In reply to Daniel Alvarez Sanchez from comment #0) > > 1) changed the source MAC to that of the FIP (fa:16:3e:19:e4:4a) > 2) Left the source IP unchanged (10.0.0.119) > 3) Sent the traffic via the localnet port and hence using the physical > network > > > > In my opinion, this behavior is not consistent. I'd expect: > This does look like a bug to me. I don't think there should be any reason to change the packet's SMAC to NAT.external_mac unless SNAT is also performed using NAT.external_ip. (In reply to Dumitru Ceara from comment #1) > (In reply to Daniel Alvarez Sanchez from comment #0) > > > > 1) changed the source MAC to that of the FIP (fa:16:3e:19:e4:4a) > > 2) Left the source IP unchanged (10.0.0.119) > > 3) Sent the traffic via the localnet port and hence using the physical > > network > > > > > > > > In my opinion, this behavior is not consistent. I'd expect: > > > > This does look like a bug to me. I don't think there should be any reason to > change the packet's SMAC to NAT.external_mac unless SNAT is also performed > using NAT.external_ip. Thanks Dumitru, that's my understanding as well. From an OpenStack perspective I believe that, if possible, the traffic should return via the same path it entered. ie. if no NAT happens and the traffic came in through the tunnel to the port IP address, no NAT should happen in the reverse path and it also should be sent through the tunnel. (In reply to Daniel Alvarez Sanchez from comment #2) > (In reply to Dumitru Ceara from comment #1) > > (In reply to Daniel Alvarez Sanchez from comment #0) > > > > > > 1) changed the source MAC to that of the FIP (fa:16:3e:19:e4:4a) > > > 2) Left the source IP unchanged (10.0.0.119) > > > 3) Sent the traffic via the localnet port and hence using the physical > > > network > > > > > > > > > > > > In my opinion, this behavior is not consistent. I'd expect: > > > > > > > This does look like a bug to me. I don't think there should be any reason to > > change the packet's SMAC to NAT.external_mac unless SNAT is also performed > > using NAT.external_ip. > > > Thanks Dumitru, that's my understanding as well. > > From an OpenStack perspective I believe that, if possible, the traffic > should return via the same path it entered. ie. if no NAT happens and the > traffic came in through the tunnel to the port IP address, no NAT should > happen in the reverse path and it also should be sent through the tunnel. The root cause of the issue I guess are the flows added to table=17 when we have FIPs on the hv, e.g: table=17(lr_in_gw_redirect ) priority=100 , match=(ip4.src == 10.0.0.3 && outport == "lr0-public" && is_chassis_resident("sw0-port1")), action=(eth.src = 30:54:00:00:00:03; reg1 = 172.16.0.110; next;) This flow will overwrite the L2/L3 src address and force the packet to be sent out using localnet port and not using the geneve tunnel Hi, is this issue still happening in OSP? I see that the priority and severity were bumped back in April, but no new comments were added. Lorenzo's diagnosis of the problem is multiple years old at this point, so I don't know if it's still relevant. No response since my comment in July. Closing. |