Bug 1876990
Summary: | [OVN SCALE] Avoid adding invalid flows for reject ACLs into Southbound db | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux Fast Datapath | Reporter: | Ilya Maximets <i.maximets> |
Component: | OVN | Assignee: | Numan Siddique <nusiddiq> |
Status: | CLOSED ERRATA | QA Contact: | ying xu <yinxu> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | FDP 20.E | CC: | ctrautma, kfida, nusiddiq |
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: | 2020-12-01 15:07:02 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1859924 |
Description
Ilya Maximets
2020-09-08 16:29:59 UTC
To address this issue, a different approach was taken. A new OVN action was added called "reject" which can handle both IPv4 and IPv6 packets. With this, we will add only one logical flow for each reject ACL. The patches are merged upstream. I can reproduce this bz on the version: # rpm -qa|grep ovn ovn2.13-host-20.09.0-1.el8fdp.x86_64 ovn2.13-central-20.09.0-1.el8fdp.x86_64 ovn2.13-20.09.0-1.el8fdp.x86_64 config acl reject rules: #ovn-nbctl acl-add ls to-lport 900 "tcp && tcp.dst == 2345" reject then check the lflows: #ovn-sbctl lflow-list |grep "tcp && tcp.dst == 2345" table=5 (ls_out_acl ), priority=1910 , match=(ip4 && tcp && (tcp && tcp.dst == 2345)), action=(reg0 = 0; eth.dst <-> eth.src; ip4.dst <-> ip4.src; tcp_reset { outport <-> inport; next(pipeline=ingress,table=20); };) table=5 (ls_out_acl ), priority=1910 , match=(ip6 && tcp && (tcp && tcp.dst == 2345)), action=(reg0 = 0; eth.dst <-> eth.src; ip6.dst <-> ip6.src; tcp_reset { outport <-> inport; next(pipeline=ingress,table=20); };) table=5 (ls_out_acl ), priority=1900 , match=(ip4 && (tcp && tcp.dst == 2345)), action=(reg0 = 0; icmp4 { eth.dst <-> eth.src; ip4.dst <-> ip4.src; outport <-> inport; next(pipeline=ingress,table=20); };) table=5 (ls_out_acl ), priority=1900 , match=(ip6 && (tcp && tcp.dst == 2345)), action=(reg0 = 0; icmp6 { eth.dst <-> eth.src; ip6.dst <-> ip6.src; outport <-> inport; next(pipeline=ingress,table=20); };) there are 4 flows about this rule. verified on the version: # rpm -qa|grep ovn ovn2.13-host-20.09.0-10.el8fdp.x86_64 ovn2.13-central-20.09.0-10.el8fdp.x86_64 ovn2.13-20.09.0-10.el8fdp.x86_64 #ovn-sbctl lflow-list |grep "tcp && tcp.dst == 2345" table=5 (ls_out_acl ), priority=1900 , match=(tcp && tcp.dst == 2345), action=(reg0 = 0; reject { /* eth.dst <-> eth.src; ip.dst <-> ip.src; is implicit. */ outport <-> inport; next(pipeline=ingress,table=20); };) there is only 1 flow about this rule. verified on rhel7: # rpm -qa|grep ovn ovn2.13-20.09.0-10.el7fdp.x86_64 ovn2.13-central-20.09.0-10.el7fdp.x86_64 ovn2.13-host-20.09.0-10.el7fdp.x86_64 #ovn-nbctl acl-add ls to-lport 800 "ip6 && udp && udp.dst == 2349" reject' (Expected 0, got 0) #ovn-sbctl lflow-list |grep 'udp && udp.dst == 2349'' table=5 (ls_out_acl ), priority=1800 , match=(ip6 && udp && udp.dst == 2349), action=(reg0 = 0; reject { /* eth.dst <-> eth.src; ip.dst <-> ip.src; is implicit. */ outport <-> inport; next(pipeline=ingress,table=20); };) there is only 1 flow. 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 (ovn2.13 bug fix and enhancement 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/RHBA-2020:5308 |