Bug 2144940
| Summary: | ovn-controller seems to have installed two ct-zones with same ID | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux Fast Datapath | Reporter: | OVN Bot <ovn-bot> |
| Component: | ovn22.06 | Assignee: | Mark Michelson <mmichels> |
| Status: | CLOSED ERRATA | QA Contact: | Jianlin Shi <jishi> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | FDP 22.L | CC: | amusil, ctrautma, gparente, jiji, mmichels, palonsor |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-12-15 17:46:18 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-11-22 19:29:33 UTC
tested with following script: systemctl start openvswitch systemctl start ovn-northd ovn-nbctl set-connection ptcp:6641 ovn-sbctl set-connection ptcp:6642 ovs-vsctl set open . external_ids:system-id=hv1 external_ids:ovn-remote=tcp:20.0.6.25:6642 external_ids:ovn-encap-type=geneve external_ids:ovn-encap-ip=20.0.6.25 systemctl restart ovn-controller ovs-vsctl add-port br-int ls0-hv -- set Interface ls0-hv type=internal external-ids:iface-id=ls0-hv ovs-vsctl add-port br-int ls0-hv1 -- set Interface ls0-hv1 type=internal external-ids:iface-id=ls0-hv1 ovs-vsctl add-port br-int ls0-hv2 -- set Interface ls0-hv2 type=internal external-ids:iface-id=ls0-hv2 ovs-vsctl set open . external_ids:ovn-monitor-all=true ovn-nbctl lr-add lr0 ovn-nbctl ls-add ls0 ovn-nbctl lsp-add ls0 ls0-lr0 ovn-nbctl lsp-set-type ls0-lr0 router ovn-nbctl lsp-set-addresses ls0-lr0 router ovn-nbctl lrp-add lr0 lr0-ls0 00:00:00:00:00:01 10.0.0.1 ovn-nbctl lsp-add ls0 ls0-hv ovn-nbctl lsp-set-addresses ls0-hv "00:00:00:00:00:02 10.0.0.2" ovn-nbctl lsp-add ls0 ls0-hv1 ovn-nbctl lsp-set-addresses ls0-hv1 "00:00:00:00:00:03 10.0.0.3" ovn-nbctl lsp-add ls0 ls0-hv2 ovn-nbctl lsp-set-addresses ls0-hv2 "00:00:00:00:00:04 10.0.0.4" ovn-nbctl ls-add ext ovn-nbctl lsp-add ext ext-lr0 ovn-nbctl lsp-set-type ext-lr0 router ovn-nbctl lsp-set-addresses ext-lr0 router ovn-nbctl lrp-add lr0 lr0-ext 00:00:00:00:01:01 20.0.0.1 ovn-nbctl lrp-set-gateway-chassis lr0-ext hv1 ovn-nbctl lr-nat-add lr0 snat 172.16.0.2 10.0.0.0/24 ovn-nbctl lr-nat-add lr0 dnat 172.16.0.2 10.0.0.2 ovn-nbctl --wait=hv set logical_router lr0 options:snat-ct-zone=0 ovn-appctl -t ovn-controller exit --restart ovs-vsctl set bridge br-int external_ids:ct-zone-ls0-hv="0" ovs-vsctl set bridge br-int external_ids:ct-zone-ls0-hv1="0" ovs-vsctl set bridge br-int external_ids:ct-zone-ls0-hv2="0" systemctl start ovn-controller ovn-nbctl --wait=hv sync sleep 2 ovn-appctl ct-zone-list reproduced on ovn22.06-22.06.0-75.el9: + ovs-vsctl set bridge br-int external_ids:ct-zone-ls0-hv=0 + ovs-vsctl set bridge br-int external_ids:ct-zone-ls0-hv1=0 + ovs-vsctl set bridge br-int external_ids:ct-zone-ls0-hv2=0 + systemctl start ovn-controller + ovn-nbctl --wait=hv sync + sleep 2 + ovn-appctl ct-zone-list 9a0ea315-c424-44d1-9390-e04efe8bbfc0_dnat 2 31710c60-86c6-4536-9833-944df02609c5_snat 0 9a0ea315-c424-44d1-9390-e04efe8bbfc0_snat 1 ls0-hv1 0 ls0-hv2 0 ls0-hv 0 31710c60-86c6-4536-9833-944df02609c5_dnat 6 <=== multiple zones have zone=0 Verified on ovn22.06-22.06.0-82.el9: [root@dell-per730-20 bz2126406]# rpm -qa | grep -E "ovn22.06|openvswitch2.17" openvswitch2.17-2.17.0-57.el9fdp.x86_64 ovn22.06-22.06.0-82.el9fdp.x86_64 ovn22.06-central-22.06.0-82.el9fdp.x86_64 ovn22.06-host-22.06.0-82.el9fdp.x86_64 + ovn-nbctl --wait=hv set logical_router lr0 options:snat-ct-zone=0 + ovn-appctl -t ovn-controller exit --restart + ovs-vsctl set bridge br-int external_ids:ct-zone-ls0-hv=0 + ovs-vsctl set bridge br-int external_ids:ct-zone-ls0-hv1=0 + ovs-vsctl set bridge br-int external_ids:ct-zone-ls0-hv2=0 + systemctl start ovn-controller + ovn-nbctl --wait=hv sync + sleep 2 + ovn-appctl ct-zone-list ls0-hv2 3 ls0-hv1 2 fafe0049-47a2-4343-bed3-4d0e7aefd3f6_dnat 1 ls0-hv 5 fafe0049-47a2-4343-bed3-4d0e7aefd3f6_snat 4 0b9de069-2262-44e0-ba37-7d395d21d247_dnat 6 0b9de069-2262-44e0-ba37-7d395d21d247_snat 0 <== only one zone have zone=0 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:9062 |