Bug 1878199

Summary: Remove Log Level Normalization controller in cluster-config-operator release N+1
Product: OpenShift Container Platform Reporter: Venkata Siva Teja Areti <vareti>
Component: config-operatorAssignee: Stefan Schimanski <sttts>
Status: CLOSED ERRATA QA Contact: Xingxing Xia <xxia>
Severity: high Docs Contact:
Priority: high    
Version: 4.6CC: aos-bugs
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 22:32:55 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:

Description Venkata Siva Teja Areti 2020-09-11 14:53:25 UTC
This bug is a tracker to revert controller changes in this PR

https://github.com/openshift/cluster-config-operator/pull/150

After validation for logLevel field is added for operator spec, those changes can be reverted.


Relates to https://bugzilla.redhat.com/show_bug.cgi?id=1878007

Comment 4 Stefan Schimanski 2021-01-07 16:08:54 UTC
This still have to wait another release because openshift/cluster-network-operator@ea7eec5#diff-51340aea1de9eeec24aebe2404caddd9258b2e158fb1422598f336cf2d08d939 only merged for 4.7.

Comment 6 Xingxing Xia 2021-04-27 11:04:01 UTC
As this bug's title, it is to remove from later release the normalization *CODE* that was added in earlier release. As per comment in bug 1877408#c0 , 4.6 already added validation but still keeps normalization. So nothing special to do for this bug. But still doing a regression test:
$ oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.8.0-0.nightly-2021-04-26-161128   True        False         8h      Cluster version is 4.8.0-0.nightly-2021-04-26-161128

# Validation is added
$ oc patch openshiftapiserver cluster -p '{"spec": {"operatorLogLevel": "oastest111"}}' --type merge
The OpenShiftAPIServer "cluster" is invalid: spec.operatorLogLevel: Unsupported value: "oastest111": supported values: "", "Normal", "Debug", "Trace", "TraceAll"

$ oc patch openshiftapiserver cluster -p '{"spec": {"logLevel": "oastest222"}}' --type merge
The OpenShiftAPIServer "cluster" is invalid: spec.logLevel: Unsupported value: "oastest222": supported values: "", "Normal", "Debug", "Trace", "TraceAll"

Comment 9 errata-xmlrpc 2021-07-27 22:32:55 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