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

Troubleshooting panel generates incorrect URL for Pod label searches

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • 0.4.0
    • 0.4.0
    • korrel8r
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Important
    • None

      The troubleshooting panel puts label search information in the "q=" URL parameter, where it is ignored by the console. This should be in a "labels=" parameter.

      For example: current URL:

      https://console-openshift-console.apps.snoflake.home/k8s/ns/netobserv/pods?q=app.kubernetes.io%2Fcomponent%3Dquery-frontend

      Should be:

      https://console-openshift-console.apps.snoflake.home/k8s/ns/netobserv/pods?labels=app.kubernetes.io%2Fcomponent%3Dquery-frontend 

       

            [COO-298] Troubleshooting panel generates incorrect URL for Pod label searches

            Errata Tool added a comment -

            This issue has been addressed in the following products:

            CLUSTER-OBSERVABILITY-OPERATOR-0.4-RHEL-8

            Via RHEA-2024:6699 https://access.redhat.com/errata/RHEA-2024:6699

            Errata Tool added a comment - This issue has been addressed in the following products: CLUSTER-OBSERVABILITY-OPERATOR-0.4-RHEL-8 Via RHEA-2024:6699 https://access.redhat.com/errata/RHEA-2024:6699

            Anping Li added a comment -

            Verified on 0.4.0
            1) query :  k8s:Pod.v1.:{"namespace":"default","labels":{"app":"bad-deployment"}}  in trouble-shooting pannel.

            2) click the  pods node.

            Result:
            we are redirect to  https://console-openshift-console.apps.anli416.qe.gcp.devcluster.openshift.com/k8s/ns/default/pods?labels=app%3Dbad-deployment

            Anping Li added a comment - Verified on 0.4.0 1) query :  k8s:Pod.v1.:{"namespace":"default","labels":{"app":"bad-deployment"}}  in trouble-shooting pannel. 2) click the  pods node. Result: we are redirect to  https://console-openshift-console.apps.anli416.qe.gcp.devcluster.openshift.com/k8s/ns/default/pods?labels=app%3Dbad-deployment

            Anping Li added a comment - - edited

            Get failed: netflow:network:

            {SrcK8S_Namespace="netobserv"}

             

             Get "https://loki-gateway-http.netobserv.svc:8080/api/logs/v1/network/loki/api/v1/query_range?direction=BACKWARD&end=1725866692843746259&limit=1000&query=%7BSrcK8S_Namespace%3D%22netobserv%22%7D&start=1725863092843746259": context deadline
            exceeded

            failed to get endpoint for "netobserv-plugin" plugin in console pod logs.

            E0909 03:36:28.526130       1 handlers.go:141] failed to get endpoint for "netobserv-plugin" plugin
            2024/09/09 03:36:34 CheckOrigin: Proxy has no configured Origin. Allowing origin [https://console-openshift-console.apps.anliazst.qe.azure.devcluster.openshift.com] to wss://kubernetes.default.svc/apis/policy/v1/namespaces/default/poddisruptionbudgets?watch=true&resourceVersion=109887
            2024/09/09 03:36:34 CheckOrigin: Proxy has no configured Origin. Allowing origin [https://console-openshift-console.apps.anliazst.qe.azure.devcluster.openshift.com] to wss://kubernetes.default.svc/apis/project.openshift.io/v1/projects?watch=true
            2024/09/09 03:36:34 CheckOrigin: Proxy has no configured Origin. Allowing origin [https://console-openshift-console.apps.anliazst.qe.azure.devcluster.openshift.com] to wss://kubernetes.default.svc/api/v1/namespaces/default/pods?watch=true&fieldSelector=metadata.name%3Dbad-deployment-788d95cd8b-54s87
            2024/09/09 03:36:34 CheckOrigin: Proxy has no configured Origin. Allowing origin [https://console-openshift-console.apps.anliazst.qe.azure.devcluster.openshift.com] to wss://kubernetes.default.svc/apis/discovery.k8s.io/v1/namespaces/default/endpointslices?watch=true&resourceVersion=109888
            2024/09/09 03:36:48 CheckOrigin: Proxy has no configured Origin. Allowing origin [https://console-openshift-console.apps.anliazst.qe.azure.devcluster.openshift.com] to wss://kubernetes.default.svc/api/v1/namespaces/default/events?fieldSelector=involvedObject.uid%3D4bff65fd-00a3-47d4-8f8b-a895dad95bcd%2CinvolvedObject.name%3Dbad-deployment-788d95cd8b-54s87%2CinvolvedObject.kind%3DPod&watch=true
            E0909 03:37:04.222062       1 handlers.go:141] failed to get endpoint for "netobserv-plugin" plugin

            Anping Li added a comment - - edited Get failed: netflow:network: {SrcK8S_Namespace="netobserv"}   Get "https: //loki-gateway-http.netobserv.svc:8080/api/logs/v1/network/loki/api/v1/query_range?direction=BACKWARD&end=1725866692843746259&limit=1000&query=%7BSrcK8S_Namespace%3D%22netobserv%22%7D&start=1725863092843746259" : context deadline exceeded failed to get endpoint for "netobserv-plugin" plugin in console pod logs. E0909 03:36:28.526130       1 handlers.go:141] failed to get endpoint for "netobserv-plugin" plugin 2024/09/09 03:36:34 CheckOrigin: Proxy has no configured Origin. Allowing origin [https: //console-openshift-console.apps.anliazst.qe.azure.devcluster.openshift.com] to wss://kubernetes. default .svc/apis/policy/v1/namespaces/ default /poddisruptionbudgets?watch= true &resourceVersion=109887 2024/09/09 03:36:34 CheckOrigin: Proxy has no configured Origin. Allowing origin [https: //console-openshift-console.apps.anliazst.qe.azure.devcluster.openshift.com] to wss://kubernetes. default .svc/apis/project.openshift.io/v1/projects?watch= true 2024/09/09 03:36:34 CheckOrigin: Proxy has no configured Origin. Allowing origin [https: //console-openshift-console.apps.anliazst.qe.azure.devcluster.openshift.com] to wss://kubernetes. default .svc/api/v1/namespaces/ default /pods?watch= true &fieldSelector=metadata.name%3Dbad-deployment-788d95cd8b-54s87 2024/09/09 03:36:34 CheckOrigin: Proxy has no configured Origin. Allowing origin [https: //console-openshift-console.apps.anliazst.qe.azure.devcluster.openshift.com] to wss://kubernetes. default .svc/apis/discovery.k8s.io/v1/namespaces/ default /endpointslices?watch= true &resourceVersion=109888 2024/09/09 03:36:48 CheckOrigin: Proxy has no configured Origin. Allowing origin [https: //console-openshift-console.apps.anliazst.qe.azure.devcluster.openshift.com] to wss://kubernetes. default .svc/api/v1/namespaces/ default /events?fieldSelector=involvedObject.uid%3D4bff65fd-00a3-47d4-8f8b-a895dad95bcd%2CinvolvedObject.name%3Dbad-deployment-788d95cd8b-54s87%2CinvolvedObject.kind%3DPod&watch= true E0909 03:37:04.222062       1 handlers.go:141] failed to get endpoint for "netobserv-plugin" plugin

            GitLab CEE Bot added a comment - Peter Yurkovich mentioned this issue in merge request !169 of coo-midstream / Cluster Observability Operator Midstream on branch COO-298-update-troubleshooting-panel-commit : COO-298 : Update troubleshooting panel commit

              rhn-engineering-aconway Alan Conway
              rhn-engineering-aconway Alan Conway
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: