Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-4430

[release-5.8] Unable to see 'Alerts' section on dev-console when logged with non-admin app owner user

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Blocker Blocker
    • Logging 5.8.0
    • Logging 5.8.0
    • Log Console
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • NEW
    • NEW
    • Bug Fix

      Description:

      When logged in with non-admin application owner user, Alerts section is not present on dev-console.

      As per Acceptance Criteria of the epic LOG-3548
      'OpenShift Application owners receive notifications for application logs-based alerts on the same OpenShift Console Alerts view as with metrics.'

      Here the user has also created application alerting rule for the owned app which is firing and visible on dev-console when logged with cluster-admin.

      How reproducible:
      Always

      Actual Result: User is not able to see 'Alerts' section under dev-console

      Expected Result: User should see Alerts section as per the AC of the epic.

      Screenshot attached of console. UserID is testuser-0

      Logs:

      $ oc projects
      You have one project on this server: "my-app".
      Using project "my-app" on server "https://api.kbharti-0807gcp.qe.gcp.devcluster.openshift.com:6443".
      
      [kbharti@desktop loki-alerts]$ oc get pods
      NAME                   READY   STATUS    RESTARTS   AGE
      centos-logtest-ws9kc   1/1     Running   0          4h50m
      
      [kbharti@desktop loki-alerts]$ oc get alertingrule
      NAME                  AGE
      dev-workload-alerts   4h50m
      

      Steps to reproduce:
      1) Forward logs to Loki with admin
      2) Log with non-admin user and create app, alerting rule.
      3) Check for Alerts section under dev-console

      Note: This test was done with PR https://github.com/openshift/console/pull/12940

              gbernal@redhat.com Gabriel Bernal
              rhn-support-kbharti Kabir Bharti
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: