Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.

Bug 1679386

Summary: [ovn]configure the static ipv4 and ipv6 together cause port not able to get dynamic mac address
Product: Red Hat Enterprise Linux Fast Datapath Reporter: haidong li <haili>
Component: ovn2.11Assignee: lorenzo bianconi <lorenzo.bianconi>
Status: CLOSED ERRATA QA Contact: haidong li <haili>
Severity: medium Docs Contact:
Priority: unspecified    
Version: FDP 19.CCC: atragler, ctrautma, jishi, kfida, lorenzo.bianconi, nusiddiq, ovs-qe, pvauter, qding, tredaelli
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ovn2.11-2.11.0-10.el7fdn Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-05 14:58:10 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 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