Bug 2097018

Summary: Duplicated IPs can be assigned to multiple Pods
Product: OpenShift Container Platform Reporter: Martin Kennelly <mkennell>
Component: NetworkingAssignee: Martin Kennelly <mkennell>
Networking sub component: ovn-kubernetes QA Contact: Anurag saxena <anusaxen>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: anusaxen, cpassare
Version: 4.8   
Target Milestone: ---   
Target Release: 4.8.z   
Hardware: All   
OS: All   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2096802 Environment:
Last Closed: 2022-10-27 05:44:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 2096802    
Bug Blocks:    

Description Martin Kennelly 2022-06-14 17:42:50 UTC
+++ This bug was initially created as a clone of Bug #2096802 +++

+++ This bug was initially created as a clone of Bug #2095193 +++

+++ This bug was initially created as a clone of Bug #2094460 +++

Description of problem:

When addNode() failed in addNodeAnnotations(), the node's IPAM can be
overwritten by subsequent addNode() retry attempts. As the result, the
same IP can be allocated to multiple pods.

retryPod worker is started too soon, which could start to handle add Pod
request and allocate duplicate Pod IPs before IPs of the existing Pods are
reserved in syncPods().

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:

Actual results:

Expected results:
No duplicate IPs

Additional info:
Fixed in upstream PR: https://github.com/ovn-org/ovn-kubernetes/pull/2928
We may also need

--- Additional comment from Martin Kennelly on 2022-06-07 16:22:14 UTC ---

Fix merged downstream. Pending release of 4.11.

--- Additional comment from Martin Kennelly on 2022-06-13 13:56:55 UTC ---

Can you put 'cherry-pick-approved' label on the PR?
Thank you.

Comment 8 errata-xmlrpc 2022-10-27 05:44:55 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 (OpenShift Container Platform 4.8.52 bug fix 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.