Uploaded image for project: 'Cluster Observability Operator'
  1. Cluster Observability Operator
  2. COO-453

COO 0.4.1 Can not display observe->Logs tab

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 0.4.1
    • 0.4.1
    • logging-uiplugin
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • None

      The observe->Logs can not be displayed when enabled Logging Plugins. consoleplugin/console-logging-plugin had been created by COO. No such issue when use 0.4.0.

      $ oc logs console-7b756b7d78-nqvq6

      I1007 13:24:52.649759       1 main.go:215] The following console plugins are enabled:
      I1007 13:24:52.649938       1 main.go:217]  - networking-console-plugin
      I1007 13:24:52.649979       1 main.go:217]  - console-logging-plugin
      I1007 13:24:52.649999       1 main.go:217]  - monitoring-plugin
      W1007 13:24:52.650031       1 authoptions.go:112] Flag inactivity-timeout is set to less then 300 seconds and will be ignored!
      I1007 13:24:52.714421       1 server.go:538] The following console endpoints are now proxied to these services:
      I1007 13:24:52.714466       1 server.go:541]  - /api/proxy/plugin/console-logging-plugin/backend/ -> https://lokistack-sample-gateway-http.openshift-logging.svc.cluster.local:8080
      I1007 13:24:52.714517       1 server.go:541]  - /api/proxy/plugin/console-logging-plugin/korrel8r/ -> https://korrel8r.openshift-operators.svc.cluster.local:9443
      I1007 13:24:52.714759       1 main.go:642] Binding to [::]:8443...
      I1007 13:24:52.714824       1 main.go:644] using TLS
      I1007 13:24:55.716848       1 metrics.go:128] serverconfig.Metrics: Update ConsolePlugin metrics...
      I1007 13:24:55.730572       1 metrics.go:138] serverconfig.Metrics: Update ConsolePlugin metrics: &map[monitoring:map[enabled:1] unknown:map[enabled:2]] (took 13.700976ms)
      I1007 13:24:57.714997       1 metrics.go:80] usage.Metrics: Count console users...
      I1007 13:24:58.219547       1 metrics.go:156] usage.Metrics: Update console users metrics: 1 kubeadmin, 0 cluster-admins, 0 developers, 0 unknown/errors (took 504.512334ms)
      $ oc get svc lokistack-sample-gateway-http -n openshift-logging
      NAME                            TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)                      AGE
      lokistack-sample-gateway-http   ClusterIP   172.30.26.228   <none>        8080/TCP,8081/TCP,8083/TCP   18m
      
      

      $ oc get consoleplugin console-logging-plugin -o json

      {
          "apiVersion": "console.openshift.io/v1",
          "kind": "ConsolePlugin",
          "metadata": {
              "creationTimestamp": "2024-10-07T13:24:25Z",
              "generation": 1,
              "name": "console-logging-plugin",
              "ownerReferences": [
                  {
                      "apiVersion": "observability.openshift.io/v1alpha1",
                      "blockOwnerDeletion": true,
                      "controller": true,
                      "kind": "UIPlugin",
                      "name": "logging",
                      "uid": "e35fa43d-bc69-4e83-9cbf-e88f9b9188b2"
                  }
              ],
              "resourceVersion": "123512",
              "uid": "721289e4-f2e2-4057-be62-5dc3c56790d4"
          },
          "spec": {
              "backend": {
                  "service": {
                      "basePath": "/",
                      "name": "logging",
                      "namespace": "openshift-operators",
                      "port": 9443
                  },
                  "type": "Service"
              },
              "displayName": "Logging View",
              "i18n": {
                  "loadType": ""
              },
              "proxy": [
                  {
                      "alias": "backend",
                      "authorization": "UserToken",
                      "endpoint": {
                          "service": {
                              "name": "lokistack-sample-gateway-http",
                              "namespace": "openshift-logging",
                              "port": 8080
                          },
                          "type": "Service"
                      }
                  },
                  {
                      "alias": "korrel8r",
                      "authorization": "UserToken",
                      "endpoint": {
                          "service": {
                              "name": "korrel8r",
                              "namespace": "openshift-operators",
                              "port": 9443
                          },
                          "type": "Service"
                      }
                  }
              ]
          }
      }
      
      

      Versions:

      cluster-observability-operator.0.4.1
      cluster-logging.v6.0.1
      loki-operator.v6.0.1
      Server Version: 4.17.0-0.nightly-2024-10-06-205207

      Step to Reproduce:

      1) Deploy Lokistack and forward logs to lokistack
      2) Enable Logging UIPlugin
      3) Check the observe->logs

      Actual result

      1) Can not see observe->logs

            gbernal@redhat.com Gabriel Bernal
            rhn-support-anli Anping Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: