Bug 2126406
| Summary: | ovn-controller seems to have installed two ct-zones with same ID | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux Fast Datapath | Reporter: | Surya Seetharaman <surya> |
| Component: | ovn22.03 | 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: | ovn22.03-22.03.0-120.el8fdp | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-12-15 15:26: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: | |||
|
Comment 4
Mark Michelson
2022-10-20 19:04:23 UTC
Mitigation (and potential fix) posted here: https://patchwork.ozlabs.org/project/ovn/patch/20221021183759.4192249-1-mmichels@redhat.com/ As the message states, I couldn't find how it was possible with current OVN code for conflicting CT zones to be assigned like this. However, I have added measures that should fix a conflict if we load one from the OVSDB. I also have added measures to prevent zone zero from being assigned to a logical port. ovn22.03 fast-datapath-rhel-9 clone created at https://bugzilla.redhat.com/show_bug.cgi?id=2144933 ovn22.06 fast-datapath-rhel-8 clone created at https://bugzilla.redhat.com/show_bug.cgi?id=2144939 ovn22.06 fast-datapath-rhel-9 clone created at https://bugzilla.redhat.com/show_bug.cgi?id=2144940 ovn22.09 fast-datapath-rhel-8 clone created at https://bugzilla.redhat.com/show_bug.cgi?id=2144946 ovn22.09 fast-datapath-rhel-9 clone created at https://bugzilla.redhat.com/show_bug.cgi?id=2144947 tested with reproducer in https://bugzilla.redhat.com/show_bug.cgi?id=2144940#c3: reproduced on ovn22.03-22.03.0-118.el8: + 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 0 ec1d7f9b-0ee9-4da1-8c2e-d1147b940832_snat 1 ls0-hv1 0 31c0b51b-0d08-47c2-954a-6f8cc1423a45_dnat 5 ec1d7f9b-0ee9-4da1-8c2e-d1147b940832_dnat 4 31c0b51b-0d08-47c2-954a-6f8cc1423a45_snat 0 ls0-hv 0 <=== multiple zone=0 [root@dell-per750-18 bz2126406]# rpm -qa | grep -E "openvswitch2.17|ovn22.03" openvswitch2.17-2.17.0-65.el8fdp.x86_64 ovn22.03-22.03.0-118.el8fdp.x86_64 ovn22.03-host-22.03.0-118.el8fdp.x86_64 ovn22.03-central-22.03.0-118.el8fdp.x86_64 Verified on ovn22.03-22.03.0-125.el8: + 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 2 f9cc1f68-da6a-4d85-ae37-622ae005e4e8_snat 0 3eba066d-1d52-46f5-9914-232c83ebf01e_snat 1 ls0-hv1 3 3eba066d-1d52-46f5-9914-232c83ebf01e_dnat 5 ls0-hv 4 f9cc1f68-da6a-4d85-ae37-622ae005e4e8_dnat 6 <=== only one zone=0 [root@dell-per750-18 bz2126406]# rpm -qa | grep -E "openvswitch2.17|ovn22.03" ovn22.03-22.03.0-125.el8fdp.x86_64 openvswitch2.17-2.17.0-65.el8fdp.x86_64 ovn22.03-central-22.03.0-125.el8fdp.x86_64 ovn22.03-host-22.03.0-125.el8fdp.x86_64 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.03 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:9059 |