kiali: Cannot load the graph: deployments.apps "istiod" not found

Describe the bug I am getting “Sorry, there was a problem. Try a refresh or navigate to a different page.” when click on object under Application Tab in Kiali UI

Kiali UI 1.31.0 (faa0a96400cd1b712a13a29f65cc34c270eed386)

Kiali Server v1.31.0 (26ce458)

Kiali Container v1.31.0

Components Istio 1.8.1

Prometheus 2.22.0

Kubernetes v1.18.12-gke.1210

Deployment Tool: Helm v3.5

I am using kiali-operator v1.31 for deployment

Here is my external service configuration of Istio in kiali CR

external_services:
  istio:
    component_status:
      enabled: true
      components:
        - app_label: istiod
          is_core: true
          namespace: istio-system
        - app_label: istio-ingressgateway
          is_core: true
          namespace: istio-system
        - app_label: istio-egressgateway
          is_core: false
          namespace: istio-system
    config_map_name: istio-1-8-1
    url_service_version: http://istiod-1-8-1.istio-system:15014/version
    envoy_admin_local_port: 15000
    istio_identity_domain: "svc.cluster.local"
    istio_injection_annotation: "sidecar.istio.io/inject"
    istio_sidecar_annotation: "sidecar.istio.io/status"

Kiali Console complains about component status of the istio-egressgateway which is expected because we are using egress gateway.

Screen Shot 2021-03-17 at 12 31 41 PM

I can see that kiali recognizes the Istio version i.e. 1.8.1 which means that istio version url config is working but whenever I try to access the Graph on Kiali console, it triggers this exception in the logs

