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 1743577

Summary: [RHEL7] [OVN]controller_even is not effective on logical router
Product: Red Hat Enterprise Linux Fast Datapath Reporter: haidong li <haili>
Component: OVNAssignee: lorenzo bianconi <lorenzo.bianconi>
Status: CLOSED ERRATA QA Contact: haidong li <haili>
Severity: medium Docs Contact:
Priority: unspecified    
Version: FDP 19.ECC: ctrautma, fleitner, jishi, kfida, kzhang, liali, lorenzo.bianconi
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ovn2.11-2.11.1-2.el7fdn Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1757087 (view as bug list) Environment:
Last Closed: 2019-10-01 07:21:33 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: 1757087    

Description haidong li 2019-08-20 09:02:19 UTC
Description of problem:
controller_even is not effective on logical router

Version-Release number of selected component (if applicable):
[root@dell-per730-57 ovn]# uname -a
Linux dell-per730-57.rhts.eng.pek2.redhat.com 4.18.0-128.el8.x86_64 #1 SMP Fri Aug 2 14:59:23 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[root@dell-per730-57 ovn]# rpm -qa | grep openvswitch
openvswitch-selinux-extra-policy-1.0-18.el8fdp.noarch
openvswitch2.11-2.11.0-18.el8fdp.x86_64
[root@dell-per730-57 ovn]# rpm -qa | grep ovn
ovn2.11-2.11.0-26.el8fdp.x86_64
ovn2.11-host-2.11.0-26.el8fdp.x86_64
ovn2.11-central-2.11.0-26.el8fdp.x86_64

How reproducible:
everytime

Steps to Reproduce:
1.add lb without backends
2.add the lb to logical router
3.send packets to vip,no infomation in controller_even

Actual results:
[root@dell-per730-57 ovn]# ovn-nbctl lb-list lb0
UUID                                    LB                  PROTO      VIP               IPs
492fd0e0-3547-4a68-bba5-1dfcc432a475    lb0                 tcp        30.0.0.100:80     
                                                            tcp        [3000::100]:80    
[root@dell-per730-57 ovn]# 
[root@dell-per730-57 ovn]# ovn-nbctl lr-lb-list r1
UUID                                    LB                  PROTO      VIP               IPs
492fd0e0-3547-4a68-bba5-1dfcc432a475    lb0                 tcp        30.0.0.100:80     
                                                            tcp        [3000::100]:80    
[root@dell-per730-57 ovn]# 
[root@dell-per730-57 ovn]# virsh console hv1_vm00
Connected to domain hv1_vm00
Escape character is ^]

[root@localhost ~]# curl 30.0.0.100:80 --connect-timeout 5
curl: (28) Connection timed out after 5001 milliseconds
[root@localhost ~]# curl -g [3000::100]:80 --connect-timeout 5
curl: (28) Connection timed out after 5001 milliseconds
[root@localhost ~]# 
[root@dell-per730-57 ovn]# ovn-sbctl list controller_even
[root@dell-per730-57 ovn]#


Expected results:
controller_even is created

Additional info:
the controller_even can be created when add lb to logical switch instead of logical router

[root@dell-per730-57 ovn]# ovn-nbctl lr-lb-del r1
[root@dell-per730-57 ovn]# ovn-nbctl ls-lb-add s2 lb0
[root@dell-per730-57 ovn]# virsh console hv1_vm00
Connected to domain hv1_vm00
Escape character is ^]

[root@localhost ~]# curl -g [3000::100]:80 --connect-timeout 5
curl: (28) Connection timed out after 5001 milliseconds
[root@localhost ~]# curl 30.0.0.100:80 --connect-timeout 5
curl: (28) Connection timed out after 5001 milliseconds
[root@localhost ~]# 
[root@dell-per730-57 ovn]# ovn-sbctl list controller_even
_uuid               : 95554320-9f50-43a3-bb69-01467cc89e17
chassis             : f2062094-35d7-4f5f-8db5-8eb513a8432f
event_info          : {load_balancer="492fd0e0-3547-4a68-bba5-1dfcc432a475", protocol=tcp, vip="30.0.0.100:80"}
event_type          : empty_lb_backends
seq_num             : 6

_uuid               : f1f5b7a1-1d97-4462-b05e-dc210afc311f
chassis             : f2062094-35d7-4f5f-8db5-8eb513a8432f
event_info          : {load_balancer="492fd0e0-3547-4a68-bba5-1dfcc432a475", protocol=tcp, vip="[3000::100]:80"}
event_type          : empty_lb_backends
seq_num             : 5
[root@dell-per730-57 ovn]#

Comment 3 errata-xmlrpc 2019-10-01 07:21:33 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, 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-2019:2943

Comment 4 haidong li 2019-10-08 09:34:54 UTC
verified on the latest version:ovn2.11-2.11.1-3.el7fdp

job link:
https://beaker.engineering.redhat.com/recipes/7445874#task100487490

just have to run case ovn_load_balance