The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.
Bug 1826683 - ipv6_prefix can't be cleared even stop prefix delegation
Summary: ipv6_prefix can't be cleared even stop prefix delegation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux Fast Datapath
Classification: Red Hat
Component: ovn2.13
Version: FDP 20.D
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: lorenzo bianconi
QA Contact: Jianlin Shi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-22 10:28 UTC by Jianlin Shi
Modified: 2020-05-26 14:07 UTC (History)
3 users (show)

Fixed In Version: ovn2.13-2.13.0-26.el7fdn
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-26 14:07:18 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:35 UTC

Description Jianlin Shi 2020-04-22 10:28:12 UTC
Description of problem:
ipv6_prefix can't be cleared even stop prefix delegation

Version-Release number of selected component (if applicable):
ovn2.13.0-18

How reproducible:
Always

Steps to Reproduce:
1.setup:
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.25:6642 external_ids:ovn-encap-type=geneve external_ids:ovn-encap-ip=20.0.48.25
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

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


2. start dibbler: ip netns exec server0 dibbler-server run > dibbler.log &
3. confirm ipv6_prefix is generated
[root@dell-per740-42 ipv6_pd]# ovn-nbctl list logical_router_port lr1-ls1
_uuid               : 7a0c27d5-fde4-4291-abaa-9df36cbd6d64
enabled             : []                                              
external_ids        : {}                                     
gateway_chassis     : []     
ha_chassis_group    : []                                         
ipv6_prefix         : ["2001:1db8:3333::864c: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 ipv6_pd]# ovn-nbctl list logical_router_port lr1-ls2
_uuid               : 98649118-a0a5-45bf-9de4-c35c36a9a2f1
enabled             : []
external_ids        : {}
gateway_chassis     : []
ha_chassis_group    : []
ipv6_prefix         : ["2001:1db8:3333::241b:0:0/96"]
ipv6_ra_configs     : {}
mac                 : "00:00:00:00:00:02"
name                : lr1-ls2
networks            : ["172.16.1.2/24"]
options             : {prefix="true"}
peer                : []

4. stop prefix delegation:
[root@dell-per740-42 ipv6_pd]# ovn-nbctl set logical_router_port lr1-ls1 options:prefix=false
[root@dell-per740-42 ipv6_pd]# ovn-nbctl set logical_router_port lr1-ls1 options:prefix_delegation=false
[root@dell-per740-42 ipv6_pd]# ovn-nbctl set logical_router_port lr1-ls2 options:prefix=false
[root@dell-per740-42 ipv6_pd]# ovn-nbctl list logical_router_port lr1-ls2
_uuid               : 98649118-a0a5-45bf-9de4-c35c36a9a2f1
enabled             : []
external_ids        : {}
gateway_chassis     : []
ha_chassis_group    : []
ipv6_prefix         : ["2001:1db8:3333::241b:0:0/96"]
ipv6_ra_configs     : {}
mac                 : "00:00:00:00:00:02"
name                : lr1-ls2
networks            : ["172.16.1.2/24"]
options             : {prefix="false"}
peer                : []
[root@dell-per740-42 ipv6_pd]# ovn-nbctl list logical_router_port lr1-ls1
_uuid               : 7a0c27d5-fde4-4291-abaa-9df36cbd6d64
enabled             : []
external_ids        : {}
gateway_chassis     : []
ha_chassis_group    : []
ipv6_prefix         : ["2001:1db8:3333::864c:0:0/96"]
ipv6_ra_configs     : {}
mac                 : "00:00:00:00:00:01"
name                : lr1-ls1
networks            : ["172.16.1.1/24"]
options             : {prefix="false", prefix_delegation="false"}
peer                : []

5. clear ipv6_prefix:
[root@dell-per740-42 ipv6_pd]# ovn-nbctl clear logical_router_port lr1-ls2 ipv6_prefix
[root@dell-per740-42 ipv6_pd]# ovn-nbctl list logical_router_port lr1-ls2
_uuid               : 98649118-a0a5-45bf-9de4-c35c36a9a2f1
enabled             : []
external_ids        : {}
gateway_chassis     : []
ha_chassis_group    : []
ipv6_prefix         : ["2001:1db8:3333::241b:0:0/96"]
ipv6_ra_configs     : {}
mac                 : "00:00:00:00:00:02"
name                : lr1-ls2
networks            : ["172.16.1.2/24"]
options             : {prefix="false"}
peer                : []
[root@dell-per740-42 ipv6_pd]# ovn-nbctl clear logical_router_port lr1-ls1 ipv6_prefix
[root@dell-per740-42 ipv6_pd]# ovn-nbctl list logical_router_port lr1-ls1
_uuid               : 7a0c27d5-fde4-4291-abaa-9df36cbd6d64
enabled             : []
external_ids        : {}
gateway_chassis     : []
ha_chassis_group    : []
ipv6_prefix         : ["2001:1db8:3333::864c:0:0/96"]
ipv6_ra_configs     : {}
mac                 : "00:00:00:00:00:01"
name                : lr1-ls1
networks            : ["172.16.1.1/24"]
options             : {prefix="false", prefix_delegation="false"}
peer                : []

Actual results:
ipv6_prefix is not cleared

Expected results:
ipv6_prefix should be cleared

Additional info:

Comment 5 Jianlin Shi 2020-05-13 07:16:23 UTC
Verified on ovn2.13.0-30.el8:

[root@kvm-04-guest09 bz1826623]# ovn-nbctl list logical_router_port lr1-ls1
_uuid               : bfbd552f-6631-4813-92e6-6712f726d6a1
enabled             : []                                        
external_ids        : {}
gateway_chassis     : []                                                                
ha_chassis_group    : []                                                   
ipv6_prefix         : ["2001:1db8:3333:111::/80"]         
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@kvm-04-guest09 bz1826623]# ovn-nbctl set logical_router_port lr1-ls1 options:prefix=false
[root@kvm-04-guest09 bz1826623]# ovn-nbctl list logical_router_port lr1-ls1
_uuid               : bfbd552f-6631-4813-92e6-6712f726d6a1      
enabled             : []
external_ids        : {}                                                                      
gateway_chassis     : []                                                   
ha_chassis_group    : []                                  
ipv6_prefix         : ["2001:1db8:3333:111::/80"]
ipv6_ra_configs     : {}
mac                 : "00:00:00:00:00:01"
name                : lr1-ls1
networks            : ["172.16.1.1/24"]          
options             : {prefix="false", prefix_delegation="true"}
peer                : []                 
[root@kvm-04-guest09 bz1826623]# ovn-nbctl clear logical_router_port lr1-ls1 ipv6_prefix
[root@kvm-04-guest09 bz1826623]# ovn-nbctl list logical_router_port lr1-ls1
_uuid               : bfbd552f-6631-4813-92e6-6712f726d6a1     
enabled             : []
external_ids        : {}                                                                
gateway_chassis     : []                                                   
ha_chassis_group    : []                                  
ipv6_prefix         : []

