-
Bug
-
Resolution: Obsolete
-
Undefined
-
None
-
OVN FDP 24.C
-
1
-
False
-
-
False
-
rhel-sst-network-fastdatapath
-
-
-
ssg_networking
-
Moderate
description:
it would take longer to show lsp in ovn-sbctl
version:
ovn23.09-23.09.0-103
reproducer:
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 ls-add sw0 ovn-nbctl lsp-add sw0 sw0-port1 ovn-nbctl lsp-set-addresses sw0-port1 "50:54:00:00:00:03 10.0.0.3 1000::3" ovn-nbctl lsp-add sw0 sw0-port2 ovn-nbctl lsp-set-addresses sw0-port2 "50:54:00:00:00:04 10.0.0.4 1000::4" ovn-nbctl ls-add sw1 ovn-nbctl lsp-add sw1 sw1-port1 ovn-nbctl lsp-set-addresses sw1-port1 "40:54:00:00:00:03 20.0.0.3 2000::3" ovn-nbctl lr-add lr0 ovn-nbctl lrp-add lr0 lr0-sw0 00:00:00:00:ff:01 10.0.0.1/24 1000::a/64 ovn-nbctl lsp-add sw0 sw0-lr0 ovn-nbctl lsp-set-type sw0-lr0 router ovn-nbctl lsp-set-addresses sw0-lr0 router ovn-nbctl lsp-set-options sw0-lr0 router-port=lr0-sw0 ovn-nbctl lrp-add lr0 lr0-sw1 00:00:00:00:ff:02 20.0.0.1/24 2000::a/64 ovn-nbctl lsp-add sw1 sw1-lr0 ovn-nbctl lsp-set-type sw1-lr0 router ovn-nbctl lsp-set-addresses sw1-lr0 router ovn-nbctl lsp-set-options sw1-lr0 router-port=lr0-sw1 ovn-nbctl ls-add public ovn-nbctl lsp-add public ln-public ovn-nbctl lsp-set-type ln-public localnet ovn-nbctl lsp-set-addresses ln-public unknown ovn-nbctl lsp-set-options ln-public network_name=public ovn-nbctl lrp-add lr0 lr0-public 00:11:22:00:ff:01 172.20.0.100/24 ovn-nbctl lsp-add public public-lr0 ovn-nbctl lsp-set-type public-lr0 router ovn-nbctl lsp-set-addresses public-lr0 router ovn-nbctl lsp-set-options public-lr0 router-port=lr0-public ovn-nbctl lrp-set-gateway-chassis lr0-public hv1 10 ovn-nbctl lr-route-add lr0 0.0.0.0/0 172.20.0.1 ovn-nbctl lr-nat-add lr0 snat 172.20.0.100 10.0.0.0/24 ovn-nbctl lr-nat-add lr0 snat 172.20.0.100 20.0.0.0/24 ovn-nbctl acl-add sw0 from-lport 1002 'ip4 || ip6' allow-related ovn-nbctl acl-add sw1 from-lport 1002 'ip4 || ip6' allow-related ovs-vsctl add-br br-ex ovs-vsctl set open . external-ids:ovn-bridge-mappings=public:br-ex ovs-vsctl add-port br-int sw0p1 -- set interface sw0p1 type=internal external_ids:iface-id=sw0-port1 ip netns add sw0p1 ip link set sw0p1 netns sw0p1 ip netns exec sw0p1 ip link set sw0p1 address 50:54:00:00:00:03 ip netns exec sw0p1 ip link set sw0p1 up ip netns exec sw0p1 ip addr add 10.0.0.3/24 dev sw0p1 ip netns exec sw0p1 ip route add default via 10.0.0.1 ip netns exec sw0p1 ip addr add 1000::3/64 dev sw0p1 ip netns exec sw0p1 ip -6 route add default via 1000::a i=0 while : do if ovn-sbctl show | grep sw0-port1 then break else let i++ sleep 1 fi done echo $i
actual result:
it would take 10s to show lsp in ovn-sbctl:
+ echo 10
10
[root@ibm-x3650m4-06-vm-08 bz2241711]# ovn-sbctl show
Chassis hv1
hostname: ibm-x3650m4-06-vm-08.rhts.eng.pek2.redhat.com
Encap geneve
ip: "127.0.0.1"
options: {csum="true"}
Port_Binding cr-lr0-public
Port_Binding sw0-port1
other information:
[root@ibm-x3650m4-06-vm-08 bz2241711]# rpm -qa | grep openvswitch
openvswitch-selinux-extra-policy-1.0-34.el9fdp.noarch
openvswitch3.2-3.2.0-39.el9fdp.x86_64
it would only take 1s for ovn23.03-4:
+ echo 1
1
[root@ibm-x3650m4-06-vm-08 bz2241711]# ovn-sbctl show
Chassis hv1
hostname: ibm-x3650m4-06-vm-08.rhts.eng.pek2.redhat.com
Encap geneve
ip: "127.0.0.1"
options: {csum="true"}
Port_Binding sw0-port1
Port_Binding cr-lr0-public
[root@ibm-x3650m4-06-vm-08 bz2241711]# rpm -qa | grep ovn
ovn23.03-23.03.0-4.el9fdp.x86_64
ovn23.03-central-23.03.0-4.el9fdp.x86_64
ovn23.03-host-23.03.0-4.el9fdp.x86_64
and it would take 5s for ovn22.12-22.12.1-75:
+ echo 5
5
[root@ibm-x3650m4-06-vm-08 bz2241711]# rpm -qa | grep ovn
ovn22.12-22.12.1-75.el9fdp.x86_64
ovn22.12-central-22.12.1-75.el9fdp.x86_64
ovn22.12-host-22.12.1-75.el9fdp.x86_64
- clones
-
FDP-357 it would take longer to show lsp in ovn-sbctl
- Verified