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

[4.20] Alerts not available in status page from project in OCP web console

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 4.20.z
    • 4.13, 4.14, 4.15
    • Observability UI
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • 1
    • Moderate
    • No
    • Proposed
    • Bug Fix
    • Hide
      Before this update, alerts in the project overview were not visible because the application was querying an incorrect API. With this release, the application now querys the correct API and displays the project alerts. (link:https://issues.redhat.com/browse/OCPBUGS-63125[OCPBUGS-63125])
      Show
      Before this update, alerts in the project overview were not visible because the application was querying an incorrect API. With this release, the application now querys the correct API and displays the project alerts. (link: https://issues.redhat.com/browse/OCPBUGS-63125 [ OCPBUGS-63125 ])
    • None
    • None
    • None
    • None

      Description of problem:

          OCP users with permissions monitoring-rules-edit and project edit are not able to see the alerts in status page from project (Administrator -> Home -> Project -> click in project name) in OCP web console. 
      
      Once the users access this page, the alert section seems to have the message: "Alerts could not be loaded"
      
      In the web browser network tools, this page seems to request the following URL: https://console-openshift-console.apps.<cluster-domain>/api/prometheus/api/v1/rules
      
      On the other side, in the section Observe -> alerts, the alerts are showed. In this step, the requested URL to list the alerts seem to be: https://console-openshift-console.apps.<cluster-domain>/api/prometheus-tenancy/api/v1/rules?namespace=<project-name>

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

          4.12, 4,13 and 4.14

      How reproducible:

      It is reproduciable with any cluster

      Steps to Reproduce:

          1. Create an user without any privileges
          2. Create a new project
          3. Create a test prometheusrule
          4. Assign the edit permissions to the new user to the new-project
          5. Assign the monitoring-rules-edit clusterrole permission to the user
          6. Access project's main page and check that the alerts are not present       

      Actual results:

          No alerts

      Expected results:

          Alerts from project

      Additional info:

          

              gbernal@redhat.com Gabriel Bernal
              rhn-support-bgomes Bruno Gomes
              None
              None
              Junqi Zhao Junqi Zhao
              None
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: