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

Alerts not available in status page from project in OCP web console

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • 4.13, 4.14, 4.15
    • Observability UI
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • 1
    • 2
    • Moderate
    • No
    • None
    • Sprint 277, Sprint 278
    • 2
    • Proposed
    • Bug Fix
    • Previously, alerts in the project overview were not visible because the application was querying an incorrect API. The fix loads from the correct source and displays the project alerts.
    • 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
              YaDan Pei YaDan Pei
              None
              Votes:
              9 Vote for this issue
              Watchers:
              18 Start watching this issue

                Created:
                Updated: