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 2103740

Summary: Service monitor is broken : Its not set to offline when the ovn-controller releases a port binding
Product: Red Hat Enterprise Linux Fast Datapath Reporter: Numan Siddique <nusiddiq>
Component: ovn-2021Assignee: OVN Team <ovnteam>
Status: CLOSED ERRATA QA Contact: ying xu <yinxu>
Severity: unspecified Docs Contact:
Priority: medium    
Version: FDP 21.KCC: ctrautma, jiji, jishi, lorenzo.bianconi, mmichels, odivlad
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovn-2021-21.12.0-83.el8fdp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-06 20:58:34 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:

Description Numan Siddique 2022-07-04 16:37:18 UTC
Description of problem:

Reported upstream at - https://mail.openvswitch.org/pipermail/ovs-dev/2022-July/395504.html

Steps to reproduce (copied from the u/s report)

---
# cat ./repro.sh
#!/bin/bash -x

ovn-nbctl ls-add ls1
ovn-nbctl lsp-add ls1 lsp1 -- \
    lsp-set-addresses lsp1 "00:00:00:00:00:01 192.168.0.10"
ovn-nbctl lb-add lb1 192.168.0.100:80 192.168.0.10:80
ovn-nbctl set Load_balancer lb1 ip_port_mappings:192.168.0.10=lsp1:192.168.0.8
ovn-nbctl --id=@id create Load_Balancer_Health_Check vip='"192.168.0.100:80"' -- set Load_Balancer lb1 health_check=@id
ovn-nbctl ls-lb-add ls1 lb1

ovs-vsctl add-port br-int test-lb -- set interface test-lb type=internal external_ids:iface-id=lsp1
ip li set test-lb addr 00:00:00:00:00:01
ip a add 192.168.0.10/24 dev test-lb
ip li set test-lb up

# check service_monitor
ovn-sbctl list service_mon

# ensure state became offline
sleep 4
ovn-sbctl list service_mon

# start listen on :80 with netcat
ncat -k -l 192.168.0.10 80 &

# ensure state turned to online
sleep 4
ovn-sbctl list service_mon

# trigger binding release
ovs-vsctl remove interface test-lb external_ids iface-id

# ensure state remains online
sleep 10
ovn-sbctl list service_mon

# ensure OVS group and backend is still in bucket
ovs-ofctl dump-groups br-int | grep 192.168.0.10

----




Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Numan Siddique 2022-07-05 22:32:19 UTC
Upstream patch submitted for review - https://patchwork.ozlabs.org/project/ovn/patch/20220705175154.3095150-1-odivlad@gmail.com/

Comment 2 OVN Bot 2022-07-09 04:05:40 UTC
This issue is fixed in ovn-2021-21.12.0-83.el8fdp

Comment 3 OVN Bot 2022-07-09 04:05:47 UTC
This issue has been cloned at https://bugzilla.redhat.com/show_bug.cgi?id=2105626

Comment 4 OVN Bot 2022-07-09 04:05:56 UTC
This issue has been cloned at https://bugzilla.redhat.com/show_bug.cgi?id=2105627

Comment 5 OVN Bot 2022-07-09 04:06:04 UTC
This issue has been cloned at https://bugzilla.redhat.com/show_bug.cgi?id=2105628

Comment 6 OVN Bot 2022-07-09 04:06:14 UTC
This issue has been cloned at https://bugzilla.redhat.com/show_bug.cgi?id=2105629

Comment 7 OVN Bot 2022-07-09 04:06:21 UTC
This issue has been cloned at https://bugzilla.redhat.com/show_bug.cgi?id=2105630

Comment 8 OVN Bot 2022-07-18 19:45:39 UTC
This issue has been cloned at https://bugzilla.redhat.com/show_bug.cgi?id=2108305
This issue has been cloned at https://bugzilla.redhat.com/show_bug.cgi?id=2108306

Comment 11 ying xu 2022-08-04 01:07:18 UTC
reproduced on version:
# rpm -qa|grep ovn
ovn-2021-central-21.12.0-73.el8fdp.x86_64
ovn-2021-host-21.12.0-73.el8fdp.x86_64
ovn-2021-21.12.0-73.el8fdp.x86_64
 the reproducer is automated.

client:
:: [ 06:50:03 ] :: [  BEGIN   ] :: Running 'ovs-vsctl remove interface hv0_vm01_vnet1 external_ids iface-id'
:: [ 06:50:03 ] :: [   PASS   ] :: Command 'ovs-vsctl remove interface hv0_vm01_vnet1 external_ids iface-id' (Expected 0, got 0)

server:
:: [ 06:50:10 ] :: [  BEGIN   ] :: Running 'ovn-sbctl show |grep hv0_vm01_vnet1'
:: [ 06:50:10 ] :: [   PASS   ] :: Command 'ovn-sbctl show |grep hv0_vm01_vnet1' (Expected 1, got 1)
:: [ 06:50:10 ] :: [  BEGIN   ] :: Running 'ovn-sbctl --bare --column status find service_monitor ip=172.16.103.12|grep offline'
offline
:: [ 06:50:10 ] :: [   FAIL   ] :: Command 'ovn-sbctl --bare --column status find service_monitor ip=172.16.103.12|grep offline' (Expected 0, got 1)

verified on version:

# rpm -qa|grep ovn
ovn-2021-central-21.12.0-84.el8fdp.x86_64
ovn-2021-host-21.12.0-84.el8fdp.x86_64
ovn-2021-21.12.0-84.el8fdp.x86_64

:: [ 06:01:18 ] :: [  BEGIN   ] :: Running 'ovn-sbctl show |grep hv0_vm01_vnet1'
:: [ 06:01:18 ] :: [   PASS   ] :: Command 'ovn-sbctl show |grep hv0_vm01_vnet1' (Expected 1, got 1)
:: [ 06:01:18 ] :: [  BEGIN   ] :: Running 'ovn-sbctl --bare --column status find service_monitor ip=172.16.103.12|grep offline'
offline
:: [ 06:01:18 ] :: [   PASS   ] :: Command 'ovn-sbctl --bare --column status find service_monitor ip=172.16.103.12|grep offline' (Expected 0, got 0)

Comment 13 errata-xmlrpc 2022-09-06 20:58:34 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 (ovn-2021 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-2022:6369