Bug 1866791
Summary: | storage co operatorLogLevel is not validated | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Qin Ping <piqin> | |
Component: | Storage | Assignee: | Jan Safranek <jsafrane> | |
Storage sub component: | Operators | QA Contact: | Qin Ping <piqin> | |
Status: | CLOSED ERRATA | Docs Contact: | ||
Severity: | medium | |||
Priority: | medium | CC: | aos-bugs, jsafrane | |
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: | ||||
: | 1877408 (view as bug list) | Environment: | ||
Last Closed: | 2020-10-27 16:25:25 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: | ||||
Bug Depends On: | 1877408, 1878007 | |||
Bug Blocks: |
Description
Qin Ping
2020-08-06 11:18:07 UTC
3. oc patch storage cluster -p '{"spec": {"operatorLogLevel" : "test"}}' --type merge This one looks like a real bug, validation should reject value "test". On the other hand, the other are working for me. Especially change from/to TraceAll is very noticable. Please make sure that CVO is not running, because it will overwrite your Storage changes back to Normal: oc scale -n openshift-cluster-version deployment/cluster-version-operator --replicas=0 On Trace level, you should see for example: I0806 15:23:13.747678 2714590 crcontroller.go:154] CSIDriverOperatorCRController sync finished I0806 15:23:13.811154 2714590 crcontroller.go:109] CSIDriverOperatorCRController sync started On TraceAll, you should see: I0806 15:23:00.672438 2714590 request.go:1095] Request Body: 00000000 6b 38 73 00 0a 0f 0a 02 76 31 12 09 43 6f 6e 66 |k8s.....v1..Conf| [whole protobuff dump] Yes, "TraceAll" is working but "TraceALL" is not working. Oh, ok. It's the validation then. Since we use library-go, we cannot add hard validation of all OperatorSpec.LogLevel there - other CRs that use the same OperatorSpec and thus have the same validation can already have a CR with wrong LogLevel in etcd and this CR would get unusable after upgrade to new version with tight validation. Adding soft validation (log message, event), but keep the CR working: https://github.com/openshift/library-go/pull/864 Note to QA: operatorLogLevel should have very soft validation in CSO and all our CSI operators. Unknown operatorLoglevel leads to a log message + "Normal" level is used. Check bug #1878007 for solution for all operator CRs + both logLevel / operatorLogLevel fields. verified with: 4.6.0-0.nightly-2020-09-14-225526 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 |