Bug 1885235

Summary: Prometheus: Logging is broken due to mix of k8s.io/klog v1 and v2
Product: OpenShift Container Platform Reporter: Sergiusz Urbaniak <surbania>
Component: MonitoringAssignee: Simon Pasquier <spasquie>
Status: CLOSED ERRATA QA Contact: Junqi Zhao <juzhao>
Severity: medium Docs Contact:
Priority: high    
Version: 4.6CC: alegrand, anpicker, aos-bugs, erooth, jhadvig, jokerman, kakkoyun, lcosic, pkrupa, sttts, surbania, yapei
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 1883461 Environment:
Last Closed: 2021-02-24 15:23:10 UTC Type: ---
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: 1883461, 1885236, 1885237, 1886060    
Bug Blocks:    

Comment 1 Simon Pasquier 2020-10-06 13:51:08 UTC
PR submitted upstream: https://github.com/prometheus/prometheus/pull/8015

Comment 3 Junqi Zhao 2020-10-22 01:36:21 UTC
tested with 4.7.0-0.nightly-2020-10-21-001511, prometheus version is 2.22.0 now
# oc -n openshift-monitoring logs -c prometheus prometheus-k8s-0
level=info ts=2020-10-21T23:42:21.672Z caller=main.go:353 msg="Starting Prometheus" version="(version=2.22.0, branch=rhaos-4.7-rhel-8, revision=6602cbd5e87109bfb6165c29b39f39024168667c)"
level=info ts=2020-10-21T23:42:21.673Z caller=main.go:358 build_context="(go=go1.15.0, user=root@1fde91b90149, date=20201020-18:30:08)"
level=info ts=2020-10-21T23:42:21.673Z caller=main.go:359 host_details="(Linux 4.18.0-193.28.1.el8_2.x86_64 #1 SMP Fri Oct 16 13:38:49 EDT 2020 x86_64 prometheus-k8s-0 (none))"
level=info ts=2020-10-21T23:42:21.673Z caller=main.go:360 fd_limits="(soft=1048576, hard=1048576)"
level=info ts=2020-10-21T23:42:21.673Z caller=main.go:361 vm_limits="(soft=unlimited, hard=unlimited)"
...

Comment 7 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