Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.

Bug 1798903

Summary: [OVN 2.12][FDP20.B] qos on tunnel interface doesn't work(ovn-nbctl set Logical_Switch_Port $portname options:qos_max_rate)
Product: Red Hat Enterprise Linux Fast Datapath Reporter: ying xu <yinxu>
Component: ovn2.12Assignee: lorenzo bianconi <lorenzo.bianconi>
Status: CLOSED CURRENTRELEASE QA Contact: ying xu <yinxu>
Severity: high Docs Contact:
Priority: high    
Version: FDP 20.ACC: ctrautma, dcbw, fhallal, jishi, lorenzo.bianconi, mmichels, ovs-team, ralongi
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovn2.12-2.12.0-33.el7fdn Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1797873
: 1805581 (view as bug list) Environment:
Last Closed: 2020-11-10 15:14:00 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: 1778036, 1797873    
Bug Blocks: 1805581    

Description ying xu 2020-02-06 09:37:14 UTC
this issue can be found on 2.12 20.B too.
+++ This bug was initially created as a clone of Bug #1797873 +++

This bug can be found on version ovn2.11 FDP20.B
please see the job :
https://beaker.engineering.redhat.com/recipes/7862223/tasks/105609005/logs/taskout.log


--- Additional comment from ying xu on 2020-02-05 08:17:21 UTC ---

I found that the issue is the command "ovn-nbctl set Logical_Switch_Port $portname options:qos_max_rate=2000000" doesn't work.

it caused the case ovn_qos fail too.
https://beaker.engineering.redhat.com/recipes/7862225#task105609026
https://beaker.engineering.redhat.com/recipes/7862205#task105608876

--- Additional comment from ying xu on 2020-02-06 02:09:55 UTC ---

it is ok on last version 20.A.
https://beaker.engineering.redhat.com/recipes/7716240/tasks/103936621/logs/TESTOUT.log

Comment 1 Numan Siddique 2020-02-25 09:41:15 UTC
I'm not able to reproduce the issue locally.
Can you please rerun the tests again ? Can I get access to the setup to debug further ?

Thanks

Comment 6 ying xu 2020-03-13 05:22:35 UTC
verified on version:
# rpm -qa|grep ovn
ovn2.12-host-2.12.0-36.el8fdp.x86_64
ovn2.12-central-2.12.0-36.el8fdp.x86_64
ovn2.12-2.12.0-36.el8fdp.x86_64

case path:
/kernel/networking/openvswitch/ovn/qos/
/kernel/networking/openvswitch/ovn/basic/:ovn_test_qos


[root@localhost ~]# tail -n 1 log.txt|grep 0.02
 87380  16384  16384    14.00       0.02   
[root@localhost ~]# echo $?
0
[root@localhost ~]# logout

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: 
spawn virsh console hv1_vm00
Connected to domain hv1_vm00
Escape character is ^]

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: root
Password: 
Last login: Fri Mar 13 00:58:01 on ttyS0
[root@localhost ~]# netperf -H 172.16.104.201 > log.txt
[root@localhost ~]# echo $?
0
[root@localhost ~]# logout

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: 
spawn virsh console hv1_vm00
Connected to domain hv1_vm00
Escape character is ^]

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: root
Password: 
Last login: Fri Mar 13 00:58:05 on ttyS0
[root@localhost ~]# cat log.txt
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 172.16.104.201 () 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.14     212.01   
[root@localhost ~]# echo $?
0
[root@localhost ~]# logout

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: 
spawn virsh console hv1_vm00
Connected to domain hv1_vm00
Escape character is ^]

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: root
Password: 
Last login: Fri Mar 13 00:58:19 on ttyS0
[root@localhost ~]# tail -n 1 log.txt|awk '{print $5}'|grep "^2..\."
212.01
[root@localhost ~]# echo $?
0
[root@localhost ~]# logout

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: 
spawn virsh console hv1_vm00
Connected to domain hv1_vm00
Escape character is ^]

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: root
Password: 
Last login: Fri Mar 13 00:58:23 on ttyS0
[root@localhost ~]# netperf -H 172.16.104.201 > log.txt
[root@localhost ~]# echo $?
0
[root@localhost ~]# logout

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: 
spawn virsh console hv1_vm00
Connected to domain hv1_vm00
Escape character is ^]

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: root
Password: 
Last login: Fri Mar 13 00:58:27 on ttyS0
[root@localhost ~]# cat log.txt
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 172.16.104.201 () 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.00    9317.16   
[root@localhost ~]# echo $?
0
[root@localhost ~]# logout

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: 
result=0
SYNC_NC: sync_set client ovn_floating_qos
SYNC_NC: sent "ovn_floating_qos" to dell-per730-57.rhts.eng.pek2.redhat.com
ovn_cleanup ...
ovn_cleanup ... end
:: [ 00:58:52 ] :: [   PASS   ] :: Command 'ovn_floating_qos' (Expected 0, got 0)

