Bug 1992553

Summary: all the alert rules' annotations "summary" and "description" should comply with the OpenShift alerting guidelines
Product: OpenShift Container Platform Reporter: hongyan li <hongyli>
Component: Image RegistryAssignee: Oleg Bulatov <obulatov>
Status: CLOSED ERRATA QA Contact: wewang <wewang>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.9CC: obulatov
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-10 10:36:53 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 hongyan li 2021-08-11 09:59:00 UTC
Description of problem:
all the alert rules'  annotations "summary" and "description"  should comply with the OpenShift alerting guidelines

Version-Release number of selected component (if applicable):
4.9.0-0.nightly-2021-08-07-175228

How reproducible:
always

Steps to Reproduce:
1.
2.
3.

Actual results:
$ oc get prometheusrules -n openshift-image-registry -oyaml
apiVersion: v1
items:
- apiVersion: monitoring.coreos.com/v1
  kind: PrometheusRule
  metadata:
    annotations:
      include.release.openshift.io/ibm-cloud-managed: "true"
      include.release.openshift.io/self-managed-high-availability: "true"
      include.release.openshift.io/single-node-developer: "true"
    creationTimestamp: "2021-08-10T23:22:21Z"
    generation: 1
    labels:
      name: image-registry-operator-alerts
    name: image-registry-operator-alerts
    namespace: openshift-image-registry
    ownerReferences:
    - apiVersion: config.openshift.io/v1
      kind: ClusterVersion
      name: version
      uid: 9fc7b5b6-6c23-4335-be07-ecfe1b9a142f
    resourceVersion: "21341"
    uid: 05b7524b-0a19-42c7-bc8b-84b73b7fae02
  spec:
    groups:
    - name: ImageRegistryOperator
      rules:
      - alert: ImageRegistryStorageReconfigured
        annotations:
          message: |
            Image Registry Storage configuration has changed in the last 30
            minutes. This change may have caused data loss.
        expr: increase(image_registry_operator_storage_reconfigured_total[30m]) >
          0
        labels:
          severity: warning
kind: List
metadata:
  resourceVersion: ""
  selfLink: ""



Expected results:
alert rules have annotations "summary" and "description"

Additional info:
the "summary" and "description" annotations comply with the OpenShift alerting guidelines [1]

[1] https://github.com/openshift/enhancements/blob/master/enhancements/monitoring/alerting-consistency.md#documentation-required

Comment 1 Oleg Bulatov 2021-09-03 13:48:30 UTC
No progress this sprint.

Comment 2 Oleg Bulatov 2021-10-04 13:51:17 UTC
*** Bug 2010347 has been marked as a duplicate of this bug. ***

Comment 5 wewang 2022-02-07 06:45:55 UTC
Verified in 4.11.0-0.nightly-2022-02-06-113143
Now removed PrometheusRule
 [wewang@localhost ~]$ oc get prometheusrules -n openshift-image-registry
No resources found in openshift-image-registry namespace

Comment 9 errata-xmlrpc 2022-08-10 10:36:53 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