The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.
Bug 1827160 - [OVN][RFE] Support logical switches with multiple localnet ports
Summary: [OVN][RFE] Support logical switches with multiple localnet ports
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux Fast Datapath
Classification: Red Hat
Component: ovn2.13
Version: FDP 20.A
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Ihar Hrachyshka
QA Contact: ying xu
URL:
Whiteboard:
Depends On:
Blocks: 1797664
TreeView+ depends on / blocked
 
Reported: 2020-04-23 11:38 UTC by Maciej Józefczyk
Modified: 2021-05-12 05:30 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-16 16:01:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:3769 0 None None None 2020-09-16 16:01:39 UTC

Description Maciej Józefczyk 2020-04-23 11:38:07 UTC
In Neutron with OVN as a backend we would like to support Routed Provider Networks [1]. This effort is tracked in [2].

With OVS/OVN community we decided to add for multiple localnet ports within one Logical Switch - [3] [4].

This bugzilla is to track this effort in Core OVN.


[1] https://docs.openstack.org/ocata/networking-guide/config-routed-networks.html
[2] https://bugs.launchpad.net/neutron/+bug/1865889
[3] https://mail.openvswitch.org/pipermail/ovs-discuss/2020-March/049793.html
[4] https://mail.openvswitch.org/pipermail/ovs-discuss/2020-March/049876.html

Comment 2 Ihar Hrachyshka 2020-04-30 15:12:52 UTC
Final series: https://patchwork.ozlabs.org/project/openvswitch/list/?series=173328

Comment 3 Ihar Hrachyshka 2020-05-26 17:15:58 UTC
Patches merged in master that will be the base for the next OVN release:

https://github.com/ovn-org/ovn/commit/ba40effff1c59aa5ee3aa28fa5af627b6c045933
https://github.com/ovn-org/ovn/commit/939f863458d9a957c161984f6aa12807a2b09c65

Comment 7 Jianlin Shi 2020-09-03 09:02:32 UTC
tests with following topo:

hv1:  other1(1.1.1.1) -- out1 (172.16.1.2) -- ls public (localnet phys1) -- lr1 -- ls1 -- ls1p1 (192.169.1.1)
hv2:  other2(1.1.2.1) -- out2 (172.16.1.3) -- ls public (localnet phys2) -- lr1 -- ls2 -- ls2p1 (192.169.2.1)
hv3:  other3(1.1.3.1) -- out3 (172.16.1.4) -- ls public (localnet phys3) -- lr1 -- ls3 -- ls3p1 (192.169.3.1)
hv4:  other4(1.1.4.1) -- out4 (172.16.1.5) -- ls public (localnet phys4) -- lr1 -- ls4 -- ls4p1 (192.169.4.1)

hv1:

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:20.0.1.16:6642 external_ids:ovn-encap-type=geneve external_ids:ovn-encap-ip=20.0.1.16
systemctl restart ovn-controller                                    
                                        
ovs-vsctl add-br br-phys1                        
ovs-vsctl set open . external_ids:ovn-bridge-mappings=phys1:br-phys1
                                                     
ovn-nbctl lr-add lr1                              
ovn-nbctl lrp-add lr1 lr1-public 00:00:01:0f:01:01 172.16.1.1/24 1234::1/64
ovn-nbctl lrp-add lr1 lr1-ls1 00:00:01:0f:01:02 192.169.1.254/24 2011::a/64
ovn-nbctl lrp-add lr1 lr1-ls2 00:00:01:0f:01:03 192.169.2.254/24 2012::a/64
ovn-nbctl lrp-add lr1 lr1-ls3 00:00:01:0f:01:04 192.169.3.254/24 2013::a/64
ovn-nbctl lrp-add lr1 lr1-ls4 00:00:01:0f:01:05 192.169.4.254/24 2014::a/64
                                                                       
ovn-nbctl lrp-set-gateway-chassis lr1-public hv1                         
                                          