<=== cleared

ipv6_ra_configs     : {}
mac                 : "00:00:00:00:00:01"
name                : lr1-ls1
networks            : ["172.16.1.1/24"]          
options             : {prefix="false", prefix_delegation="true"}
peer                : []

Comment 6 Jianlin Shi 2020-05-13 07:20:19 UTC
verified on ovn2.13.0-30.el7:

[root@hpe-dl380pgen8-02-vm-13 bz1826623]# ovn-nbctl list logical_router_port lr1-ls1
_uuid               : fb295d61-dd4d-45b0-be90-60ff361e061f
enabled             : []
external_ids        : {}
gateway_chassis     : []
ha_chassis_group    : []
ipv6_prefix         : ["2001:1db8:3333:110:d905::/80"]
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@hpe-dl380pgen8-02-vm-13 bz1826623]# ovn-nbctl set logical_router_port lr1-ls1 options:prefix=false
[root@hpe-dl380pgen8-02-vm-13 bz1826623]# ovn-nbctl list logical_router_port lr1-ls1
_uuid               : fb295d61-dd4d-45b0-be90-60ff361e061f
enabled             : []
external_ids        : {}
gateway_chassis     : []
ha_chassis_group    : []
ipv6_prefix         : ["2001:1db8:3333:110:d905::/80"]
ipv6_ra_configs     : {}
mac                 : "00:00:00:00:00:01"
name                : lr1-ls1
networks            : ["172.16.1.1/24"]
options             : {prefix="false", prefix_delegation="true"}
peer                : []
[root@hpe-dl380pgen8-02-vm-13 bz1826623]# ovn-nbctl clear logical_router_port lr1-ls1 ipv6_prefix
[root@hpe-dl380pgen8-02-vm-13 bz1826623]# ovn-nbctl list logical_router_port lr1-ls1
_uuid               : fb295d61-dd4d-45b0-be90-60ff361e061f
enabled             : []
external_ids        : {}
gateway_chassis     : []
ha_chassis_group    : []
ipv6_prefix         : []
ipv6_ra_configs     : {}
mac                 : "00:00:00:00:00:01"
name                : lr1-ls1
networks            : ["172.16.1.1/24"]
options             : {prefix="false", prefix_delegation="true"}
peer                : []

[root@hpe-dl380pgen8-02-vm-13 bz1826623]# rpm -qa | grep -E "openvswitch|ovn"
openvswitch2.13-2.13.0-17.el7fdp.x86_64
ovn2.13-2.13.0-30.el7fdp.x86_64
openvswitch-selinux-extra-policy-1.0-15.el7fdp.noarch
ovn2.13-central-2.13.0-30.el7fdp.x86_64
ovn2.13-host-2.13.0-30.el7fdp.x86_64

Comment 10 errata-xmlrpc 2020-05-26 14:07:18 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.