Bug 2208736

Summary: Localnet port traffic is not load balanced on the localnet switch.
Product: Red Hat Enterprise Linux Fast Datapath Reporter: OVN Bot <ovn-bot>
Component: ovn22.03Assignee: Mark Michelson <mmichels>
Status: VERIFIED --- QA Contact: ying xu <yinxu>
Severity: unspecified Docs Contact:
Priority: high    
Version: FDP 23.ACC: ctrautma, jiji, jishi, mmichels
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovn22.03-22.03.0-197.el9fdp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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-05-20 04:10:13 UTC
This is an automatically-generated clone of issue https://bugzilla.redhat.com/show_bug.cgi?id=2164652

Comment 3 ying xu 2023-07-17 07:59:37 UTC
verified on version:
# rpm -qa|grep ovn22
ovn22.03-22.03.0-218.el9fdp.x86_64
ovn22.03-central-22.03.0-218.el9fdp.x86_64
ovn22.03-host-22.03.0-218.el9fdp.x86_64

:: [ 03:55:55 ] :: [  BEGIN   ] :: Running 'systemctl start openvswitch'
:: [ 03:55:55 ] :: [   PASS   ] :: Command 'systemctl start openvswitch' (Expected 0, got 0)
:: [ 03:55:55 ] :: [  BEGIN   ] :: Running 'systemctl start ovn-northd'
:: [ 03:55:56 ] :: [   PASS   ] :: Command 'systemctl start ovn-northd' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running 'ovn-nbctl set-connection ptcp:6641'
:: [ 03:55:56 ] :: [   PASS   ] :: Command 'ovn-nbctl set-connection ptcp:6641' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running 'ovn-sbctl set-connection ptcp:6642'
:: [ 03:55:56 ] :: [   PASS   ] :: Command 'ovn-sbctl set-connection ptcp:6642' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running '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'
:: [ 03:55:56 ] :: [   PASS   ] :: Command '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' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running 'systemctl restart ovn-controller'
:: [ 03:55:56 ] :: [   PASS   ] :: Command 'systemctl restart ovn-controller' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running '	ovn-nbctl lr-add rtr'
:: [ 03:55:56 ] :: [   PASS   ] :: Command '	ovn-nbctl lr-add rtr' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running '	ovn-nbctl lrp-add rtr rtr-ls-pub 00:00:00:00:01:00 41.41.41.1/24'
:: [ 03:55:56 ] :: [   PASS   ] :: Command '	ovn-nbctl lrp-add rtr rtr-ls-pub 00:00:00:00:01:00 41.41.41.1/24' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running '	ovn-nbctl lrp-add rtr rtr-ls-priv 00:00:00:00:02:00 42.42.42.1/24'
:: [ 03:55:56 ] :: [   PASS   ] :: Command '	ovn-nbctl lrp-add rtr rtr-ls-priv 00:00:00:00:02:00 42.42.42.1/24' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running '	ovn-nbctl ls-add ls-pub'
:: [ 03:55:56 ] :: [   PASS   ] :: Command '	ovn-nbctl ls-add ls-pub' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running '	ovn-nbctl ls-add ls-priv'
:: [ 03:55:56 ] :: [   PASS   ] :: Command '	ovn-nbctl ls-add ls-priv' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running '	ovn-nbctl lsp-add ls-pub ln'
:: [ 03:55:56 ] :: [   PASS   ] :: Command '	ovn-nbctl lsp-add ls-pub ln' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running '	ovn-nbctl lsp-set-type ln localnet'
:: [ 03:55:56 ] :: [   PASS   ] :: Command '	ovn-nbctl lsp-set-type ln localnet' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running '	ovn-nbctl lsp-set-addresses ln unknown'
:: [ 03:55:56 ] :: [   PASS   ] :: Command '	ovn-nbctl lsp-set-addresses ln unknown' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running '	ovn-nbctl lsp-set-options ln network_name=phys'
:: [ 03:55:56 ] :: [   PASS   ] :: Command '	ovn-nbctl lsp-set-options ln network_name=phys' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running '	ovs-vsctl set open . external-ids:ovn-bridge-mappings=phys:br-phys'
:: [ 03:55:56 ] :: [   PASS   ] :: Command '	ovs-vsctl set open . external-ids:ovn-bridge-mappings=phys:br-phys' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running '	ovs-vsctl add-br br-phys'
:: [ 03:55:56 ] :: [   PASS   ] :: Command '	ovs-vsctl add-br br-phys' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running '	ip a a dev br-phys 41.41.41.2/24'
:: [ 03:55:56 ] :: [   PASS   ] :: Command '	ip a a dev br-phys 41.41.41.2/24' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running '	ip link set dev br-phys up'
:: [ 03:55:56 ] :: [   PASS   ] :: Command '	ip link set dev br-phys up' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running '	ovn-nbctl lsp-add ls-pub ls-pub-rtr'
:: [ 03:55:56 ] :: [   PASS   ] :: Command '	ovn-nbctl lsp-add ls-pub ls-pub-rtr' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running '	ovn-nbctl lsp-set-addresses ls-pub-rtr 00:00:00:00:01:00'
:: [ 03:55:56 ] :: [   PASS   ] :: Command '	ovn-nbctl lsp-set-addresses ls-pub-rtr 00:00:00:00:01:00' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running '	ovn-nbctl lsp-set-type ls-pub-rtr router'
:: [ 03:55:56 ] :: [   PASS   ] :: Command '	ovn-nbctl lsp-set-type ls-pub-rtr router' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running '	ovn-nbctl lsp-set-options ls-pub-rtr router-port=rtr-ls-pub'
:: [ 03:55:56 ] :: [   PASS   ] :: Command '	ovn-nbctl lsp-set-options ls-pub-rtr router-port=rtr-ls-pub' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running '	ovn-nbctl lsp-add ls-priv ls-priv-rtr'
:: [ 03:55:56 ] :: [   PASS   ] :: Command '	ovn-nbctl lsp-add ls-priv ls-priv-rtr' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running '	ovn-nbctl lsp-set-addresses ls-priv-rtr 00:00:00:00:02:00'
:: [ 03:55:56 ] :: [   PASS   ] :: Command '	ovn-nbctl lsp-set-addresses ls-priv-rtr 00:00:00:00:02:00' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running '	ovn-nbctl lsp-set-type ls-priv-rtr router'
:: [ 03:55:56 ] :: [   PASS   ] :: Command '	ovn-nbctl lsp-set-type ls-priv-rtr router' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running '	ovn-nbctl lsp-set-options ls-priv-rtr router-port=rtr-ls-priv'
:: [ 03:55:56 ] :: [   PASS   ] :: Command '	ovn-nbctl lsp-set-options ls-priv-rtr router-port=rtr-ls-priv' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running '	ovn-nbctl lsp-add ls-priv vm1'
:: [ 03:55:56 ] :: [   PASS   ] :: Command '	ovn-nbctl lsp-add ls-priv vm1' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running '	ovn-nbctl lsp-set-addresses vm1 00:00:00:00:00:01'
:: [ 03:55:56 ] :: [   PASS   ] :: Command '	ovn-nbctl lsp-set-addresses vm1 00:00:00:00:00:01' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running '	ip netns add vm1'
:: [ 03:55:56 ] :: [   PASS   ] :: Command '	ip netns add vm1' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running '	ovs-vsctl add-port br-int vm1 -- set interface vm1 type=internal'
:: [ 03:55:56 ] :: [   PASS   ] :: Command '	ovs-vsctl add-port br-int vm1 -- set interface vm1 type=internal' (Expected 0, got 0)
:: [ 03:55:56 ] :: [  BEGIN   ] :: Running '	ip link set vm1 netns vm1'
:: [ 03:55:57 ] :: [   PASS   ] :: Command '	ip link set vm1 netns vm1' (Expected 0, got 0)
:: [ 03:55:57 ] :: [  BEGIN   ] :: Running '	ip netns exec vm1 ip link set vm1 address 00:00:00:00:00:01'
:: [ 03:55:57 ] :: [   PASS   ] :: Command '	ip netns exec vm1 ip link set vm1 address 00:00:00:00:00:01' (Expected 0, got 0)
:: [ 03:55:57 ] :: [  BEGIN   ] :: Running '	ip netns exec vm1 ip addr add 42.42.42.2/24 dev vm1'
:: [ 03:55:57 ] :: [   PASS   ] :: Command '	ip netns exec vm1 ip addr add 42.42.42.2/24 dev vm1' (Expected 0, got 0)
:: [ 03:55:57 ] :: [  BEGIN   ] :: Running '	ip netns exec vm1 ip link set vm1 up'
:: [ 03:55:57 ] :: [   PASS   ] :: Command '	ip netns exec vm1 ip link set vm1 up' (Expected 0, got 0)
:: [ 03:55:57 ] :: [  BEGIN   ] :: Running '	ip netns exec vm1 ip r a default via 42.42.42.1'
:: [ 03:55:57 ] :: [   PASS   ] :: Command '	ip netns exec vm1 ip r a default via 42.42.42.1' (Expected 0, got 0)
:: [ 03:55:57 ] :: [  BEGIN   ] :: Running '	ovs-vsctl set Interface vm1 external_ids:iface-id=vm1'
:: [ 03:55:57 ] :: [   PASS   ] :: Command '	ovs-vsctl set Interface vm1 external_ids:iface-id=vm1' (Expected 0, got 0)
:: [ 03:55:57 ] :: [  BEGIN   ] :: Running '	ovn-nbctl lb-add lb-test 66.66.66.66:666 42.42.42.2:4242 tcp'
:: [ 03:55:57 ] :: [   PASS   ] :: Command '	ovn-nbctl lb-add lb-test 66.66.66.66:666 42.42.42.2:4242 tcp' (Expected 0, got 0)
:: [ 03:55:57 ] :: [  BEGIN   ] :: Running '	ovn-nbctl ls-lb-add ls-pub lb-test'
:: [ 03:55:57 ] :: [   PASS   ] :: Command '	ovn-nbctl ls-lb-add ls-pub lb-test' (Expected 0, got 0)
:: [ 03:55:57 ] :: [  BEGIN   ] :: Running '	ip r a 66.66.66.66 via 41.41.41.1'
:: [ 03:55:57 ] :: [   PASS   ] :: Command '	ip r a 66.66.66.66 via 41.41.41.1' (Expected 0, got 0)
:: [ 03:55:57 ] :: [  BEGIN   ] :: Running '	ip r a 42.42.42.0/24 via 41.41.41.1'
:: [ 03:55:57 ] :: [   PASS   ] :: Command '	ip r a 42.42.42.0/24 via 41.41.41.1' (Expected 0, got 0)
:: [ 03:55:57 ] :: [  BEGIN   ] :: Running 'ip netns exec vm1 nc -v -k -l 42.42.42.2 4242&'
Ncat: Version 7.91 ( https://nmap.org/ncat )
Ncat: Listening on 42.42.42.2:4242
:: [ 03:55:57 ] :: [   PASS   ] :: Command 'ip netns exec vm1 nc -v -k -l 42.42.42.2 4242&' (Expected 0, got 0)
:: [ 03:55:57 ] :: [  BEGIN   ] :: Running 'nc -v -z 66.66.66.66 666'
Ncat: Version 7.91 ( https://nmap.org/ncat )
Ncat: Connected to 66.66.66.66:666.
Ncat: 0 bytes sent, 0 bytes received in 0.08 seconds.
Ncat: Connection from 41.41.41.2.
Ncat: Connection from 41.41.41.2:36092.
:: [ 03:55:57 ] :: [   PASS   ] :: Command 'nc -v -z 66.66.66.66 666' (Expected 0, got 0)


set verified.