Bug 2034743 - EgressIP: assigning the same egress IP to a second EgressIP object after a ovnkube-master restart does not fail.
Summary: EgressIP: assigning the same egress IP to a second EgressIP object after a ov...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.7
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.10.0
Assignee: Ben Bennett
QA Contact: huirwang
URL:
Whiteboard:
Depends On:
Blocks: 2034744
TreeView+ depends on / blocked
 
Reported: 2021-12-21 21:53 UTC by Alexander Constantinescu
Modified: 2022-03-10 16:36 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2034744 (view as bug list)
Environment:
Last Closed: 2022-03-10 16:36:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift ovn-kubernetes pull 871 0 None Merged Downstream merge 2021-12-10 2021-12-21 21:55:05 UTC
Github openshift ovn-kubernetes pull 917 0 None Merged Bug 2039099: EgressIP fixes for 4.10 2022-02-08 14:40:56 UTC
Github ovn-org ovn-kubernetes pull 2734 0 None Merged EgressIP: miscellaneous fixes 2022-02-08 14:40:52 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:36:18 UTC

Description Alexander Constantinescu 2021-12-21 21:53:40 UTC
Description of problem:

There is a cache de-synchronization in ovnkube-master when restarting. All previously performed allocations are not populated in the internal cache which manages egress IP assignments, allowing for invalid assignments to be performed when ovnkube-master has restarted. 

An example of this is assigning the same egress IP to a second EgressIP object after ovnkube-master has restarted. This should not be allowed in the normal case, but is however enabled due to this problem. 


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


How reproducible:

Steps to Reproduce:
1. Create namespace "test"
3. Create an EgressIP "egressip-test" object matching namespace "test" with IP X 
4. Restart ovnkube-master (or the current leader in an HA deployment) 
5. Create a namespace "test2"
6. Create a EgressIP "egressip-test2" object matching namespace "test2" with IP X

Actual results:

IP X is assigned to "egressip-test2"

Expected results:

IP X should not be assigned to "egressip-test2" and instead trigger an event indicating: "NoMatchingNodeFound"
Additional info:

Comment 11 errata-xmlrpc 2022-03-10 16:36:03 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.10.3 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-2022:0056


Note You need to log in before you can comment on or make changes to this bug.