Bug 1871839

Summary: Service deletion blocked due to no load balancer CRD
Product: OpenShift Container Platform Reporter: Maysa Macedo <mdemaced>
Component: NetworkingAssignee: Maysa Macedo <mdemaced>
Networking sub component: kuryr QA Contact: GenadiC <gcheresh>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: rlobillo
Version: 4.6   
Target Milestone: ---   
Target Release: 4.6.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: 2020-10-27 16:30:45 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 Maysa Macedo 2020-08-24 12:17:56 UTC
Description of problem:

Upon a service deletion event the Finalizer is first removed from the lb CRD and
then from the Service. In case the Kuryr-Controller restart in between those operations, the deletion of the Service object can get blocked due to waiting for the Finalizer to get removed from the Service's definition and this wouldn't happen anymore as the removal of the Finalizer was supposed to happen on the LB crd handler.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 rlobillo 2020-09-04 11:29:05 UTC
Verified on OCP4.6.0-0.nightly-2020-09-03-063148 over RHOS-16.1-RHEL-8-20200831.n.1 (with ovn)

oc new project test
oc --image kuryr/demo new-app demo
oc expose pod/demo --port 80 --target-port 8080


[stack@undercloud-0 ~]$ oc get klb
NAME   PROJECT-ID                         AGE
demo   fe177ef11fb34afba48a9bbf22fc8cb8   37s
[stack@undercloud-0 ~]$ oc get svc
NAME   TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)   AGE
demo   ClusterIP   172.30.11.128   <none>        80/TCP    42s


oc edit klb demo # Remove finalizer
oc delete klb demo
oc delete svc/demo

Removal of the svc is handled correctly even though klb crd is not present. Kuryr controller does not show any error and there are no leaks:

[stack@undercloud-0 ~]$ oc get klb
No resources found in test namespace.
[stack@undercloud-0 ~]$ oc get svc
No resources found in test namespace.

Comment 5 errata-xmlrpc 2020-10-27 16:30:45 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.6 GA Images), 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/RHBA-2020:4196