ovn-nbctl lr-route-add lr1 1.1.1.0/24 172.16.1.2                         
ovn-nbctl lr-route-add lr1 1.1.2.0/24 172.16.1.3      
ovn-nbctl lr-route-add lr1 1.1.3.0/24 172.16.1.4                         
ovn-nbctl lr-route-add lr1 1.1.4.0/24 172.16.1.5                   
                                                                    
ovn-nbctl ls-add ls1                                    
ovn-nbctl lsp-add ls1 ls1-lr1                         
ovn-nbctl lsp-set-type ls1-lr1 router                          
ovn-nbctl lsp-set-options ls1-lr1 router-port=lr1-ls1          
ovn-nbctl lsp-set-addresses ls1-lr1 router                                             
                                                                                       
ovn-nbctl ls-add ls2                                                                   
ovn-nbctl lsp-add ls2 ls2-lr1                                    
ovn-nbctl lsp-set-type ls2-lr1 router
ovn-nbctl lsp-set-options ls2-lr1 router-port=lr1-ls2
ovn-nbctl lsp-set-addresses ls2-lr1 router

ovn-nbctl ls-add ls3
ovn-nbctl lsp-add ls3 ls3-lr1
ovn-nbctl lsp-set-type ls3-lr1 router
ovn-nbctl lsp-set-options ls3-lr1 router-port=lr1-ls3
ovn-nbctl lsp-set-addresses ls3-lr1 router

ovn-nbctl ls-add ls4
ovn-nbctl lsp-add ls4 ls4-lr1
ovn-nbctl lsp-set-type ls4-lr1 router
ovn-nbctl lsp-set-options ls4-lr1 router-port=lr1-ls4
ovn-nbctl lsp-set-addresses ls4-lr1 router

ovn-nbctl ls-add public
ovn-nbctl lsp-add public ln_1
ovn-nbctl lsp-set-type ln_1 localnet
ovn-nbctl lsp-set-addresses ln_1 unknown
ovn-nbctl lsp-set-options ln_1 network_name=phys1

ovn-nbctl lsp-add public ln_2                           
ovn-nbctl lsp-set-type ln_2 localnet                  
ovn-nbctl lsp-set-addresses ln_2 unknown                       
ovn-nbctl lsp-set-options ln_2 network_name=phys2              
                                                                                       
ovn-nbctl lsp-add public ln_3                                                          
ovn-nbctl lsp-set-type ln_3 localnet                                                   
ovn-nbctl lsp-set-addresses ln_3 unknown                         
ovn-nbctl lsp-set-options ln_3 network_name=phys3        
                                                     
ovn-nbctl lsp-add public ln_4             
ovn-nbctl lsp-set-type ln_4 localnet                                
ovn-nbctl lsp-set-addresses ln_4 unknown
ovn-nbctl lsp-set-options ln_4 network_name=phys4
                                      
ovn-nbctl lsp-add public public-lr1                  
ovn-nbctl lsp-set-type public-lr1 router          
ovn-nbctl lsp-set-options public-lr1 router-port=lr1-public
ovn-nbctl lsp-set-addresses public-lr1 router              
                                                           
ovn-nbctl lsp-add ls1 ls1p1          
ovn-nbctl lsp-set-addresses ls1p1 "00:00:01:01:01:01 192.169.1.1 2011::1"
ovn-nbctl lsp-add ls2 ls2p1                                            
ovn-nbctl lsp-set-addresses ls2p1 "00:00:01:01:01:02 192.169.2.1 2012::1"
ovn-nbctl lsp-add ls3 ls3p1               
ovn-nbctl lsp-set-addresses ls3p1 "00:00:01:01:01:03 192.169.3.1 2013::1"
ovn-nbctl lsp-add ls4 ls4p1                           
ovn-nbctl lsp-set-addresses ls4p1 "00:00:01:01:01:04 192.169.4.1 2014::1"
                                                                   
