Bug 1948415 - [vSphere csi driver operator] clustercsidriver.spec.logLevel doesn't take effective after changing
Summary: [vSphere csi driver operator] clustercsidriver.spec.logLevel doesn't take eff...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 4.8
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.8.0
Assignee: Fabio Bertinatto
QA Contact: Wei Duan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-12 07:03 UTC by Wei Duan
Modified: 2021-07-27 22:59 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-27 22:58:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift vmware-vsphere-csi-driver-operator pull 19 0 None open Bug 1948415: Set the log level in operands 2021-04-13 14:17:48 UTC
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 22:59:18 UTC

Description Wei Duan 2021-04-12 07:03:02 UTC
Description of problem:
Updating clustercsidriver.spec.logLevel doesn't take effect, the CSI driver related pods don't restart and don't run as expected logLevel.
From the config, seems loglevel is hardcoded as --v=5:
https://github.com/openshift/vmware-vsphere-csi-driver-operator/blob/master/assets/controller.yaml
https://github.com/openshift/vmware-vsphere-csi-driver-operator/blob/master/assets/node.yaml

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

How reproducible:
Always

Steps to Reproduce:
1. Set Up an OCP4.8 cluster on vSphere
2. Enable TechPreviewNoUpgrade featureset
3. Edit the logLevel for csi.vsphere.vmware.com to TraceAll
$ oc get clustercsidriver csi.vsphere.vmware.com -o json | jq .spec
{
  "logLevel": "TraceAll",
  "managementState": "Managed",
  "observedConfig": null,
  "operatorLogLevel": "Debug",
  "unsupportedConfigOverrides": null
}
4. Check the pods in openshift-cluster-csi-drivers
5. Check the loglevel

Actual results:
The Related pods should restart with "TraceAll" logLevel

Expected results:
The Related pods don't restart and the loglevel is not changed.
$ oc -n openshift-cluster-csi-drivers logs vmware-vsphere-csi-driver-controller-8495967fc5-qzj97 -c csi-driver
{"level":"info",
...

Comment 4 Wei Duan 2021-04-21 02:23:13 UTC
Thanks for the info @Fabio

Comment 5 Wei Duan 2021-04-21 02:25:54 UTC
Verified pass according to the test result above. The nightly 4.8.0-0.nightly-2021-04-19-** was used for verification.

Comment 8 errata-xmlrpc 2021-07-27 22:58:59 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


Note You need to log in before you can comment on or make changes to this bug.