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 2231218

Summary: Support binding remote ports in ovn-northd
Product: Red Hat Enterprise Linux Fast Datapath Reporter: OVN Bot <ovn-bot>
Component: ovn23.09Assignee: lorenzo bianconi <lorenzo.bianconi>
Status: CLOSED ERRATA QA Contact: Ehsan Elahi <eelahi>
Severity: high Docs Contact:
Priority: high    
Version: RHEL 9.0CC: ctrautma, dceara, jiji, jishi, lorenzo.bianconi, mmichels
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ovn23.09-23.09.0-alpha.112.el9fdp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-01-24 11:18:06 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-08-11 04:06:28 UTC
This is an automatically-generated clone of issue https://bugzilla.redhat.com/show_bug.cgi?id=2217930

Comment 3 Ehsan Elahi 2023-12-11 23:47:59 UTC
Verified on:
[root@dell-per740-81 bz_2228162]# rpm -qa | grep -E 'ovn|openvswitch'
openvswitch-selinux-extra-policy-1.0-34.el9fdp.noarch
openvswitch2.17-2.17.0-125.el9fdp.x86_64
ovn23.09-23.09.0-87.el9fdp.x86_64
ovn23.09-host-23.09.0-87.el9fdp.x86_64
ovn23.09-central-23.09.0-87.el9fdp.x86_64

########### Here is the reproducer

systemctl start ovn-northd
ovn-nbctl set-connection ptcp:6641
ovn-sbctl set-connection ptcp:6642
systemctl start openvswitch
ovs-vsctl set open . external_ids:system-id=hv1
ifconfig ens1f0 192.168.20.1 netmask 255.255.255.0
ovs-vsctl set open . external_ids:ovn-remote=tcp:192.168.20.1:6642
ovs-vsctl set open . external_ids:ovn-encap-type=geneve
ovs-vsctl set open . external_ids:ovn-encap-ip=192.168.20.1
ovs-vsctl set open . external_ids:ovn-monitor-all=true
systemctl start ovn-controller

ovn-sbctl chassis-add ch-remote geneve 127.0.0.1
ovn-sbctl set chassis ch-remote other_config:is-remote=true

ch_uuid=$(ovn-sbctl --bare --column _uuid find chassis name=ch-remote)

ovn-nbctl ls-add ls
ovn-nbctl lsp-add ls lsp-remote -- lsp-set-type lsp-remote remote
ovn-nbctl lsp-set-options lsp-remote requested-chassis=ch-remote
ovn-nbctl --wait=hv sync

# returns the chassis uuid
ovn-sbctl --bare --columns chassis find port_binding logical_port=lsp-remote|grep $ch_uuid
ovn-nbctl list Logical_Switch_Port |grep up|grep true
ovn-nbctl remove logical_switch_port lsp-remote options requested-chassis
ovn-nbctl list Logical_Switch_Port |grep up|grep false
ovn-sbctl --all destroy chassis

Comment 5 errata-xmlrpc 2024-01-24 11:18:06 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 (ovn23.09 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-2024:0392