ovs-vsctl add-port br-int ls1p1 -- set interface ls1p1 type=internal
ip netns add ls1p1                                      
ip link set ls1p1 netns ls1p1                         
ip netns exec ls1p1 ip link set ls1p1 address 00:00:01:01:01:01
ip netns exec ls1p1 ip link set ls1p1 up                       
ip netns exec ls1p1 ip addr add 192.169.1.1/24 dev ls1p1                               
ip netns exec ls1p1 ip route add default via 192.169.1.254 dev ls1p1                   
ip netns exec ls1p1 ip addr add 2010::1/64 dev ls1p1
ip netns exec ls1p1 ip -6 route add default via 2010::a dev ls1p1
ovs-vsctl set interface ls1p1 external-ids:iface-id=ls1p1


ovs-vsctl add-port br-phys1 out1 -- set interface out1 type=internal
ip netns add out1
ip link set out1 netns out1
ip netns exec out1 ip link set out1 up
ip netns exec out1 ip addr add 172.16.1.2/24 dev out1
ip netns exec out1 ip addr add 1234::2/64 dev out1

ip netns exec out1 sysctl -w net.ipv4.conf.all.forwarding=1
ip netns exec out1 sysctl -w net.ipv6.conf.all.forwarding=1

ip netns add other1                                  
ip link add other1 netns other1 type veth peer name other1_p netns out1
ip netns exec other1 ip link set other1 up
ip netns exec out1 ip link set other1_p up                 
ip netns exec other1 ip addr add 1.1.1.1/24 dev other1     
ip netns exec other1 ip addr add 1111::1/64 dev other1
ip netns exec other1 ip route add default via 1.1.1.254 dev other1
ip netns exec other1 ip -6 route add default via 1111::a dev other1    
                                          
ip netns exec out1 ip addr add 1.1.1.254/24 dev other1_p
ip netns exec out1 ip addr add 1111::a/64 dev other1_p
                                                      
ovn-nbctl lr-nat-add lr1 dnat_and_snat 172.16.1.100 192.169.1.1   
ovn-nbctl lr-nat-add lr1 dnat_and_snat 172.16.1.101 192.169.2.1 ls2p1 12:a1:c8:4a:45:01
ovn-nbctl lr-nat-add lr1 dnat_and_snat 172.16.1.102 192.169.3.1 ls3p1 12:a1:c8:4a:45:02
ovn-nbctl lr-nat-add lr1 dnat_and_snat 172.16.1.103 192.169.4.1 ls4p1 12:a1:c8:4a:45:03

hv2:

systemctl start openvswitch
ovs-vsctl set open . external_ids:system-id=hv2 external_ids:ovn-remote=tcp:20.0.1.16:6642 external_ids:ovn-encap-type=geneve external_ids:ovn-encap-ip=20.0.1.17
systemctl restart ovn-controller

ovs-vsctl add-port br-int ls2p1 -- set interface ls2p1 type=internal                                  
ip netns add ls2p1
ip link set ls2p1 netns ls2p1
ip netns exec ls2p1 ip link set ls2p1 address 00:00:01:01:01:02                                       
ip netns exec ls2p1 ip link set ls2p1 up
ip netns exec ls2p1 ip addr add 192.169.2.1/24 dev ls2p1                                              
ip netns exec ls2p1 ip addr add 2012::1/64 dev ls2p1
ip netns exec ls2p1 ip route add default via 192.169.2.254 dev ls2p1
ip netns exec ls2p1 ip -6 route add default via 2012::a dev ls2p1

ovs-vsctl set interface ls2p1 external-ids:iface-id=ls2p1                                             

ovs-vsctl add-br br-phys2
ovs-vsctl set open . external-ids:ovn-bridge-mappings=phys2:br-phys2

