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 2162819

Summary: OVN is not respecting the ct zone request from ovnk
Product: Red Hat Enterprise Linux Fast Datapath Reporter: OVN Bot <ovn-bot>
Component: ovn22.09Assignee: Mark Michelson <mmichels>
Status: CLOSED UPSTREAM QA Contact: Jianlin Shi <jishi>
Severity: unspecified Docs Contact:
Priority: high    
Version: FDP 22.LCC: ctrautma, dceara, jiji, mmichels
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovn22.09-22.09.0-47.el9fdp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 04:01:44 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 2023-01-21 05:06:16 UTC
This is an automatically-generated clone of issue https://bugzilla.redhat.com/show_bug.cgi?id=2160403

Comment 4 Jianlin Shi 2023-02-14 03:22:51 UTC
reproduced on ovn22.09-22.09.0-32.el9:

[root@kvm-02-guest04 bz2160403]# rpm -qa | grep -E "ovn22.09|openvswitch3.0"
openvswitch3.0-3.0.0-30.el9fdp.x86_64
ovn22.09-22.09.0-32.el9fdp.x86_64
ovn22.09-central-22.09.0-32.el9fdp.x86_64
ovn22.09-host-22.09.0-32.el9fdp.x86_64

[root@kvm-02-guest04 bz2160403]# bash -x rep.sh 
+ 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:127.0.0.1:6642 external_ids:ovn-encap-type=geneve external_ids:ovn-encap-ip=127.0.0.1
+ systemctl restart ovn-controller
+ ovn-nbctl --wait=hv sync
+ sleep 2
+ ovn-sbctl list datapath_binding
+ ovn-nbctl lr-add lr0 -- set Logical_Router lr0 options:snat-ct-zone=666 -- lrp-add lr0 lrp-gw 01:00:00:00:00:01 172.16.0.1 -- lrp-set-gateway-chassis lrp-gw hv1
+ ovn-nbctl --wait=hv sync
+ sleep 2
++ awk '/_uuid/{print $3}'
++ ovn-sbctl find datapath_bind external_ids:name=lr0
+ lr_uuid=7290720a-f1a6-41f1-a6d1-a6fa64c27000
++ ovn-appctl -t ovn-controller ct-zone-list
+ ct_zones='7290720a-f1a6-41f1-a6d1-a6fa64c27000_dnat 1
7290720a-f1a6-41f1-a6d1-a6fa64c27000_snat 2'
++ cut -d ' ' -f 2
++ grep 7290720a-f1a6-41f1-a6d1-a6fa64c27000_snat
++ printf '7290720a-f1a6-41f1-a6d1-a6fa64c27000_dnat 1
7290720a-f1a6-41f1-a6d1-a6fa64c27000_snat 2'
+ zone_num=2
+ test 2 -eq 666
+ echo 1
1

Verified on ovn22.09-22.09.0-59.el9:
[root@kvm-02-guest04 bz2160403]# rpm -qa | grep -E "ovn22.09|openvswitch3.0"
openvswitch3.0-3.0.0-30.el9fdp.x86_64
ovn22.09-22.09.0-59.el9fdp.x86_64
ovn22.09-central-22.09.0-59.el9fdp.x86_64
ovn22.09-host-22.09.0-59.el9fdp.x86_64

+ ovn-nbctl --wait=hv sync
+ sleep 2
++ awk '/_uuid/{print $3}'
++ ovn-sbctl find datapath_bind external_ids:name=lr0
+ lr_uuid=78bb73c9-58e0-4faa-9d4f-90db8d636bdb
++ ovn-appctl -t ovn-controller ct-zone-list
+ ct_zones='78bb73c9-58e0-4faa-9d4f-90db8d636bdb_dnat 1
78bb73c9-58e0-4faa-9d4f-90db8d636bdb_snat 666'
++ cut -d ' ' -f 2
++ grep 78bb73c9-58e0-4faa-9d4f-90db8d636bdb_snat
++ printf '78bb73c9-58e0-4faa-9d4f-90db8d636bdb_dnat 1
78bb73c9-58e0-4faa-9d4f-90db8d636bdb_snat 666'
+ zone_num=666
+ test 666 -eq 666
+ echo 0
0

Comment 6 Red Hat Bugzilla 2025-02-10 04:01:44 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.