Bug 2014444
| Summary: | ipv6 prefix is not generated when prefix_delegation is true | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux Fast Datapath | Reporter: | Jianlin Shi <jishi> |
| Component: | ovn-2021 | Assignee: | lorenzo bianconi <lorenzo.bianconi> |
| Status: | CLOSED ERRATA | QA Contact: | Jianlin Shi <jishi> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | FDP 21.I | CC: | ctrautma, jiji, kfida, lorenzo.bianconi, mmichels |
| Target Milestone: | --- | ||
| Target Release: | FDP 21.I | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ovn-2021-21.09.0-11.el8fdp | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-12-09 15:37:29 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: | |||
Lorenzo posted this patch that should fix this issue: https://patchwork.ozlabs.org/project/ovn/patch/866dfb4e485a76a66503f05e82927bf721c9a455.1633704067.git.lorenzo.bianconi@redhat.com/ Can you please try the the following version? ovn2.13-20.12.0-185.el8fdp (In reply to lorenzo bianconi from comment #2) > Can you please try the the following version? ovn2.13-20.12.0-185.el8fdp it works on ovn2.13-20.12.0-185.el8: + ip netns exec server0 dibbler-server run + ovn-nbctl list logical_router_port lr1-ls1 _uuid : 884fb481-ee6e-4ae8-ab87-ca14a8451174 enabled : [] external_ids : {} gateway_chassis : [] ha_chassis_group : [] ipv6_prefix : ["2001:1db8:3333::1ab2: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-12 bz1823226]# rpm -qa | grep -E "openvswitch2.16|ovn2.13" ovn2.13-20.12.0-185.el8fdp.x86_64 ovn2.13-central-20.12.0-185.el8fdp.x86_64 openvswitch2.16-2.16.0-16.el8fdp.x86_64 openvswitch2.16-test-2.16.0-16.el8fdp.noarch ovn2.13-host-20.12.0-185.el8fdp.x86_64 python3-openvswitch2.16-2.16.0-16.el8fdp.x86_64 (In reply to lorenzo bianconi from comment #2) > Can you please try the the following version? ovn2.13-20.12.0-185.el8fdp the issue doesn't happen on ovn2.13. only occur on ovn-2021. when will ovn-2021 be fixed? (In reply to Jianlin Shi from comment #4) > (In reply to lorenzo bianconi from comment #2) > > Can you please try the the following version? ovn2.13-20.12.0-185.el8fdp > > the issue doesn't happen on ovn2.13. only occur on ovn-2021. > when will ovn-2021 be fixed? Can you please try the following version? ovn-2021-21.09.0-11.el8fdp (In reply to lorenzo bianconi from comment #5) > (In reply to Jianlin Shi from comment #4) > > (In reply to lorenzo bianconi from comment #2) > > > Can you please try the the following version? ovn2.13-20.12.0-185.el8fdp > > > > the issue doesn't happen on ovn2.13. only occur on ovn-2021. > > when will ovn-2021 be fixed? > > Can you please try the following version? ovn-2021-21.09.0-11.el8fdp the issue disappear on ovn-2021-21.09.0-11.el8: + ovn-nbctl list logical_router_port lr1-ls1 _uuid : 9a191a4c-2875-4c41-9bf3-22df0d8514c0 enabled : [] external_ids : {} gateway_chassis : [] ha_chassis_group : [] ipv6_prefix : ["2001:1db8:3333::1ab2: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-12 bz1823226]# rpm -qa | grep ovn-2021 ovn-2021-central-21.09.0-11.el8fdp.x86_64 ovn-2021-21.09.0-11.el8fdp.x86_64 ovn-2021-host-21.09.0-11.el8fdp.x86_64 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 (ovn 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-2021:5059 |
Description of problem: ipv6 prefix is not generated with prefix_delegation is true Version-Release number of selected component (if applicable): ovn-2021-21.09.0-10.el8 How reproducible: Always Steps to Reproduce: 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:127.0.0.1:6642 external_ids:ovn-encap-type=geneve external_ids:ovn-encap-ip=127.0.0.1 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 Actual results: ipv6_prefix is null Expected results: ipv6_prefix should be generated Additional info: [root@dell-per740-12 bz1823226]# rpm -qa | grep -E "openvswitch2.16|ovn-2021" ovn-2021-21.09.0-10.el8fdp.x86_64 ovn-2021-host-21.09.0-10.el8fdp.x86_64 openvswitch2.16-2.16.0-16.el8fdp.x86_64 openvswitch2.16-test-2.16.0-16.el8fdp.noarch ovn-2021-central-21.09.0-10.el8fdp.x86_64 python3-openvswitch2.16-2.16.0-16.el8fdp.x86_64 + ovn-nbctl list logical_router_port lr1-ls1 _uuid : f41357e7-d5bb-48c7-a80f-66c8bdaf94e4 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="true", prefix_delegation="true"} peer : [] <=== ipv6_prefix is not generated it seems that ipv6 solicit it not sent by ovn the issue didn't occur on ovn-2021-21.06.0-29.el8: [root@dell-per730-20 bz1823226]# rpm -qa | grep -E "openvswitch2.16|ovn-2021" openvswitch2.16-test-2.16.0-16.el8fdp.noarch ovn-2021-21.06.0-29.el8fdp.x86_64 openvswitch2.16-2.16.0-16.el8fdp.x86_64 ovn-2021-central-21.06.0-29.el8fdp.x86_64 python3-openvswitch2.16-2.16.0-16.el8fdp.x86_64 ovn-2021-host-21.06.0-29.el8fdp.x86_64 + ovn-nbctl list logical_router_port lr1-ls1 _uuid : 3eb2738c-085f-4a30-afa5-b26422d115b5 enabled : [] external_ids : {} gateway_chassis : [] ha_chassis_group : [] ipv6_prefix : ["2001:1db8:3333::7e23: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 : [] <== ipv6_prefix is generated. reproducer is related to https://bugzilla.redhat.com/show_bug.cgi?id=1823226