ovs-vsctl add-port br-phys2 out2 -- set interface out2 type=internal
ip netns add out2                                                                                     
ip link set out2 netns out2
ip netns exec out2 ip link set out2 up
ip netns exec out2 ip addr add 172.16.1.3/24 dev out2                                                 
ip netns exec out2 ip addr add 1234::3/64 dev out2                                                    
ip netns exec out2 sysctl -w net.ipv4.conf.all.forwarding=1
ip netns exec out2 sysctl -w net.ipv6.conf.all.forwarding=1                                           
                                                                                                      
ip netns add other2
ip link add other2 netns other2 type veth peer name other2_p netns out2                               
ip netns exec other2 ip link set other2 up                                                            
ip netns exec other2 ip addr add 1.1.2.1/24 dev other2                                                
ip netns exec other2 ip addr add 1112::1/64 dev other2
ip netns exec other2 ip route add default via 1.1.2.254 dev other2                                    
ip netns exec other2 ip -6 route add default via 1112::a dev other2                                   

ip netns exec out2 ip link set other2_p up
ip netns exec out2 ip addr add 1.1.2.254/24 dev other2_p                                              
ip netns exec out2 ip addr add 1112::a/64 dev other2_p

hv3:

systemctl start openvswitch                                                                           
ovs-vsctl set open . external_ids:system-id=hv3 external_ids:ovn-remote=tcp:20.0.1.16:6642 external_ids:ovn-encap-type=geneve external_ids:ovn-encap-ip=20.0.1.20
systemctl restart ovn-controller

ovs-vsctl add-port br-int ls3p1 -- set interface ls3p1 type=internal
ip netns add ls3p1
ip link set ls3p1 netns ls3p1
ip netns exec ls3p1 ip link set ls3p1 address 00:00:01:01:01:03
ip netns exec ls3p1 ip link set ls3p1 up                                                              
ip netns exec ls3p1 ip addr add 192.169.3.1/24 dev ls3p1                                              
ip netns exec ls3p1 ip addr add 2013::1/64 dev ls3p1
ip netns exec ls3p1 ip route add default via 192.169.3.254 dev ls3p1                                  
ip netns exec ls3p1 ip -6 route add default via 2013::a dev ls3p1

ovs-vsctl set interface ls3p1 external-ids:iface-id=ls3p1

ovs-vsctl add-br br-phys3
ovs-vsctl set open . external-ids:ovn-bridge-mappings=phys3:br-phys3

ovs-vsctl add-port br-phys3 out3 -- set interface out3 type=internal
ip netns add out3
ip link set out3 netns out3
ip netns exec out3 ip link set out3 up                                                                
ip netns exec out3 ip addr add 172.16.1.4/24 dev out3                                                 
ip netns exec out3 ip addr add 1234::4/64 dev out3
ip netns exec out3 sysctl -w net.ipv4.conf.all.forwarding=1                                           
ip netns exec out3 sysctl -w net.ipv6.conf.all.forwarding=1                                           

ip netns add other3                                                                                   
ip link add other3 netns other3 type veth peer name other3_p netns out3                               
ip netns exec other3 ip link set other3 up
ip netns exec other3 ip addr add 1.1.3.1/24 dev other3                                                
ip netns exec other3 ip addr add 1113::1/64 dev other3                                                
ip netns exec other3 ip route add default via 1.1.3.254 dev other3                                    
ip netns exec other3 ip -6 route add default via 1113::a dev other3

ip netns exec out3 ip link set other3_p up                                                            
ip netns exec out3 ip addr add 1.1.3.254/24 dev other3_p
ip netns exec out3 ip addr add 1113::a/64 dev other3_p

hv4:

systemctl start openvswitch
ovs-vsctl set open . external_ids:system-id=hv4 external_ids:ovn-remote=tcp:20.0.1.16:6642 external_ids:ovn-encap-type=geneve external_ids:ovn-encap-ip=20.0.1.21
systemctl restart ovn-controller 

