Bug 1883701

Summary: IngressController CRD's "scale" subresource was removed
Product: OpenShift Container Platform Reporter: Miciah Dashiel Butler Masters <mmasters>
Component: NetworkingAssignee: Miciah Dashiel Butler Masters <mmasters>
Networking sub component: router QA Contact: Arvind iyengar <aiyengar>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: aiyengar, aos-bugs, obulatov, wking
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:46:29 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 Miciah Dashiel Butler Masters 2020-09-29 22:28:00 UTC
Description of problem:

Recently, CRDs in openshift/api were migrated from version apiextensions.k8s.io/v1beta1 to apiextensions.k8s.io/v1.  In the process, the IngressController's "scale" subresource was inadvertently removed.


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

The erroneous CRD is not in current builds, but the problem can be reproduced by directly applying the CRD from Git.


How reproducible:

Easily.


Steps to Reproduce:

1. Launch a cluster.

2. Apply the current IngressController CRD from Git:

    oc apply -f https://raw.githubusercontent.com/openshift/api/master/operator/v1/0000_50_ingress-operator_00-ingresscontroller.crd.yaml

3. Try to scale the default ingresscontroller:

    oc -n openshift-ingress-operator scale ingresscontroller/default --replicas=2


Actual results:

The `oc scale` command prints the following error message:

    Error from server (NotFound): ingresscontrollers.operator.openshift.io "default" not found


Expected results:

The `oc scale` command should print the following output:

    ingresscontroller.operator.openshift.io/default scaled


Additional info:

This commit mistakenly removed the IngressController CRD's "scale" subresource:  https://github.com/openshift/api/pull/720/commits/fdbff4bcb56c5263cc7b8a740a3684ca9f4ba116#diff-c43b8f4ae306bf7ac8fbdde984579af1L16-L19

Comment 1 Miciah Dashiel Butler Masters 2020-09-29 22:30:48 UTC
If possible, I would like to get this fixed in time to bump https://github.com/openshift/cluster-ingress-operator to use the updated CRD for 4.6.  However, I do not believe this is a release blocker if the fix does not merge in time.

Comment 2 W. Trevor King 2020-09-29 22:39:20 UTC
Retargeting to 4.6.0 to help land the PR.  If it misses code-freeze, we can move this back to 4.7.0.

Comment 5 Arvind iyengar 2020-10-05 09:01:17 UTC
The PR merged and made into "4.6.0-0.nightly-2020-10-01-012547". The error is no more seen during scaling of controller with the latest CRD in  place.

Comment 8 errata-xmlrpc 2020-10-27 16:46:29 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