Bug 1885244 - prometheus-operator: Logging is broken due to mix of k8s.io/klog v1 and v2
Summary: prometheus-operator: Logging is broken due to mix of k8s.io/klog v1 and v2
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Monitoring
Version: 4.6
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.7.0
Assignee: Lili Cosic
QA Contact: Junqi Zhao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-05 13:43 UTC by Sergiusz Urbaniak
Modified: 2021-02-24 15:23 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-24 15:23:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-monitoring-operator pull 970 0 None closed Bug 1885244: bump prometheus operator to v0.43.0 2021-01-13 09:54:14 UTC
Github openshift cluster-monitoring-operator pull 976 0 None closed Bug 1885244: fix cluster role for prometheus operator 2021-01-13 09:54:55 UTC
Github openshift prometheus-operator pull 98 0 None closed Bug 1885244: bump to v0.43.0 2021-01-13 09:54:18 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:23:35 UTC

Description Sergiusz Urbaniak 2020-10-05 13:43:14 UTC
This bug was initially created as a copy of Bug #1883461

I am copying this bug because: 



k8s.io/klog moved to v2 in client-go and frieds. The operator does not use v2 yet and hence, we lose one half of the logging output (v2).

Comment 4 Junqi Zhao 2020-11-05 03:45:49 UTC
tested with 4.7.0-0.nightly-2020-11-05-010603, prometheus-operator version is 0.43.0, and klog versin is k8s.io/klog/v2
# oc -n openshift-monitoring logs prometheus-operator-797cf585dc-2fm5k -c prometheus-operator
level=info ts=2020-11-05T02:26:17.558970691Z caller=main.go:228 msg="Starting Prometheus Operator" version="(version=0.43.0, branch=rhaos-4.7-rhel-8, revision=5ceb365)"

Comment 8 errata-xmlrpc 2021-02-24 15:23:10 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.7.0 security, bug fix, and enhancement 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-2020:5633


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