ovs-vsctl add-port br-int ls4p1 -- set interface ls4p1 type=internal
ip netns add ls4p1
ip link set ls4p1 netns ls4p1
ip netns exec ls4p1 ip link set ls4p1 address 00:00:01:01:01:04
ip netns exec ls4p1 ip link set ls4p1 up
ip netns exec ls4p1 ip addr add 192.169.4.1/24 dev ls4p1
ip netns exec ls4p1 ip addr add 2014::1/64 dev ls4p1
ip netns exec ls4p1 ip route add default via 192.169.4.254 dev ls4p1
ip netns exec ls4p1 ip -6 route add default via 2014::a dev ls4p1

ovs-vsctl set interface ls4p1 external-ids:iface-id=ls4p1

ovs-vsctl add-br br-phys4
ovs-vsctl set open . external-ids:ovn-bridge-mappings=phys4:br-phys4

ovs-vsctl add-port br-phys4 out4 -- set interface out4 type=internal
ip netns add out4
ip link set out4 netns out4
ip netns exec out4 ip link set out4 up
ip netns exec out4 ip addr add 172.16.1.5/24 dev out4
ip netns exec out4 ip addr add 1234::5/64 dev out4
ip netns exec out4 sysctl -w net.ipv4.conf.all.forwarding=1
ip netns exec out4 sysctl -w net.ipv6.conf.all.forwarding=1

ip netns add other4
ip link add other4 netns other4 type veth peer name other4_p netns out4
ip netns exec other4 ip link set other4 up
ip netns exec other4 ip addr add 1.1.4.1/24 dev other4                                                
ip netns exec other4 ip addr add 1114::1/64 dev other4
ip netns exec other4 ip route add default via 1.1.4.254 dev other4
ip netns exec other4 ip -6 route add default via 1114::a dev other4                                   

ip netns exec out4 ip link set other4_p up
ip netns exec out4 ip addr add 1.1.4.254/24 dev other4_p
ip netns exec out4 ip addr add 1114::a/64 dev other4_p

[root@wsfd-advnetlab16 bz1827160]# ip netns exec ls1p1 ping 1.1.1.1 -c 1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.                                                          
64 bytes from 1.1.1.1: icmp_seq=1 ttl=62 time=3.16 ms

--- 1.1.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 3.162/3.162/3.162/0.000 ms
[root@wsfd-advnetlab17 bz1827160]# ip netns exec ls2p1 ping 1.1.2.1 -c 1                              
PING 1.1.2.1 (1.1.2.1) 56(84) bytes of data.
64 bytes from 1.1.2.1: icmp_seq=1 ttl=62 time=4.48 ms                                                 

--- 1.1.2.1 ping statistics ---                                                                       
1 packets transmitted, 1 received, 0% packet loss, time 0ms                                           
rtt min/avg/max/mdev = 4.476/4.476/4.476/0.000 ms 
[root@wsfd-advnetlab20 bz1827160]# ip netns exec ls3p1 ping 1.1.3.1 -c 1                              
PING 1.1.3.1 (1.1.3.1) 56(84) bytes of data.
64 bytes from 1.1.3.1: icmp_seq=1 ttl=62 time=2.91 ms                                                 

--- 1.1.3.1 ping statistics ---                                                                       
1 packets transmitted, 1 received, 0% packet loss, time 0ms                                           
rtt min/avg/max/mdev = 2.912/2.912/2.912/0.000 ms 
[root@wsfd-advnetlab21 bz1827160]# ip netns exec ls4p1 ping 1.1.4.1 -c 1                              
PING 1.1.4.1 (1.1.4.1) 56(84) bytes of data.
64 bytes from 1.1.4.1: icmp_seq=1 ttl=62 time=2.66 ms                                                 

--- 1.1.4.1 ping statistics ---                                                                       
1 packets transmitted, 1 received, 0% packet loss, time 0ms                                           
rtt min/avg/max/mdev = 2.664/2.664/2.664/0.000 ms

