Bug 1851467 - [OVN] Do not send geneve UDP traffic to conntrack for performance reasons
Summary: [OVN] Do not send geneve UDP traffic to conntrack for performance reasons
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: z9
: 16.1 (Train on RHEL 8.2)
Assignee: Miguel Lavalle
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks: 2163371
TreeView+ depends on / blocked
 
Reported: 2020-06-26 15:58 UTC by Daniel Alvarez Sanchez
Modified: 2023-01-23 09:51 UTC (History)
8 users (show)

Fixed In Version: openstack-tripleo-heat-templates-11.3.2-1.20220805163830.29a02c1.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2163371 (view as bug list)
Environment:
Last Closed: 2022-12-07 20:29:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1885551 0 None None None 2020-06-29 11:49:07 UTC
OpenStack gerrit 738419 0 None MERGED [ovn] Don't add conntrack entries for Geneve 2023-01-23 11:18:45 UTC
OpenStack gerrit 868743 0 None NEW [ovn] Don't add conntrack entries for Geneve 2023-01-23 11:18:45 UTC
Red Hat Issue Tracker OSP-14230 0 None None None 2022-03-24 14:07:56 UTC
Red Hat Product Errata RHSA-2022:8796 0 None None None 2022-12-07 20:29:37 UTC

Description Daniel Alvarez Sanchez 2020-06-26 15:58:20 UTC
Right now every TCP connection made by an OpenStack VM that requires tunnelling will create a UDP conntrack entry. This not only has no benefit but core OVN team has identified a performance hit estimated roughly in a 10% in terms of throughput (it varies depending on the number of simultaneous TCP connections that requires tunnelling).

A possible solution to this issue is adding iptables rules in the overcloud nodes to avoid tracking Geneve traffic:

iptables -t raw -A PREROUTING -p udp --dport 6081 -j NOTRACK
iptables -t raw -A OUTPUT -p udp --dport 6081 -j NOTRACK

Comment 3 Miguel Lavalle 2022-07-06 21:39:55 UTC
The following commit (upstream https://review.opendev.org/c/openstack/tripleo-heat-templates/+/738419) is in branches rhos-17.0-rhel-9-trunk and rhos-17.0-rhel-8-trunk in pkgs.devel.redhat.com/rpms/openstack-tripleo-heat-templates

commit 51e433265b7118d016a3ccba99d00a6896a982a5
Author: OSP Prod Chain <dev-null>
Date:   Sat Aug 15 14:17:27 2020 -0400

    openstack-tripleo-heat-templates-XXX-XXX
    
    Changelog:
    - Update patches
    - [ovn] Don't add conntrack entries for Geneve


I couldn't find the corresponding commits in rhos-16.0-rhel-8-trunk, rhos-16.1-rhel-8-trunk or remotes/origin/rhos-16.2-rhel-8-trunk. So, I'm backporting https://review.opendev.org/c/openstack/tripleo-heat-templates/+/738419 to these branches

Comment 4 Miguel Lavalle 2022-07-06 22:52:33 UTC
Cherry picked to stable/Train branch upstream: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/848907

Comment 18 errata-xmlrpc 2022-12-07 20:29:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Red Hat OpenStack 16.1.9 (openstack-tripleo-heat-templates) security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:8796

Comment 19 Luigi Tamagnone 2022-12-28 09:38:17 UTC
It seems the rules have state NEW so didn't match the traffic, I added the code upstream[1] to match it with the state INVALID.

https://review.opendev.org/c/openstack/tripleo-heat-templates/+/868743


Note You need to log in before you can comment on or make changes to this bug.