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

Bug 2034102

Summary: [OVN] Recreate the deleted EgressIP object got InvalidEgressIP warning
Product: OpenShift Container Platform Reporter: huirwang
Component: NetworkingAssignee: Patryk Diak <pdiak>
Networking sub component: ovn-kubernetes QA Contact: Anurag saxena <anusaxen>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: pdiak, surya
Version: 4.10   
Target Milestone: ---   
Target Release: 4.10.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: 2022-03-10 16:35: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:

Description huirwang 2021-12-20 06:36:11 UTC
Description of problem:
[OVN AWS] Recreating the  deleted EgressIP object got  InvalidEgressIP  warning

Version-Release number of selected component (if applicable):
4.10.0-0.ci-2021-12-19-184945

How reproducible:
Always

Steps to Reproduce:
1. Label some nodes as egress nodes and create one egressip object

2. Then delete above egressip object
$ oc delete egressip --all
egressip.k8s.ovn.org "egressip-1" deleted

3. Create above egressip object again.


Actual results:

EgressIP was not assigned and check event got below warnings.
$ oc get egressip
NAME         EGRESSIPS     ASSIGNED NODE   ASSIGNED EGRESSIPS
egressip-1   10.0.48.215 


5m19s       Warning   InvalidEgressIP       egressip/egressip-1                                egress IP: 10.0.48.215 for object EgressIP: egressip-1 is already referenced by another EgressIP object

Expected results:
Recreating the deleted egressip object should take effect correctly. 


Additional info:
Workaround: Restart ovnkube-master pods.

Comment 3 Patryk Diak 2022-01-13 10:52:38 UTC
This should be addressed by https://github.com/ovn-org/ovn-kubernetes/pull/2734, I will update the status once it merges downstream.

Comment 7 errata-xmlrpc 2022-03-10 16:35: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.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