[root@wsfd-advnetlab16 bz1827160]# rpm -qa | grep -E "openvswitch|ovn"
ovn2.13-host-20.06.2-3.el8fdp.x86_64                                                                  
kernel-kernel-networking-openvswitch-ovn-common-1.0-7.noarch                                          
openvswitch-selinux-extra-policy-1.0-23.el8fdp.noarch
ovn2.13-20.06.2-3.el8fdp.x86_64
kernel-kernel-networking-openvswitch-ovn-regression-bz1846300_ipv6_ignore_gateway_mtu-1.0-2.noarch    
openvswitch2.13-2.13.0-58.el8fdp.x86_64
python3-openvswitch2.13-2.13.0-58.el8fdp.x86_64
ovn2.13-central-20.06.2-3.el8fdp.x86_64


and on the older version ovn2.13.0-39, ERR in ovn-controller.log:

2020-09-03T08:50:13.435Z|00019|patch|ERR|bridge not found for localnet port 'ln_4' with network name 'phys4'
2020-09-03T08:50:28.417Z|00020|patch|ERR|Dropped 197 log messages in last 15 seconds (most recently, 5 seconds ago) due to excessive rate
2020-09-03T08:50:28.417Z|00021|patch|ERR|bridge not found for localnet port 'ln_4' with network name 'phys4'

Comment 8 Jianlin Shi 2020-09-03 09:09:42 UTC
another topo:

hv1:                                                                         hv3:

vm1(192.168.1.1) --- ls public -- br-phys1 -- ens1f1.10  ----           ---   ens1f1.20  --  br-phys2 -- ls public -- vm2(192.168.2.1)
                                    |                                                            |
                                   out1(192.168.1.2)        |           |                      out3(192.168.2.2)

                                                            |           |  hv4:
hv2:
                ls public -- br-phys1  -- ens1f1.10    ---  |           | ---  ens1f1.20  -- br-phys2 --- ls public
                                             |                                                 |

                                          out2(192.168.1.3)                                  out4(192.168.2.3)

hv1:

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:20.0.1.16:6642 external_ids:ovn-encap-type=geneve external_ids:ovn-encap-ip=20.0.1.16
systemctl restart ovn-controller                                                                      
                                                                                                      
ovn-nbctl ls-add public                                                                               
ovn-nbctl lsp-add public vm1                                                                          
ovn-nbctl lsp-set-addresses vm1 "00:00:00:01:01:01 192.168.1.1 2001::1"                               
ovn-nbctl lsp-add public vm2                                                                          
ovn-nbctl lsp-set-addresses vm2 "00:00:00:01:02:01 192.168.2.1 2002::1"                               
                                                                                                      
ovn-nbctl lsp-add public ln_1                                                                         
ovn-nbctl lsp-set-type ln_1 localnet                                                                  
ovn-nbctl lsp-set-options ln_1 network_name=phys1                                                     
ovn-nbctl lsp-set-addresses ln_1 unknown                                                              
                                                                                                      
ovn-nbctl lsp-add public ln_2                                                                         
ovn-nbctl lsp-set-type ln_2 localnet                                                                  
ovn-nbctl lsp-set-options ln_2 network_name=phys2                                                     
ovn-nbctl lsp-set-addresses ln_2 unknown                                                              
                                                                                                      
ovs-vsctl add-br br-phys1                                                                             
ovs-vsctl set open . external_ids:ovn-bridge-mappings=phys1:br-phys1                                  
                                                                                                      
ovs-vsctl add-port br-int vm1 -- set interface vm1 type=internal                                      
ip netns add vm1                                                                                      
ip link set vm1 netns vm1
ip netns exec vm1 ip link set vm1 address 00:00:00:01:01:01                                           
ip netns exec vm1 ip link set vm1 up                                                                  
ip netns exec vm1 ip addr add 192.168.1.1/24 dev vm1                                                  
ip netns exec vm1 ip addr add 2001::1/64 dev vm1                                                      
ovs-vsctl set interface vm1 external_ids:iface-id=vm1                                                 

