Bug 1877256

Summary: Disable grafana telemetry.
Product: OpenShift Container Platform Reporter: Simon Pasquier <spasquie>
Component: MonitoringAssignee: Damien Grisonnet <dgrisonn>
Status: CLOSED ERRATA QA Contact: Junqi Zhao <juzhao>
Severity: low Docs Contact:
Priority: low    
Version: 4.5CC: alegrand, anpicker, erooth, gparente, juzhao, kakkoyun, lcosic, mloibl, pkrupa, spasquie, surbania
Target Milestone: ---   
Target Release: 4.5.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1876830 Environment:
Last Closed: 2020-09-21 17:42:07 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: 1876830    
Bug Blocks:    

Description Simon Pasquier 2020-09-09 08:21:49 UTC
+++ This bug was initially created as a clone of Bug #1876830 +++

Description of problem:

we need to disable grafana telemetry in downstream as shown in this issue/pullrequest:

grafana pod outbound network connections
https://github.com/openshift/cluster-monitoring-operator/issues/828

Disable grafana telemetry
https://github.com/openshift/cluster-monitoring-operator/pull/834

That is to say, set

reporting_enabled = false 

in grafana.ini


Version-Release number of selected component (if applicable): 4.5


How reproducible: always


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

--- Additional comment from Pawel Krupa on 2020-09-08 10:03:54 UTC ---

This is already done in 4.6

--- Additional comment from Lili Cosic on 2020-09-08 10:08:10 UTC ---

So you want this backported to 4.5? Can you clarify a bit more why and how urgent this is. Thanks!

--- Additional comment from German Parente on 2020-09-08 10:16:25 UTC ---

Hi,

thanks a lot for checking this. I have never said this is urgent but in customer site this url is disabled: "stats.grafana.org". So, the customer is having errors all the time in the logs:

========
The grafana pod of project openshift-monitoring is trying to access 35.241.23.245 every 10 mins. This is not allowed and triggers firewall warnings.
Please disable!
========

--- Additional comment from Lili Cosic on 2020-09-08 10:23:14 UTC ---

Thanks for more info, we will backport the fix.

--- Additional comment from Eric Paris on 2020-09-08 12:00:56 UTC ---

This bug sets Target Release equal to a z-stream but has no bug in the 'Depends On' field. As such this is not a valid bug state and the target release is being unset.

Any bug targeting 4.1.z must have a bug targeting 4.2 in 'Depends On.'
Similarly, any bug targeting 4.2.z must have a bug with Target Release of 4.3 in 'Depends On.'

--- Additional comment from Simon Pasquier on 2020-09-09 08:20:15 UTC ---

Already fixed in 4.6 by https://github.com/openshift/cluster-monitoring-operator/pull/834.

Comment 2 Junqi Zhao 2020-09-14 01:42:36 UTC
tested with 4.5.0-0.nightly-2020-09-12-063044, issue is fixed on 4.5
# oc -n openshift-monitoring exec -c grafana $(oc -n openshift-monitoring get po | grep grafana | awk '{print $1}') -- cat /etc/grafana/grafana.ini | grep reporting_enabled
reporting_enabled = false

Comment 5 errata-xmlrpc 2020-09-21 17:42:07 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 (OpenShift Container Platform 4.5.11 bug fix 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/RHBA-2020:3719