2021-03-17T16:32:57Z DBG Skipping unexpected log line []
2021-03-17T16:32:57Z DBG Skipping unexpected log line []
2021-03-17T16:33:02Z ERR deployments.apps "istiod" not found: goroutine 3130953 [running]:
runtime/debug.Stack(0xc000a20960, 0x23, 0xc0034cc4a0)
/usr/local/go/src/runtime/debug/stack.go:24 +0x9f
github.com/kiali/kiali/handlers.handlePanic(0x1d61a20, 0xc0001efe30)
/home/fedora/workspace/kiali-workflow/kiali-release/src/github.com/kiali/kiali/handlers/graph.go:86 +0x159
panic(0x18455a0, 0xc0034cc4a0)
/usr/local/go/src/runtime/panic.go:969 +0x1b9
github.com/kiali/kiali/graph.CheckError(0x1d1e060, 0xc0003e8aa0)
/home/fedora/workspace/kiali-workflow/kiali-release/src/github.com/kiali/kiali/graph/util.go:38 +0x9a
github.com/kiali/kiali/graph/telemetry/istio/appender.IdleNodeAppender.AppendGraph(0xc00267211a, 0x8, 0xc00ca9af86fe0001, 0xc0011fdf50, 0xc000528fa0, 0xc001e37400)
/home/fedora/workspace/kiali-workflow/kiali-release/src/github.com/kiali/kiali/graph/telemetry/istio/appender/idle_node.go:58 +0x3d7
github.com/kiali/kiali/graph/telemetry/istio.BuildNamespacesTrafficMap(0xc0011fd920, 0x0, 0xc0026ab620, 0x6, 0x6, 0x100, 0xc0011fd500, 0x13a52453c000, 0xc00267211a, 0x8, ...)
/home/fedora/workspace/kiali-workflow/kiali-release/src/github.com/kiali/kiali/graph/telemetry/istio/istio.go:48 +0x282
github.com/kiali/kiali/graph/api.graphNamespacesIstio(0xc0024a0780, 0xc0016e8e80, 0x1b03e15, 0x9, 0x1afec47, 0x5, 0x1afe07c, 0x4, 0x13a52453c000, 0xc00267211a, ...)
/home/fedora/workspace/kiali-workflow/kiali-release/src/github.com/kiali/kiali/graph/api/api.go:44 +0xb8
github.com/kiali/kiali/graph/api.GraphNamespaces(0xc0024a0780, 0x1b03e15, 0x9, 0x1afec47, 0x5, 0x1afe07c, 0x4, 0x13a52453c000, 0xc00267211a, 0x8, ...)
/home/fedora/workspace/kiali-workflow/kiali-release/src/github.com/kiali/kiali/graph/api/api.go:26 +0x178
github.com/kiali/kiali/handlers.GraphNamespaces(0x1d61a20, 0xc0001efe30, 0xc000eb5900)
/home/fedora/workspace/kiali-workflow/kiali-release/src/github.com/kiali/kiali/handlers/graph.go:51 +0x158
net/http.HandlerFunc.ServeHTTP(0x1bcde48, 0x1d61a20, 0xc0001efe30, 0xc000eb5900)
/usr/local/go/src/net/http/server.go:2042 +0x44
github.com/kiali/kiali/routing.metricHandler.func1(0x1d61a20, 0xc0001efe30, 0xc000eb5900)
/home/fedora/workspace/kiali-workflow/kiali-release/src/github.com/kiali/kiali/routing/router.go:90 +0xa3
net/http.HandlerFunc.ServeHTTP(0xc0002def00, 0x1d61a20, 0xc0001efe30, 0xc000eb5900)
/usr/local/go/src/net/http/server.go:2042 +0x44
github.com/kiali/kiali/handlers.AuthenticationHandler.Handle.func1(0x1d61a20, 0xc0001efe30, 0xc000eb4900)
/home/fedora/workspace/kiali-workflow/kiali-release/src/github.com/kiali/kiali/handlers/authentication.go:622 +0x1ee
net/http.HandlerFunc.ServeHTTP(0xc000150de0, 0x1d61a20, 0xc0001efe30, 0xc000eb4900)
/usr/local/go/src/net/http/server.go:2042 +0x44
github.com/kiali/kiali/server.plainHttpMiddleware.func1(0x1d61a20, 0xc0001efe30, 0xc000eb4900)
/home/fedora/workspace/kiali-workflow/kiali-release/src/github.com/kiali/kiali/server/server.go:127 +0x6c
net/http.HandlerFunc.ServeHTTP(0xc000528f60, 0x1d61a20, 0xc0001efe30, 0xc000eb4900)
/usr/local/go/src/net/http/server.go:2042 +0x44
github.com/gorilla/mux.(*Router).ServeHTTP(0xc000434840, 0x1d61a20, 0xc0001efe30, 0xc000eb4500)
/home/fedora/workspace/kiali-workflow/kiali-release/pkg/mod/github.com/gorilla/mux@v1.7.4/mux.go:210 +0xd3
github.com/NYTimes/gziphandler.GzipHandlerWithOpts.func1.1(0x1d61660, 0xc0003d0700, 0xc000eb4500)
/home/fedora/workspace/kiali-workflow/kiali-release/pkg/mod/github.com/!n!y!times/gziphandler@v1.1.1/gzip.go:336 +0x225
net/http.HandlerFunc.ServeHTTP(0xc0002a0720, 0x1d61660, 0xc0003d0700, 0xc000eb4500)
/usr/local/go/src/net/http/server.go:2042 +0x44
net/http.(*ServeMux).ServeHTTP(0xc00014f380, 0x1d61660, 0xc0003d0700, 0xc000eb4500)
/usr/local/go/src/net/http/server.go:2417 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0004480e0, 0x1d61660, 0xc0003d0700, 0xc000eb4500)
/usr/local/go/src/net/http/server.go:2843 +0xa3
net/http.(*conn).serve(0xc002514500, 0x1d660e0, 0xc00277c640)
/usr/local/go/src/net/http/server.go:1925 +0x8ad
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2969 +0x36c
2021-03-17T16:33:08Z ERR container istio-proxy is not valid for pod kiali-855f6647c7-qtnv8

and at the same time, this is what I get on the console

Screen Shot 2021-03-17 at 12 32 28 PM

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 25 (8 by maintainers)

Most upvoted comments

Thanks guys for all the help!