ip link add link ens1f1 name ens1f1.10 type vlan id 10
ip link set ens1f1.10 up                                                                              
ovs-vsctl add-port br-phys1 ens1f1.10

ovs-vsctl add-port br-phys1 out1 -- set interface out1 type=internal                                  
ip netns add out1
ip link set out1 netns out1
ip netns exec out1 ip link set out1 up
ip netns exec out1 ip addr add 192.168.1.2/24 dev out1                                                
ip netns exec out1 ip addr add 2001::2/25 dev out1

hv2:

systemctl start openvswitch                                                                           
ovs-vsctl set open . external_ids:system-id=hv2 external_ids:ovn-remote=tcp:20.0.1.16:6642 external_ids:ovn-encap-type=geneve external_ids:ovn-encap-ip=20.0.1.17
systemctl restart ovn-controller                                                                      
                                                                                                      
ovs-vsctl add-br br-phys1                                                                             
ovs-vsctl set open . external_ids:ovn-bridge-mappings=phys:br-phys1                                   
                                                                                                      
ip link add link ens1f1 name ens1f1.10 type vlan id 10                                                
ip link set ens1f1.10 up                                                                              
ovs-vsctl add-port br-phys1 ens1f1.10                                                                 
                                                                                                      
ovs-vsctl add-port br-phys1 out2 -- set interface out2 type=internal                                  
ip netns add out2                                                                                     
ip link set out2 netns out2                                                                           
ip netns exec out2 ip link set out2 up                                                                
ip netns exec out2 ip addr add 192.168.1.3/24 dev out2                                                
ip netns exec out2 ip addr add 2001::3/64 dev out2

hv3:

systemctl start openvswitch                                                                           
ovs-vsctl set open . external_ids:system-id=hv3 external_ids:ovn-remote=tcp:20.0.1.16:6642 external_ids:ovn-encap-type=geneve external_ids:ovn-encap-ip=20.0.1.20
systemctl restart ovn-controller                                                                      
                                                                                                      
ovs-vsctl add-br br-phys2                                                                             
ovs-vsctl set open . external_ids:ovn-bridge-mappings=phys2:br-phys2                                  
                                                                                                      
ovs-vsctl add-port br-int vm2 -- set interface vm2 type=internal                                      
ip netns add vm2                                                                                      
ip link set vm2 netns vm2                                                                             
ip netns exec vm2 ip link set vm2 address 00:00:00:01:02:01                                           
ip netns exec vm2 ip link set vm2 up                                                                  
ip netns exec vm2 ip addr add 192.168.2.1/24 dev vm2                                                  
ip netns exec vm2 ip addr add 2002::1/64 dev vm2                                                      
                                                                                                      
ovs-vsctl set interface vm2 external_ids:iface-id=vm2                                                 
                                                                                                      
ip link add link ens1f1 name ens1f1.20 type vlan id 20                                                
ip link set ens1f1.20 up                                                                              
ovs-vsctl add-port br-phys2 ens1f1.20                                                                 
                                                                                                      
ovs-vsctl add-port br-phys2 out3 -- set interface out3 type=internal                                  
ip netns add out3                                                                                     
ip link set out3 netns out3                                                                           
ip netns exec out3 ip link set out3 up                                                                
ip netns exec out3 ip addr add 192.168.2.2/24 dev out3                                                
ip netns exec out3 ip addr add 2002::2/64 dev out3

hv4:

systemctl start openvswitch                                                                           
ovs-vsctl set open . external_ids:system-id=hv4 external_ids:ovn-remote=tcp:20.0.1.16:6642 external_ids:ovn-encap-type=geneve external_ids:ovn-encap-ip=20.0.1.21
systemctl restart ovn-controller                                                                      
                                                                                                      
ovs-vsctl add-br br-phys2                                                                             
ovs-vsctl set open . external_ids:ovn-bridge-mappings=phys2:br-phys2                                  
                                                                                                      
