Bug 1950978

Summary: the ingressclass cannot be removed even after deleting the related custom ingresscontroller
Product: OpenShift Container Platform Reporter: Hongan Li <hongli>
Component: NetworkingAssignee: Miciah Dashiel Butler Masters <mmasters>
Networking sub component: router QA Contact: Hongan Li <hongli>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: medium CC: amcdermo, aos-bugs, sgreene
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:01:49 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 Hongan Li 2021-04-19 10:19:45 UTC
Description of problem:
the ingressclass cannot be removed even after deleting the related ingresscontroller

Version-Release number of selected component (if applicable):
4.8.0-0.nightly-2021-04-18-101412

How reproducible:
100%

Steps to Reproduce:
1. create a custom ingresscontroller
2. check the ingressclass
3. delete the custom ingresscontroller

Actual results:
1. the ingressclass created by the custom ingresscontroller is not removed
2. delete the ingressclass manually, but it is recreated automatically.

see below steps:
$ oc -n openshift-ingress-operator delete ingresscontroller/lb-ext
ingresscontroller.operator.openshift.io "lb-ext" deleted

$ oc get ingressclass
NAME                CONTROLLER                      PARAMETERS                                        AGE
openshift-default   openshift.io/ingress-to-route   IngressController.operator.openshift.io/default   8m59s
openshift-lb-ext    openshift.io/ingress-to-route   IngressController.operator.openshift.io/lb-ext    63m

$ oc delete ingressclass openshift-lb-ext
ingressclass.networking.k8s.io "openshift-lb-ext" deleted

$ oc get ingressclass
NAME                CONTROLLER                      PARAMETERS                                        AGE
openshift-default   openshift.io/ingress-to-route   IngressController.operator.openshift.io/default   15m
openshift-lb-ext    openshift.io/ingress-to-route   IngressController.operator.openshift.io/lb-ext    3s


Expected results:
the ingressclass should be removed after deleting the ingresscontroller

Additional info:

Comment 2 Hongan Li 2021-04-25 03:10:56 UTC
verified with 4.8.0-0.nightly-2021-04-24-175929 and passed.

$ oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.8.0-0.nightly-2021-04-24-175929   True        False         70m     Cluster version is 4.8.0-0.nightly-2021-04-24-175929


$ oc get ingressclass
NAME                CONTROLLER                      PARAMETERS                                        AGE
openshift-default   openshift.io/ingress-to-route   IngressController.operator.openshift.io/default   76m
openshift-lb-int    openshift.io/ingress-to-route   IngressController.operator.openshift.io/lb-int    3s

$ oc -n openshift-ingress-operator delete ingresscontroller/lb-int
ingresscontroller.operator.openshift.io "lb-int" deleted

$ oc get ingressclass
NAME                CONTROLLER                      PARAMETERS                                        AGE
openshift-default   openshift.io/ingress-to-route   IngressController.operator.openshift.io/default   77m

Comment 5 errata-xmlrpc 2021-07-27 23:01:49 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