Uploaded image for project: 'Observability UI'
  1. Observability UI
  2. OU-651

Custom alerts from Loki alertingrule shows blank o/p in Developer window AlertsRules

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • Dev-Console
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • False
    • NEW
    • NEW

      Custom alerts from Loki alertingrule shows blank o/p in the Developer window AlertsRules

       

      Steps to reproduce 

      1> Create a user tom (example user), give him cluster-admin role.

       
      oc get clusterrolebinding -o json | jq '.items[] | select(.subjects[]?.name == "tom") | {name: .metadata.name, role: .roleRef.name}'

      { "name": "cluster-admin-0", "role": "cluster-admin" }

       

      2> Create Lokistack and alerting rule  as mentioned in https://access.redhat.com/articles/7096880

       

      3> Now login to the console as Tom >  go to the developer console > Go to Observe > Go to Alerts  > click on loki alert created in previous step > Click on AlertingRule at the bottom of the page Blank page is Seen

      (see picture 1,2,3)

      Additional pointer

      If User is added to cluster-admin group as mentioned in https://docs.openshift.com/container-platform/4.14/observability/logging/log_storage/cluster-logging-loki.html#logging-creating-new-group-cluster-admin-user-role_cluster-logging-loki

       
      # oc adm groups new cluster-admin
      group.user.openshift.io/cluster-admin created
      # oc adm groups add-users cluster-admin jim   
      group.user.openshift.io/cluster-admin added: "jim"
      # oc adm policy add-cluster-role-to-group cluster-admin cluster-admin
      clusterrole.rbac.authorization.k8s.io/cluster-admin added: "cluster-admin"
      # oc get groups
      NAME            USERS
      cluster-admin   jim  

      Still when this user go to the developer console > Go to Observe > Go to Alerts  > click on loki alert created in previous step > Click on AlertingRule at the bottom of the page Blank page is Seen 

      see picture 4 for this 

        1. 1.png
          1.png
          205 kB
        2. 2.png
          2.png
          232 kB
        3. 3.png
          3.png
          129 kB
        4. 4.png
          4.png
          154 kB
        5. Custom alerting rule blank page.pdf
          581 kB

              gbernal@redhat.com Gabriel Bernal
              rhn-support-anisal Apurva Nisal
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: