Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1959906

Summary: External gateway fails to add duplicate OVN ECMP route
Product: OpenShift Container Platform Reporter: Tim Rozet <trozet>
Component: NetworkingAssignee: Tim Rozet <trozet>
Networking sub component: ovn-kubernetes QA Contact: Dan Brahaney <dbrahane>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: aconstan, astoycos, dansmall, dblack, kholtz
Version: 4.6   
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1984978 (view as bug list) Environment:
Last Closed: 2021-10-18 17:31:04 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: 1959909    
Bug Blocks: 1984978    

Description Tim Rozet 2021-05-12 15:26:47 UTC
Description of problem:
Adding logical port may fail with:

2021-05-07T20:04:31.323426314Z stderr F I0507 20:04:31.323357      35 event.go:282] Event(v1.ObjectReference{Kind:"Pod", Namespace:"default", Name:"e2e-gateway-pod", UID:"764b0bc2-17d4-41ed-87bc-e9765aef8f8b", APIVersion:"v1", ResourceVersion:"9601", FieldPath:""}): type: 'Warning' reason: 'ErrorAddingLogicalPort' failed to handle external GW check: unable to add src-ip route to GR router, stderr:"ovn-nbctl: duplicate nexthop for the same ECMP route\n", err:OVN command '/usr/bin/ovn-nbctl --timeout=15 --may-exist --policy=src-ip --ecmp-symmetric-reply lr-route-add GR_ovn-worker2 10.244.0.15/32 172.18.0.5'

if an entry already exists. OVN should handle the case where the same entry exists and not error.

Note this was mentioned in the QE coverage of:
https://bugzilla.redhat.com/show_bug.cgi?id=1916842#c1

Comment 3 Anurag saxena 2021-06-21 21:11:21 UTC
*4.9 sorry

Comment 4 Ken Holtz 2021-06-30 11:54:20 UTC
Is there any known workaround for folks hitting this issue in 4.7.13 and unable to bump to a later version right now?

Comment 5 Dan Brahaney 2021-07-22 14:14:08 UTC
Confirmed latest 4.8 builds contain OVN 20.12.0-140.el8fdp

Comment 8 errata-xmlrpc 2021-10-18 17:31:04 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 (Moderate: OpenShift Container Platform 4.9.0 bug fix and security 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/RHSA-2021:3759