Bug 1961852

Summary: Excessive lock contention when adding many pods selected by the same NetworkPolicy
Product: OpenShift Container Platform Reporter: Casey Callendrello <cdc>
Component: NetworkingAssignee: Casey Callendrello <cdc>
Networking sub component: ovn-kubernetes QA Contact: Ross Brattain <rbrattai>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: aconstan, andbartl, mifiedle, rbrattai
Version: 4.8   
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 23:09:09 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: 1950283    

Description Casey Callendrello 2021-05-18 20:18:08 UTC
Description of problem:
OVN-K holds a lock unnecessarily when adding pods. We can remove this, which is a significant source of contention.

Comment 1 Casey Callendrello 2021-05-18 20:18:34 UTC
Upstream PR: https://github.com/ovn-org/ovn-kubernetes/pull/2228

Comment 6 Ross Brattain 2021-06-08 05:52:38 UTC
Verified on 4.8.0-0.nightly-2021-06-07-083552

Created/deleted the optimized network policies on 1000 pods.

Comment 9 errata-xmlrpc 2021-07-27 23:09:09 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.8.2 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:2438