The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.
Bug 1823226 - RFE: OVN - Support IPv6 Prefix Delegation
Summary: RFE: OVN - Support IPv6 Prefix Delegation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux Fast Datapath
Classification: Red Hat
Component: ovn2.13
Version: RHEL 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: lorenzo bianconi
QA Contact: Jianlin Shi
URL:
Whiteboard:
Depends On: 1666677
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-12 21:32 UTC by lorenzo bianconi
Modified: 2020-05-26 14:07 UTC (History)
13 users (show)

Fixed In Version: ovn2.13-2.13.0-15.el7
Doc Type: Enhancement
Doc Text:
Clone Of: 1666677
Environment:
Last Closed: 2020-05-26 14:07:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:2317 0 None None None 2020-05-26 14:07:38 UTC

Comment 3 Jianlin Shi 2020-04-28 08:51:09 UTC
verified with following script:

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.48.26:6642 external_ids:ovn-encap-type=geneve external_ids:ovn-encap-ip=20.0.48.26
systemctl restart ovn-controller
ovn-nbctl ls-add ls1                 
                           
ovn-nbctl lr-add lr1                                                  
ovn-nbctl lrp-add lr1 lr1-ls1 00:00:00:00:00:01 172.16.1.1/24
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 lsp-add ls1 lnls1
ovn-nbctl lsp-set-options lnls1 network_name=provider
ovn-nbctl lsp-set-type lnls1 localnet       
ovn-nbctl lsp-set-addresses lnls1 unknown
                                                                        
ovn-nbctl set logical_router lr1 options:chassis=hv1         
                                                              
ovn-nbctl lrp-add lr1 lr1-ls2 00:00:00:00:00:02 172.16.1.2/24
ovn-nbctl lrp-add lr1 lr1-ls3 00:00:00:00:00:03 172.16.1.3/24
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    
                           
ovs-vsctl add-br br-test
ip link set br-test up
ovs-vsctl set open . external-ids:ovn-bridge-mappings=provider:br-test

ip netns add server0
ip link add veth0_s0 netns server0 type veth peer name veth0_s0_p
ip netns exec server0 ip link set veth0_s0 up
ip netns exec server0 ip addr add 2001:1db8:3333::2/64 dev veth0_s0
ovs-vsctl add-port br-test veth0_s0_p
ip link set veth0_s0_p up

ip addr add 2001:1db8:3333::1/64 dev br-test

ovn-nbctl set logical_router_port lr1-ls1 options:prefix_delegation=true
ovn-nbctl set logical_router_port lr1-ls1 options:prefix=true
#ovn-nbctl set logical_router_port lr1-ls2 options:prefix=true
sleep 5

sed s/^iface.*/"iface \"veth0_s0\" {"/g -i /etc/dibbler/server.conf
sed s/pd-pool.*/"pd-pool 2001:1db8:3333::\/80"/g -i /etc/dibbler/server.conf
sed s/t1.*/"t1 10"/g -i /etc/dibbler/server.conf 
sed s/t2.*/"t2 15"/g -i /etc/dibbler/server.conf 
cat > /var/lib/dibbler/server-AddrMgr.xml <<EOF
<AddrMgr>
  <timestamp>1575481348</timestamp>
  <replayDetection>0</replayDetection>
</AddrMgr>
EOF
cat > /var/lib/dibbler/server-CfgMgr.xml <<EOF
<SrvCfgMgr>
  <workDir>/var/lib/dibbler</workDir>
  <LogName>Server</LogName>
  <LogLevel>8</LogLevel>
  <InactiveMode>0</InactiveMode>
  <GuessMode>0</GuessMode>
</SrvCfgMgr>
EOF

ip netns exec server0 dibbler-server run > dibbler.log &
sleep 10 

ovn-nbctl list logical_router_port lr1-ls1

ipv6_prefix is generated on ovn2.13.0-18.el8:

+ ovn-nbctl list logical_router_port lr1-ls1
_uuid               : c0ba1af9-babb-43a8-aeb3-291b8e6d2603
enabled             : []                                              
external_ids        : {}                                     
gateway_chassis     : []     
ha_chassis_group    : []                                         
ipv6_prefix         : ["2001:1db8:3333::a080:0:0/96"]

<=== generated

ipv6_ra_configs     : {}                                           
mac                 : "00:00:00:00:00:01"
name                : lr1-ls1
networks            : ["172.16.1.1/24"]              
options             : {prefix="true", prefix_delegation="true"}
peer                : []                 
+ exit 0                                                                
[root@hp-dl380pg8-13 test]# rpm -qa | grep -E "openvswitch|ovn"
ovn2.13-central-2.13.0-18.el8fdp.x86_64                       
openvswitch-selinux-extra-policy-1.0-23.el8fdp.noarch        
ovn2.13-host-2.13.0-18.el8fdp.x86_64                         
python3-openvswitch2.13-2.13.0-18.el8fdp.x86_64                    
openvswitch2.13-2.13.0-18.el8fdp.x86_64                                     
kernel-kernel-networking-openvswitch-ovn-common-1.0-7.noarch
kernel-kernel-networking-openvswitch-ovn_ha-1.0-55.noarch
ovn2.13-2.13.0-18.el8fdp.x86_64

Comment 4 Jianlin Shi 2020-04-28 09:01:40 UTC
verified on rhel7 version:

+ ovn-nbctl list logical_router_port lr1-ls1
_uuid               : 20e4324a-cbec-4385-91bc-2c0dcf38fdfd
enabled             : []
external_ids        : {}
gateway_chassis     : []
ha_chassis_group    : []
ipv6_prefix         : ["2001:1db8:3333::a1d:0:0/96"]
ipv6_ra_configs     : {}
mac                 : "00:00:00:00:00:01"
name                : lr1-ls1
networks            : ["172.16.1.1/24"]
options             : {prefix="true", prefix_delegation="true"}
peer                : []

[root@dell-per740-42 test]# rpm -qa | grep -E "openvswitch|ovn"
openvswitch2.13-2.13.0-17.el7fdp.x86_64
openvswitch-selinux-extra-policy-1.0-15.el7fdp.noarch
ovn2.13-2.13.0-18.el7fdp.x86_64                                                                       
ovn2.13-host-2.13.0-18.el7fdp.x86_64                                                                  
kernel-kernel-networking-openvswitch-ovn-common-1.0-7.noarch                                          
ovn2.13-central-2.13.0-18.el7fdp.x86_64

Comment 7 errata-xmlrpc 2020-05-26 14:07:17 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, 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:2317


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