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 1769043

Summary: Reduce erroneous duplicate IP address messages
Product: Red Hat Enterprise Linux Fast Datapath Reporter: Mark Michelson <mmichels>
Component: ovn2.11Assignee: Mark Michelson <mmichels>
Status: CLOSED ERRATA QA Contact: Jianlin Shi <jishi>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: FDP 20.ACC: ctrautma, kfida
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1769079 (view as bug list) Environment:
Last Closed: 2020-01-21 17:02:44 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:
Bug Depends On:    
Bug Blocks: 1769079    

Description Mark Michelson 2019-11-05 19:57:14 UTC
Description of problem:

When using dynamic address assignment for logical switches, OVN reserves
the first address in the subnet for the attached router port to use.

The IPAM code was modified to add assigned router port addresses to IPAM. The use case for this was when a switch was joined to multiple routers, and all router addresses were dynamically assigned.

However, that commit also made it so that when a router rightly claimed
the first address in the subnet, ovn-northd would issue a warning about
a duplicate IP address being set.

Comment 3 Jianlin Shi 2019-12-19 07:46:19 UTC
reproduced on ovn2.11-2.11.1-8.el7fdp.x86_64:

[root@dell-per740-12 bz1769043]# rpm -qa | grep -E "openvswitch|ovn"
openvswitch2.11-2.11.0-35.el7fdp.x86_64
ovn2.11-central-2.11.1-8.el7fdp.x86_64
openvswitch-selinux-extra-policy-1.0-14.el7fdp.noarch
ovn2.11-2.11.1-8.el7fdp.x86_64
ovn2.11-host-2.11.1-8.el7fdp.x86_64

[root@dell-per740-12 bz1769043]# bash -x rep.sh
+ systemctl start ovn-northd
+ systemctl start openvswitch     
+ ovn-nbctl set-connection ptcp:6641
+ ovn-sbctl set-connection ptcp:6642
+ ovs-vsctl set Open_vSwitch . external-ids:system-id=hv0 external-ids:ovn-remote=tcp:20.0.30.26:6642 external-ids:ovn-encap-type=geneve external-ids:ovn-encap-ip=20.0.30.26
+ systemctl start ovn-controller
+ ovn-nbctl ls-add ls1 -- add Logical_Switch ls1 other_config subnet=172.16.1.0/24
+ ovn-nbctl lr-add lr1
+ ovn-nbctl lrp-add lr1 lr1-ls1 00:de:ad:ff:01: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 dynamic 

[root@dell-per740-12 bz1769043]# tail /var/log/openvswitch/ovn-northd.log
2019-12-19T07:37:51.909Z|00001|vlog|INFO|opened log file /var/log/openvswitch/ovn-northd.log
2019-12-19T07:37:51.916Z|00002|reconnect|INFO|unix:/run/openvswitch/ovnnb_db.sock: connecting...
2019-12-19T07:37:51.916Z|00003|reconnect|INFO|unix:/run/openvswitch/ovnsb_db.sock: connecting...
2019-12-19T07:37:51.916Z|00004|reconnect|INFO|unix:/run/openvswitch/ovnnb_db.sock: connected
2019-12-19T07:37:51.916Z|00005|reconnect|INFO|unix:/run/openvswitch/ovnsb_db.sock: connected
2019-12-19T07:37:51.916Z|00006|ovn_northd|INFO|ovn-northd lock acquired. This ovn-northd instance is now active.
2019-12-19T07:37:52.152Z|00007|ovn_northd|WARN|Duplicate IP set on switch ls1: 172.16.1.1

<=== error message

Verified on ovn2.11-2.11.1-24.el7fdp.x86_64:

[root@dell-per740-12 ovn]# rpm -qa | grep -E "openvswitch|ovn"
openvswitch2.11-2.11.0-35.el7fdp.x86_64
ovn2.11-host-2.11.1-24.el7fdp.x86_64
openvswitch-selinux-extra-policy-1.0-14.el7fdp.noarch
ovn2.11-central-2.11.1-24.el7fdp.x86_64
ovn2.11-2.11.1-24.el7fdp.x86_64

[root@dell-per740-12 bz1769043]# tail /var/log/openvswitch/ovn-northd.log
2019-12-19T07:45:26.179Z|00001|vlog|INFO|opened log file /var/log/openvswitch/ovn-northd.log
2019-12-19T07:45:26.186Z|00002|reconnect|INFO|unix:/run/openvswitch/ovnnb_db.sock: connecting...
2019-12-19T07:45:26.186Z|00003|reconnect|INFO|unix:/run/openvswitch/ovnsb_db.sock: connecting...
2019-12-19T07:45:26.186Z|00004|reconnect|INFO|unix:/run/openvswitch/ovnnb_db.sock: connected
2019-12-19T07:45:26.186Z|00005|reconnect|INFO|unix:/run/openvswitch/ovnsb_db.sock: connected
2019-12-19T07:45:26.186Z|00006|ovn_northd|INFO|ovn-northd lock acquired. This ovn-northd instance is now active.

<=== no error message

Comment 4 Jianlin Shi 2019-12-19 09:00:30 UTC
also fixed on rhel8 version

Comment 6 errata-xmlrpc 2020-01-21 17:02:44 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:0190