Comment 7 ying xu 2020-03-19 06:51:11 UTC
hi, lorenzo bianconi 
the version of ovn2.12 on rhel7 also failed . so I set the status back to on_qa.

Comment 8 ying xu 2020-03-19 10:11:56 UTC
I talked with devel, the secnario of tunnel qos works, so set this bug verified 

verified on version:
# rpm -qa|grep ovn
ovn2.12-host-2.12.0-36.el7fdp.x86_64
ovn2.12-central-2.12.0-36.el7fdp.x86_64
ovn2.12-2.12.0-36.el7fdp.x86_64


[root@localhost ~]# cat log.txt
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 172.16.104.201 () 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    14.00       2.06   
[root@localhost ~]# echo $?
0
[root@localhost ~]# logout

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: 
spawn virsh console hv1_vm00
Connected to domain hv1_vm00
Escape character is ^]

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: root
Password: 
Last login: Thu Mar 19 06:08:59 on ttyS0
[root@localhost ~]# tail -n 1 log.txt|grep 2.*
 87380  16384  16384    14.00       2.06   
[root@localhost ~]# echo $?
0
[root@localhost ~]# logout

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: 
spawn virsh console hv1_vm00
Connected to domain hv1_vm00
Escape character is ^]

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: root
Password: 
Last login: Thu Mar 19 06:09:03 on ttyS0
[root@localhost ~]# netperf -H 172.16.104.201 > log.txt
[root@localhost ~]# echo $?
0
[root@localhost ~]# logout

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: 
spawn virsh console hv1_vm00
Connected to domain hv1_vm00
Escape character is ^]

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: root
Password: 
Last login: Thu Mar 19 06:09:07 on ttyS0
[root@localhost ~]# cat log.txt
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 172.16.104.201 () 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    14.00       0.02   
[root@localhost ~]# echo $?
0
[root@localhost ~]# logout

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: 
spawn virsh console hv1_vm00
Connected to domain hv1_vm00
Escape character is ^]

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: root
Password: 
Last login: Thu Mar 19 06:09:42 on ttyS0
[root@localhost ~]# tail -n 1 log.txt|grep 0.02
 87380  16384  16384    14.00       0.02   
[root@localhost ~]# echo $?
0
[root@localhost ~]# logout

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: 
spawn virsh console hv1_vm00
Connected to domain hv1_vm00
Escape character is ^]

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: root
Password: 
Last login: Thu Mar 19 06:09:46 on ttyS0
[root@localhost ~]# netperf -H 172.16.104.201 > log.txt
[root@localhost ~]# echo $?
0
[root@localhost ~]# logout

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: 
spawn virsh console hv1_vm00
Connected to domain hv1_vm00
Escape character is ^]

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: root
Password: 
Last login: Thu Mar 19 06:09:50 on ttyS0
[root@localhost ~]# cat log.txt
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 172.16.104.201 () 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.15     211.98   
[root@localhost ~]# echo $?
0
[root@localhost ~]# logout

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: 
spawn virsh console hv1_vm00
Connected to domain hv1_vm00
Escape character is ^]

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: root
Password: 
Last login: Thu Mar 19 06:10:04 on ttyS0
[root@localhost ~]# tail -n 1 log.txt|awk '{print $5}'|grep "^2..\."
211.98
[root@localhost ~]# echo $?
0
[root@localhost ~]# logout

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: 
spawn virsh console hv1_vm00
Connected to domain hv1_vm00
Escape character is ^]

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: root
Password: 
Last login: Thu Mar 19 06:10:07 on ttyS0
[root@localhost ~]# netperf -H 172.16.104.201 > log.txt
[root@localhost ~]# echo $?
0
[root@localhost ~]# logout

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: 
spawn virsh console hv1_vm00
Connected to domain hv1_vm00
Escape character is ^]

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: root
Password: 
Last login: Thu Mar 19 06:10:11 on ttyS0
[root@localhost ~]# cat log.txt
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 172.16.104.201 () 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.04     941.22   
[root@localhost ~]# echo $?
0
[root@localhost ~]# logout

Red Hat Enterprise Linux Server 7.7 (Maipo)
Kernel 3.10.0-1062.el7.x86_64 on an x86_64

localhost login: 
result=0
SYNC_NC: sync_set client ovn_floating_qos
SYNC_NC: sent "ovn_floating_qos" to dell-per730-03.rhts.eng.pek2.redhat.com
ovn_cleanup ...
ovn_cleanup ... end
:: [ 06:10:35 ] :: [   PASS   ] :: Command 'ovn_floating_qos' (Expected 0, got 0)



and for the fail case it looks like a different issue from this one, so I will open a new one.

Comment 11 Dan Williams 2020-11-10 15:14:00 UTC
ovn2.12 has been superceded by ovn2.13.

Comment 12 Red Hat Bugzilla 2023-09-14 05:51:14 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days