Bug 1827084

Summary: ipv6 prefix delegation solicit would still be sent even set logical router port as enabled=false
Product: Red Hat Enterprise Linux Fast Datapath Reporter: Jianlin Shi <jishi>
Component: ovn2.13Assignee: lorenzo bianconi <lorenzo.bianconi>
Status: CLOSED ERRATA QA Contact: Jianlin Shi <jishi>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: FDP 20.DCC: ctrautma, jishi, ralongi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovn2.13-2.13.0-26.el7fdn Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-26 14:07:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jianlin Shi 2020-04-23 08:41:39 UTC
Description of problem:
ipv6 prefix delegation solicit would still be sent even set logical router port as enabled=false

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

How reproducible:
Always

Steps to Reproduce:
1. setup as described in https://bugzilla.redhat.com/show_bug.cgi?id=1826683#c0
2. set enabled=false for lr1-ls1: ovn-nbctl set logical_router_port lr1-ls1 enabled=false
3. check solicit packet on veth0_s0: ip netns exec server0 tcpdump -i veth0_s0 -nnle -v

Actual results:
still can get solicit packet sent by lr1-ls1

Expected results:
solicit won't be sent

Additional info:

Comment 4 Jianlin Shi 2020-05-13 07:26:17 UTC
Verified on ovn2.13.0-30.el8:

[root@kvm-04-guest09 bz1826623]# rpm -qa | grep -E "openvswitch|ovn"
ovn2.13-2.13.0-30.el8fdp.x86_64
openvswitch-selinux-extra-policy-1.0-23.el8fdp.noarch
ovn2.13-central-2.13.0-30.el8fdp.x86_64
openvswitch2.13-2.13.0-18.el8fdp.x86_64
ovn2.13-host-2.13.0-30.el8fdp.x86_64

[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 enabled=false
[root@kvm-04-guest09 bz1826623]# ovn-nbctl list logical_router_port lr1-ls1
_uuid               : bfbd552f-6631-4813-92e6-6712f726d6a1
enabled             : false
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]# sleep 3m

no solicit sent after sleep 3m when set enabled=false

Comment 5 Jianlin Shi 2020-05-13 07:32:59 UTC
also Verified on ovn2.13.0-30.el7:

[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

[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 enabled=false
[root@hpe-dl380pgen8-02-vm-13 bz1826623]# sleep 3m

<=== set enabled=false, sleep 3m, no solicit sent

Comment 9 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