Bug 1848818

Summary: [OVN] QoS rules share the same Openflow meter
Product: Red Hat Enterprise Linux Fast Datapath Reporter: ying xu <yinxu>
Component: ovn2.11Assignee: lorenzo bianconi <lorenzo.bianconi>
Status: CLOSED ERRATA QA Contact: ying xu <yinxu>
Severity: medium Docs Contact:
Priority: medium    
Version: FDP 20.ECC: ctrautma, jishi, lorenzo.bianconi, mjozefcz, mmichels, ralongi, rkhan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovn2.11-2.11.1-51.el7fdn Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1817606 Environment:
Last Closed: 2020-08-18 11:23:25 UTC Type: ---
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: 1817606    
Bug Blocks:    

Comment 3 ying xu 2020-07-17 08:38:05 UTC
verified on version:
# rpm -qa|grep ovn
ovn2.11-central-2.11.1-53.el8fdp.x86_64
ovn2.11-host-2.11.1-53.el8fdp.x86_64
ovn2.11-2.11.1-53.el8fdp.x86_64

create the same acl for two ports 
ovn-nbctl qos-add ls1 from-lport 3000 "inport==\"ls1p1\"" rate=200000 burst=220000
ovn-nbctl qos-add ls1 from-lport 3000 "inport==\"ls1p2\"" rate=200000 burst=220000

and do the netperf at the same time,
:: [ 04:25:16 ] :: [  BEGIN   ] :: Running 'ip netns exec server0 netperf -H 192.168.0.3 >log00.txt&'
:: [ 04:25:16 ] :: [   PASS   ] :: Command 'ip netns exec server0 netperf -H 192.168.0.3 >log00.txt&' (Expected 0, got 0)
:: [ 04:25:16 ] :: [  BEGIN   ] :: Running 'ip netns exec server1 netperf -H 192.168.0.3 >log11.txt&'
:: [ 04:25:16 ] :: [   PASS   ] :: Command 'ip netns exec server1 netperf -H 192.168.0.3 >log11.txt&' (Expected 0, got 0)
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.0.3 () port 0 AF_INET
Recv   Send    Send                          
Socket Socket  Message  Elapsed              
Size   Size    Size     Time     Throughput  
bytes  bytes   bytes    secs.    10^6bits/sec  

 87380  16384  16384    10.22     236.51   
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.0.3 () port 0 AF_INET
Recv   Send    Send                          
Socket Socket  Message  Elapsed              
Size   Size    Size     Time     Throughput  
bytes  bytes   bytes    secs.    10^6bits/sec  

 87380  16384  16384    10.12     237.73   

the two ports don't share the rate limit.

set verified.

Comment 5 errata-xmlrpc 2020-08-18 11:23:25 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 (ovn2.11 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:3487