The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.
Bug 1679386 - [ovn]configure the static ipv4 and ipv6 together cause port not able to get dynamic mac address
Summary: [ovn]configure the static ipv4 and ipv6 together cause port not able to get d...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux Fast Datapath
Classification: Red Hat
Component: ovn2.11
Version: FDP 19.C
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: lorenzo bianconi
QA Contact: haidong li
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-21 03:48 UTC by haidong li
Modified: 2020-01-14 20:04 UTC (History)
10 users (show)

Fixed In Version: ovn2.11-2.11.0-10.el7fdn
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-05 14:58:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:1385 0 None None None 2019-06-05 14:58:18 UTC

Description haidong li 2019-02-21 03:48:18 UTC
Description of problem:
configure the static ipv4 and ipv6 together cause port not able to get dynamic mac address

Version-Release number of selected component (if applicable):
[root@dell-per730-19 ~]# uname -a
Linux dell-per730-19.rhts.eng.pek2.redhat.com 3.10.0-957.el7.x86_64 #1 SMP Thu Oct 4 20:48:51 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@dell-per730-19 ~]# rpm -qa  | grep openvswitch
kernel-kernel-networking-openvswitch-ovs_qinq_dpdk-1.3-35.noarch
openvswitch-ovn-common-2.9.0-95.el7fdp.x86_64
openvswitch-selinux-extra-policy-1.0-10.el7fdp.noarch
openvswitch-2.9.0-95.el7fdp.x86_64
openvswitch-ovn-central-2.9.0-95.el7fdp.x86_64
openvswitch-ovn-host-2.9.0-95.el7fdp.x86_64
[root@dell-per730-19 ~]# 

How reproducible:
every time

Steps to Reproduce:
configured both other_config:subnet and other_config:ipv6_prefix,at the first time the dynamic address is not assigned.
But once I change to set dynamic mac and ipv4 static ip only,the address can be assigned:

[root@dell-per730-57 ~]# ovn-nbctl clear Logical-Switch s2 other_config
[root@dell-per730-57 ~]# ovn-nbctl lsp-del lsp1
[root@dell-per730-57 ~]# ovn-nbctl  set Logical-Switch s2 other_config:subnet=192.168.0.0/16
[root@dell-per730-57 ~]# ovn-nbctl set Logical-switch s2 other_config:ipv6_prefix=2003::0
[root@dell-per730-57 ~]#  ovn-nbctl lsp-add s2 lsp1 -- lsp-set-addresses lsp1 "dynamic 192.168.0.99 2003::99"
[root@dell-per730-57 ~]# ovn-nbctl get Logical-Switch-Port lsp1 dynamic_addresses
[]
[root@dell-per730-57 ~]#  ovn-nbctl get Logical-Switch s2 other_config
{"ipv6_prefix"="2003::0", subnet="192.168.0.0/16"}
[root@dell-per730-57 ~]#
[root@dell-per730-57 ~]# ovn-nbctl get Logical-Switch-Port lsp1 dynamic_addresses
[]
[root@dell-per730-57 ~]#  ovn-nbctl lsp-set-addresses lsp1 "dynamic 192.168.0.99"
[root@dell-per730-57 ~]# ovn-nbctl get Logical-Switch-Port lsp1 dynamic_addresses
"00:00:22:a8:00:64 192.168.0.99 2003::200:22ff:fea8:64"
[root@dell-per730-57 ~]#

Comment 5 haidong li 2019-05-20 02:23:00 UTC
This issue is verified on the latest version:
ovn2.11-2.11.0-16.el7fdp.x86_64.rpm 
openvswitch2.11-2.11.0-9.el7fdp.x86_64.rpm 

job link:
https://beaker.engineering.redhat.com/recipes/6844901#task92473184

Comment 7 errata-xmlrpc 2019-06-05 14:58:10 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-2019:1385


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