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 2130757

Summary: Metadata LSP port, northd warning about "Unknown chassis '' set as options:requested-chassis"
Product: Red Hat Enterprise Linux Fast Datapath Reporter: OVN Bot <ovn-bot>
Component: ovn22.03Assignee: Ales Musil <amusil>
Status: CLOSED ERRATA QA Contact: Ehsan Elahi <eelahi>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: FDP 22.ACC: amusil, ctrautma, ihrachys, jiji, jishi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovn22.03-22.03.0-101.el8fdp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-03 00:30:13 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-09-29 04:04:58 UTC
This is an automatically-generated clone of issue https://bugzilla.redhat.com/show_bug.cgi?id=2126400

Comment 4 Ehsan Elahi 2022-10-18 11:33:30 UTC
Verified on:

[root@wsfd-advnetlab155 ~]# rpm -qa | grep -E 'ovn|openvswitch'
openvswitch-selinux-extra-policy-1.0-29.el8fdp.noarch
openvswitch2.17-2.17.0-58.el8fdp.x86_64
ovn22.03-22.03.0-106.el8fdp.x86_64
ovn22.03-central-22.03.0-106.el8fdp.x86_64
ovn22.03-host-22.03.0-106.el8fdp.x86_64

Also Verified on:

[root@wsfd-advnetlab155 ~]# rpm -qa | grep -E 'ovn|openvswitch'
openvswitch-selinux-extra-policy-1.0-29.el8fdp.noarch
openvswitch2.17-2.17.0-58.el8fdp.x86_64
ovn22.06-22.06.0-64.el8fdp.x86_64
ovn22.06-host-22.06.0-64.el8fdp.x86_64
ovn22.06-central-22.06.0-64.el8fdp.x86_64

Here is the reproducer: 

############# Chassis HV0 ##########

systemctl start ovn-northd
systemctl start openvswitch
ovs-vsctl set open . external_ids:system-id=hv0
ovs-vsctl set open . external_ids:ovn-remote=tcp:172.16.1.1:6642
ovs-vsctl set open . external_ids:ovn-encap-type=geneve
ovs-vsctl set open . external_ids:ovn-encap-ip=172.16.1.2
systemctl start ovn-controller

ip netns add vm2
ip link add vm2 type veth peer name vm2_p
ip link set vm2 netns vm2
ip netns exec vm2 ip link set lo up
ip netns exec vm2 ip link set vm2 up
ip netns exec vm2 ip link set vm2 address 00:00:00:02:00:02
ip netns exec vm2 ip addr add 172.16.1.2/24 dev vm2
ip netns exec vm2 ip -6 addr add 3001::2/64 dev vm2
ovs-vsctl add-port br-int vm2_p
ip link set vm2_p up
ovs-vsctl set interface vm2_p external_ids:iface-id=ls1p2


############# Chassis HV1 ##########

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
ovs-vsctl set open . external_ids:ovn-remote=tcp:172.16.1.1:6642
ovs-vsctl set open . external_ids:ovn-encap-type=geneve
ovs-vsctl set open . external_ids:ovn-encap-ip=172.16.1.1
systemctl start ovn-controller

ovn-nbctl ls-add ls1
ovn-nbctl lsp-add ls1 ls1p1
ovn-nbctl lsp-set-addresses ls1p1 "00:00:00:01:00:02 172.16.1.1 3001::1"
ovn-nbctl lsp-add ls1 ls1p2
ovn-nbctl lsp-set-addresses ls1p2 "00:00:00:02:00:02 172.16.1.2 3001::2"

ip netns add vm1
ip link add vm1 type veth peer name vm1_p
ip link set vm1 netns vm1
ip netns exec vm1 ip link set lo up
ip netns exec vm1 ip link set vm1 up
ip netns exec vm1 ip link set vm1 address 00:00:00:01:00:02
ip netns exec vm1 ip addr add 172.16.1.1/24 dev vm1
ip netns exec vm1 ip -6 addr add 3001::1/64 dev vm1
ovs-vsctl add-port br-int vm1_p
ip link set vm1_p up
ovs-vsctl set interface vm1_p external_ids:iface-id=ls1p1

ip netns exec vm1 ping 172.16.1.2 -c3 # Ping successful 

ovn-nbctl lsp-set-options ls1p2 requested-chassis=hv1

ip netns exec vm1 ping 172.16.1.2 -c3 # ping failed

ovn-nbctl lsp-set-options ls1p2 requested-chassis=hv0 
ip netns exec vm1 ping 172.16.1.2 -c3 # Ping successful

ovn-nbctl lsp-set-options ls1p2 requested-chassis=""
ip netns exec vm1 ping 172.16.1.2 -c3 # Ping successful

Comment 6 errata-xmlrpc 2022-11-03 00:30:13 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 (ovn22.03), 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:7393