Bug 2016235

Summary: should update to 7.5.11 for grafana resources version label
Product: OpenShift Container Platform Reporter: Junqi Zhao <juzhao>
Component: MonitoringAssignee: Prashant Balachandran <pnair>
Status: CLOSED ERRATA QA Contact: Junqi Zhao <juzhao>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.10CC: amuller, anpicker, aos-bugs, erooth, pnair
Target Milestone: ---   
Target Release: 4.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-10 16:21:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Junqi Zhao 2021-10-21 03:15:27 UTC
Description of problem:
bug 2011501, grafana version is updated to 7.5.11, but the resources version label for grafana is still 7.5.5
# oc -n openshift-monitoring get pod --show-labels | grep grafana
grafana-7b6d9bfb89-9dxbw                       3/3     Running   0             24m   app.kubernetes.io/component=grafana,app.kubernetes.io/name=grafana,app.kubernetes.io/part-of=openshift-monitoring,app.kubernetes.io/version=7.5.5,pod-template-hash=7b6d9bfb89


# oc -n openshift-monitoring get deploy grafana -oyaml 
...
apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    deployment.kubernetes.io/revision: "1"
  creationTimestamp: "2021-10-21T02:41:06Z"
  generation: 1
  labels:
    app.kubernetes.io/component: grafana
    app.kubernetes.io/managed-by: cluster-monitoring-operator
    app.kubernetes.io/name: grafana
    app.kubernetes.io/part-of: openshift-monitoring
    app.kubernetes.io/version: 7.5.5
...
  template:
    metadata:
      annotations:
        checksum/grafana-config: d4bf519b7ec7b2820ed560401688dbc2
        checksum/grafana-dashboardproviders: 6ebb5e13a8b279aad14b07a605db492d
        checksum/grafana-datasources: 1831af184dcda20c5181a8411627a813
        target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
      creationTimestamp: null
      labels:
        app.kubernetes.io/component: grafana
        app.kubernetes.io/name: grafana
        app.kubernetes.io/part-of: openshift-monitoring
        app.kubernetes.io/version: 7.5.5

Version-Release number of selected component (if applicable):
4.10.0-0.nightly-2021-10-21-014208

How reproducible:
always

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Junqi Zhao 2021-10-25 03:13:55 UTC
checked with 4.10.0-0.nightly-2021-10-23-225921, grafana resources label is 7.5.11
# oc -n openshift-monitoring get servicemonitor grafana -oyaml
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  creationTimestamp: "2021-10-25T01:59:59Z"
  generation: 1
  labels:
    app.kubernetes.io/component: grafana
    app.kubernetes.io/name: grafana
    app.kubernetes.io/part-of: openshift-monitoring
    app.kubernetes.io/version: 7.5.11
  name: grafana
...

# oc -n openshift-monitoring get pod --show-labels | grep grafana
grafana-6dd8c56899-hn8g9                       3/3     Running   0             70m     app.kubernetes.io/component=grafana,app.kubernetes.io/name=grafana,app.kubernetes.io/part-of=openshift-monitoring,app.kubernetes.io/version=7.5.11,pod-template-hash=6dd8c56899

Comment 6 errata-xmlrpc 2022-03-10 16:21: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 (Moderate: OpenShift Container Platform 4.10.3 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:0056