Bug 2105630
| 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: | OVN Bot <ovn-bot> |
| Component: | ovn22.06 | Assignee: | OVN Team <ovnteam> |
| Status: | CLOSED ERRATA | QA Contact: | ying xu <yinxu> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | medium | ||
| Version: | FDP 21.K | CC: | ctrautma, jiji, jishi, mmichels, odivlad |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ovn22.06-22.06.0-17.el9fdp | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-08-01 15:56:56 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: | |||
|
Description
OVN Bot
2022-07-09 04:06:18 UTC
This issue is fixed in ovn22.06-22.06.0-17.el9fdp reproduced
# ovn-sbctl list service_monitor
_uuid : a278829c-1a7a-453b-9afe-917e10569f99
external_ids : {}
ip : "172.16.103.11"
logical_port : hv0_vm00_vnet1
options : {failure_count="3", interval="5", success_count="3", timeout="20"}
port : 80
protocol : tcp
src_ip : "172.16.103.2"
src_mac : "1a:a4:ef:48:ac:ff"
status : online
_uuid : a3a76125-6b6f-4aa9-a7a3-888a1c1cc0cc
external_ids : {}
ip : "172.16.103.12"
logical_port : hv0_vm01_vnet1
options : {failure_count="3", interval="5", success_count="3", timeout="20"}
port : 80
protocol : tcp
src_ip : "172.16.103.2"
src_mac : "1a:a4:ef:48:ac:ff"
status : online
# ovn-sbctl show
Chassis hv1
hostname: dell-per730-19.rhts.eng.pek2.redhat.com
Encap geneve
ip: "20.0.10.25"
options: {csum="true"}
Port_Binding r1_s2
Port_Binding hv1_vm01_vnet1
Port_Binding hv1_vm00_vnet1
Port_Binding r1_s3
Port_Binding s2_r1
Port_Binding s3_r1
Chassis hv0
hostname: dell-per730-57.rhts.eng.pek2.redhat.com
Encap geneve
ip: "20.0.10.26"
options: {csum="true"}
Port_Binding hv0_vm00_vnet1
Port_Binding hv0_vm01_vnet1
remove 172.16.103.12
ovs-vsctl remove interface hv0_vm01_vnet1 external_ids iface-id
# ovn-sbctl show
Chassis hv1
hostname: dell-per730-19.rhts.eng.pek2.redhat.com
Encap geneve
ip: "20.0.10.25"
options: {csum="true"}
Port_Binding r1_s2
Port_Binding hv1_vm01_vnet1
Port_Binding hv1_vm00_vnet1
Port_Binding r1_s3
Port_Binding s2_r1
Port_Binding s3_r1
Chassis hv0
hostname: dell-per730-57.rhts.eng.pek2.redhat.com
Encap geneve
ip: "20.0.10.26"
options: {csum="true"}
Port_Binding hv0_vm00_vnet1 ----------------------------no hv0_vm01_vnet1 port binding
# ovn-sbctl --bare --column status find service_monitor ip=172.16.103.12|grep online --------but also online
online
# ovs-ofctl dump-groups br-int | grep 172.16.103.12
group_id=3,type=select,selection_method=hash,fields(ip_src,ip_dst,tcp_src,tcp_dst),bucket=bucket_id:0,weight:100,actions=ct(commit,table=15,zone=NXM_NX_REG11[0..15],nat(dst=172.16.103.11),exec(load:0x1->NXM_NX_CT_MARK[1])),bucket=bucket_id:1,weight:100,actions=ct(commit,table=15,zone=NXM_NX_REG11[0..15],nat(dst=172.16.103.12),exec(load:0x1->NXM_NX_CT_MARK[1]))
group_id=2,type=select,selection_method=hash,fields(ip_src,ip_dst,tcp_src,tcp_dst),bucket=bucket_id:0,weight:100,actions=ct(commit,table=15,zone=NXM_NX_REG11[0..15],nat(dst=172.16.103.11:80),exec(load:0x1->NXM_NX_CT_MARK[1])),bucket=bucket_id:1,weight:100,actions=ct(commit,table=15,zone=NXM_NX_REG11[0..15],nat(dst=172.16.103.12:80),exec(load:0x1->NXM_NX_CT_MARK[1]))
verified on version:
# rpm -qa|grep ovn
ovn22.06-22.06.0-24.el9fdp.x86_64
ovn22.06-central-22.06.0-24.el9fdp.x86_64
ovn22.06-host-22.06.0-24.el9fdp.x86_64
# ovn-sbctl list service_monitor
_uuid : 650fbf58-566b-470e-b436-f313f20d1a6f
external_ids : {}
ip : "172.16.103.11"
logical_port : hv0_vm00_vnet1
options : {failure_count="3", interval="5", success_count="3", timeout="20"}
port : 80
protocol : tcp
src_ip : "172.16.103.2"
src_mac : "0a:bf:2e:52:2e:60"
status : online
_uuid : 5c629137-f4b4-4f39-b793-feab9c46f3d2
external_ids : {}
ip : "172.16.103.12"
logical_port : hv0_vm01_vnet1
options : {failure_count="3", interval="5", success_count="3", timeout="20"}
port : 80
protocol : tcp
src_ip : "172.16.103.2"
src_mac : "0a:bf:2e:52:2e:60"
status : offline --------------------------status is offline now
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 (ovn22.06 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:5797 |