ip link add link ens1f1 name ens1f1.20 type vlan id 20                                                
ip link set ens1f1.20 up                                                                              
ovs-vsctl add-port br-phys2 ens1f1.20                                                                 
                                                                                                      
ovs-vsctl add-port br-phys2 out4 -- set interface out4 type=internal                                  
ip netns add out4                                                                                     
ip link set out4 netns out4                                                                           
ip netns exec out4 ip link set out4 up                                                                
ip netns exec out4 ip addr add 192.168.2.3/24 dev out4                                                
ip netns exec out4 ip addr add 2002::3/64 dev out4 

[root@wsfd-advnetlab16 bz1827160]# ip netns exec vm1 ping 192.168.1.3 -c 1
PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data.
64 bytes from 192.168.1.3: icmp_seq=1 ttl=64 time=1.03 ms
                                                                                                      
--- 192.168.1.3 ping statistics ---                                                                   
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.028/1.028/1.028/0.000 ms                                                     
[root@wsfd-advnetlab16 bz1827160]# ip netns exec vm1 ping 192.168.1.2 -c 1
PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.
64 bytes from 192.168.1.2: icmp_seq=1 ttl=64 time=0.651 ms
                                                                                                      
--- 192.168.1.2 ping statistics ---                                                                   
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.651/0.651/0.651/0.000 ms                                                     
[root@wsfd-advnetlab16 bz1827160]# ip netns exec vm1 ping6 2001::2 -c 1
PING 2001::2(2001::2) 56 data bytes                                                                   
64 bytes from 2001::2: icmp_seq=1 ttl=64 time=1.25 ms
                                                                                                      
--- 2001::2 ping statistics ---                                                                       
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.251/1.251/1.251/0.000 ms                                                     
[root@wsfd-advnetlab16 bz1827160]# ip netns exec vm1 ping6 2001::3 -c 1
PING 2001::3(2001::3) 56 data bytes                                                                   
64 bytes from 2001::3: icmp_seq=1 ttl=64 time=2.09 ms
                                                                                                      
--- 2001::3 ping statistics ---                                                                       
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 2.094/2.094/2.094/0.000 ms

[root@wsfd-advnetlab20 bz1827160]# ip netns exec vm2 ping 192.168.2.2 -c 1                            
PING 192.168.2.2 (192.168.2.2) 56(84) bytes of data.
64 bytes from 192.168.2.2: icmp_seq=1 ttl=64 time=0.672 ms

--- 192.168.2.2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms                                           
rtt min/avg/max/mdev = 0.672/0.672/0.672/0.000 ms                                                     
[root@wsfd-advnetlab20 bz1827160]# ip netns exec vm2 ping 192.168.2.3 -c 1
PING 192.168.2.3 (192.168.2.3) 56(84) bytes of data.                                                  
64 bytes from 192.168.2.3: icmp_seq=1 ttl=64 time=2.27 ms

--- 192.168.2.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms                                           
rtt min/avg/max/mdev = 2.273/2.273/2.273/0.000 ms                                                     
[root@wsfd-advnetlab20 bz1827160]# ip netns exec vm2 ping6 2002::2 -c 1
PING 2002::2(2002::2) 56 data bytes
64 bytes from 2002::2: icmp_seq=1 ttl=64 time=0.695 ms

--- 2002::2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms                                           
rtt min/avg/max/mdev = 0.695/0.695/0.695/0.000 ms                                                     
[root@wsfd-advnetlab20 bz1827160]# ip netns exec vm2 ping6 2002::3 -c 1
PING 2002::3(2002::3) 56 data bytes
64 bytes from 2002::3: icmp_seq=1 ttl=64 time=2.24 ms

--- 2002::3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms                                           
rtt min/avg/max/mdev = 2.235/2.235/2.235/0.000 ms

Comment 10 errata-xmlrpc 2020-09-16 16:01:23 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 (ovn2.13 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-2020:3769


Note You need to log in before you can comment on or make changes to this bug.