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

Route Metrics page is returning empty page for normal user

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done-Errata
    • Major
    • 4.14.0
    • 4.13.z, 4.12.z, 4.11.z, 4.14
    • Management Console
    • None
    • No
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, an empty page was displayed when viewing route details on the *Metrics* tab of the *`alertmanager-main`* page. With this update, user privileges were updated so you can view the route details on the *Metrics* tab. (link:https://issues.redhat.com/browse/OCPBUGS-15021[*OCPBUGS-15021*])
      Show
      * Previously, an empty page was displayed when viewing route details on the *Metrics* tab of the *`alertmanager-main`* page. With this update, user privileges were updated so you can view the route details on the *Metrics* tab. (link: https://issues.redhat.com/browse/OCPBUGS-15021 [* OCPBUGS-15021 *])
    • Bug Fix
    • Done

    Description

      Description of problem:y

      An empty page returned when normal user try to view Route Metrics page

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

      4.14.0-0.nightly-2023-06-13-223353

      How reproducible:

      Always

      Steps to Reproduce:

      1. Check any Routes metrics page with cluster-admin user, for example /k8s/ns/openshift-monitoring/routes/alertmanager-main/metrics, we can see the route metrics page and charts are loaded successfully
      2. Grant normal user admin permission on 'openshift-monitoring' project
      $ oc adm policy add-role-to-user admin testuser-1 -n openshift-monitoring
      clusterrole.rbac.authorization.k8s.io/admin added: "testuser-1"
      3. Login with normal user 'testuser-1' and check Networking -> Routes -> alertmanager-main -> Metrics page again 

      Actual results:

      3. empty page is returned

      Expected results:

      3. If normal user doesn't have ability to view Route Metrics, we should better either hide 'Metrics' tab or show an error message instead of totally empty page

      Additional info:

       

      Attachments

        Activity

          People

            anpicker@redhat.com Andrew Pickering
            rhn-support-yapei YaDan Pei
            Yanping Zhang Yanping Zhang
            Olivia Payne Olivia Payne
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: