Bug 2089191 - should remove grafana from cluster-monitoring-config configmap in hypershift cluster
Summary: should remove grafana from cluster-monitoring-config configmap in hypershift ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: HyperShift
Version: 4.11
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 4.11.0
Assignee: aaleman
QA Contact: Junqi Zhao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-23 08:11 UTC by Junqi Zhao
Modified: 2022-08-10 11:13 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-10 11:13:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 11:13:46 UTC

Description Junqi Zhao 2022-05-23 08:11:18 UTC
Description of problem:
login 4.11.0-0.nightly-2022-05-20-213928 hypershift cluster with Guest cluster kubeconfig, still see setting for grafana in cluster-monitoring-config configmap.
from 4.11, grafana is removed, should not set it.
see all 4.11 monitoring components from: https://github.com/openshift/cluster-monitoring-operator/blob/release-4.11/pkg/manifests/config.go#L109-L121

# oc -n openshift-monitoring get cm cluster-monitoring-config -oyaml
apiVersion: v1
data:
  config.yaml: |
    alertmanagerMain: null
    enableUserWorkload: null
    grafana: null
    http: null
    k8sPrometheusAdapter: null
    kubeStateMetrics: null
    openshiftStateMetrics: null
    prometheusK8s: null
    prometheusOperator:
      logLevel: ""
      nodeSelector:
        kubernetes.io/os: linux
      tolerations: null
    telemeterClient: null
    thanosQuerier: null
kind: ConfigMap
metadata:
  creationTimestamp: "2022-05-23T03:29:46Z"
  labels:
    hypershift.io/managed: "true"
  name: cluster-monitoring-config
  namespace: openshift-monitoring
  resourceVersion: "1516"
  uid: 02a7ae1e-4f03-4b85-bda5-871fa187cd10

Version-Release number of selected component (if applicable):
4.11.0-0.nightly-2022-05-20-213928

How reproducible:
always

Steps to Reproduce:
1. check cluster-monitoring-config configmap content in a hypershift default cluster
2.
3.

Actual results:
still see setting for grafana.

Expected results:
should not see grafana setting

Additional info:

Comment 1 Joao Marcal 2022-05-25 12:46:15 UTC
I think this is a bug for HyperShift folks as this is not a problem of CMO but of the HyperShift controller which has an outdated version of the CMO ConfigMap this should be updated https://github.com/openshift/hypershift/tree/main/thirdparty

Comment 4 Junqi Zhao 2022-06-17 01:17:24 UTC
see from https://bugzilla.redhat.com/show_bug.cgi?id=2089224#c10
default configmap cluster-monitoring-config is removed

Comment 8 errata-xmlrpc 2022-08-10 11:13:27 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 (Important: OpenShift Container Platform 4.11.0 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-2022:5069


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