Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-14119

Alerts in one project should not show in other project's overview page after enable "User workload notifications"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Normal
    • None
    • 4.14.0
    • Dev Console
    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:

      After enable show "User workload notifications" from "User Preferences"->"Notifications" menu, an alert in one project will show up on other project's overview page.
      
      Version-Release number of selected component (if applicable):
      4.14.0-0.nightly-2023-05-23-103225

      How reproducible:

      Always

      Steps to Reproduce:

      1.Login admin console with cluster admin user. Enable user workload in cm "cluster-monitoring-config" under namespace:
       {
          "apiVersion": "v1",
          "data": {
              "config.yaml": "enableUserWorkload: true"
          },
          "kind": "ConfigMap",
          "metadata": {
              "name": "cluster-monitoring-config",
              "namespace": "openshift-monitoring"
          }
      }
       2.Create an alert in one project.
      {
          "apiVersion": "monitoring.coreos.com/v1",
          "kind": "PrometheusRule",
          "metadata": {
              "name": "example-alert"
          },
          "spec": {
              "groups": [
                  {
                      "name": "example",
                      "rules": [
                          {
                              "alert": "TestAlert",
                              "annotations": {
                                  "message": "Testing 123."
                              },
                              "expr": "vector(1)"
                          }
                      ]
                  }
              ]
          }
      }
      
      3. Enable display of "User workload notifications" from "User Preferences"->"Notifications" menu by not ticking on "Hide user workload notifications".
      4. Check on several project's overview page.

      Actual results:

      4. The alert shows up on overview page for all project.

      Expected results:

      4. The alert should not show up on other project's overview page.

      Additional info:

      screenshorts: https://drive.google.com/drive/folders/17Xfli3CWGoWDbaIl0X24-x04kd874_3F?usp=share_link

      Attachments

        Activity

          People

            viraj-1 Vikram Raj
            rhn-support-yanpzhan Yanping Zhang
            YaDan Pei YaDan Pei
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: