Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: Can't set log verbosity level for virt-operator pod Version-Release number of selected component (if applicable): 4.11 How reproducible: always Steps to Reproduce: 1.set log verbosity in HCO spec: logVerbosityConfig: kubevirt: virtOperator: 8 2.check virt-operator pods $ oc logs virt-operator-cf86f858d-bwfsm | grep verbosity $(no output) Actual results: no output Expected results: should like other virt components pods $oc logs virt-controller-5d5bf5f97-ls5wx| grep verbosity {"component":"virt-controller","level":"info","msg":"set log verbosity to 2","pos":"application.go:405","timestamp":"2022-07-06T02:53:46.5414 Additional info:
For reference, https://kubevirt.io/api-reference/master/definitions.html#_v1_logverbosity
We need the following info: 1) HCO CR 2) KV CR 3) virt-operator deployment manifest.
Kubevirt PR: https://github.com/kubevirt/kubevirt/pull/8476
PR merged upstream
verify with build: v4.12.0-585 step: 1.set log verbosity in HCO cr .... spec: logVerbosityConfig: kubevirt: virtOperator: 8 .... 2. check two operator pod's log $ oc logs virt-operator-69ff4ffc96-r6p49 -n openshift-cnv| grep verbosity {"component":"virt-operator","level":"info","msg":"set log verbosity to 8","pos":"application.go:459","timestamp":"2022-10-17T06:17:42.925115Z"} $ oc logs virt-operator-69ff4ffc96-t7h9m -n openshift-cnv | grep verbosity {"component":"virt-operator","level":"info","msg":"set log verbosity to 8","pos":"application.go:459","timestamp":"2022-10-17T06:17:42.925233Z"} move to verified.
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 (Important: OpenShift Virtualization 4.12.0 Images 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-2023:0408