Uploaded image for project: 'Multicloud'
  1. Multicloud
  2. MULTICLOUD-1308

Healthcheck API Exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Honolulu Release
    • Honolulu Release
    • MULTICLOUD-K8S
    • None

      When healtcheck operation is invoked plugin returns 201 results, however operation is not executed correctly, and an exception is raised by the plugin.

      10.233.64.1 - - [02/Mar/2021:22:53:13 +0000] "GET /v1/instance/angry_matsumoto/healthcheck HTTP/1.1" 200 0
      2021/03/02 22:53:34 http: panic serving 10.233.64.1:24851: runtime error: invalid memory address or nil pointer dereference
      goroutine 26002 [running]:
      net/http.(*conn).serve.func1(0xc000678aa0)
              /w/tools/org.jenkinsci.plugins.golang.GolangInstallation/Golang_1.14/src/net/http/server.go:1772 +0x139
      panic(0x21d6a60, 0x36bf6f0)
              /w/tools/org.jenkinsci.plugins.golang.GolangInstallation/Golang_1.14/src/runtime/panic.go:975 +0x3e3
      k8s.io/helm/pkg/releasetesting.(*Environment).streamMessage(0xc000e853b0, 0x2415021, 0xe, 0x0, 0x0, 0x0)
              /home/jenkins/go/pkg/mod/k8s.io/helm@v2.14.3+incompatible/pkg/releasetesting/environment.go:117 +0xaa
      k8s.io/helm/pkg/releasetesting.(*TestSuite).Run(0xc0008a6480, 0xc000e853b0, 0x0, 0x0)
              /home/jenkins/go/pkg/mod/k8s.io/helm@v2.14.3+incompatible/pkg/releasetesting/test_suite.go:71 +0x573
      github.com/onap/multicloud-k8s/src/k8splugin/internal/healthcheck.InstanceHCClient.Create(0x2408cd9, 0x5, 0x241025d, 0xa, 0xc000b04392, 0xf, 0x0, 0x0, 0x0, 0x0, ...)
              /w/workspace/multicloud-k8s-master-docker-golang-shell-daily/src/k8splugin/internal/healthcheck/healthcheck.go:121 +0x4a8
      github.com/onap/multicloud-k8s/src/k8splugin/api.instanceHCHandler.createHandler(0x2799c40, 0xc000114ee0, 0x7f4e740d6068, 0xc0006e2c60, 0xc00012ed00)
              /w/workspace/multicloud-k8s-master-docker-golang-shell-daily/src/k8splugin/api/instancehchandler.go:37 +0xca
      net/http.HandlerFunc.ServeHTTP(0xc000115060, 0x7f4e740d6068, 0xc0006e2c60, 0xc00012ed00)
              /w/tools/org.jenkinsci.plugins.golang.GolangInstallation/Golang_1.14/src/net/http/server.go:2012 +0x44
      github.com/gorilla/mux.(*Router).ServeHTTP(0xc0003800e0, 0x7f4e740d6068, 0xc0006e2c60, 0xc00012eb00)
              /home/jenkins/go/pkg/mod/github.com/gorilla/mux@v1.6.2/mux.go:162 +0x112
      github.com/gorilla/handlers.loggingHandler.ServeHTTP(0x274b160, 0xc000010018, 0x2749340, 0xc0003800e0, 0x2794bc0, 0xc0001ca620, 0xc00012eb00)
              /home/jenkins/go/pkg/mod/github.com/gorilla/handlers@v1.3.0/handlers.go:69 +0x233
      net/http.serverHandler.ServeHTTP(0xc0001ca0e0, 0x2794bc0, 0xc0001ca620, 0xc00012eb00)
              /w/tools/org.jenkinsci.plugins.golang.GolangInstallation/Golang_1.14/src/net/http/server.go:2807 +0xa3
      net/http.(*conn).serve(0xc000678aa0, 0x2799780, 0xc001186580)
              /w/tools/org.jenkinsci.plugins.golang.GolangInstallation/Golang_1.14/src/net/http/server.go:1895 +0x86c
      created by net/http.(*Server).Serve
              /w/tools/org.jenkinsci.plugins.golang.GolangInstallation/Golang_1.14/src/net/http/server.go:2933 +0x35c
      
      

            kbanka kbanka
            rajewluk Lukasz Rajewski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: