-
Type: Bug
-
Status: Resolved (View Workflow)
-
Priority: Medium
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: VOLTHA v2.1
-
Component/s: api-server
-
Labels:
-
Story Points:5
Using kind-voltha
as voltha was coming up I noticed that the api-server pod went to an `Error` state which is not normal. Looked at the log for arouter container in that POD and saw the following
{"level":"debug","ts":"2019-09-20T18:05:29.858Z","msg":"Routing returned <nil> for method Subscribe","caller":"codec.Unmarshal:88"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x845141]
goroutine 126 [running]:
github.com/opencord/voltha-go/afrouter/afrouter.(*cluster).assignBackend(0xc000106840
, 0xa33080, 0xc0006c0000, 0xc00068e580, 0x1, 0x13, 0xc000106840)
/go/src/github.com/opencord/voltha-go/afrouter/afrouter/cluster.go:160 +0x81
github.com/opencord/voltha-go/afrouter/afrouter.(*cluster).handler(0xc000106840
, 0x0, 0x0, 0xa33080, 0xc0006c0000, 0xa348e0, 0xc0006fdfb0, 0xc000552040, 0x1f, 0xc000552041, ...)
/go/src/github.com/opencord/voltha-go/afrouter/afrouter/cluster.go:140 +0x1af
github.com/opencord/voltha-go/afrouter/afrouter.(*server).handler(0xc000107300
, 0x0, 0x0, 0xa33080, 0xc0006c0000, 0x8e1401, 0xc0000f8680)
/go/src/github.com/opencord/voltha-go/afrouter/afrouter/server.go:175 +0x508
github.com/opencord/voltha-go/vendor/google.golang.org/grpc.(*Server).processStreamingRPC(0xc0004b0900
, 0xa34d00, 0xc0000e3e00, 0xc000188000, 0x0, 0xc0000f9780, 0x0, 0x0, 0x0)
/go/src/github.com/opencord/voltha-go/vendor/google.golang.org/grpc/server.go:1175 +0xacd
github.com/opencord/voltha-go/vendor/google.golang.org/grpc.(*Server).handleStream(0xc0004b0900
, 0xa34d00, 0xc0000e3e00, 0xc000188000, 0x0)
/go/src/github.com/opencord/voltha-go/vendor/google.golang.org/grpc/server.go:1260 +0xbb8
github.com/opencord/voltha-go/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1(0xc000422030
, 0xc0004b0900, 0xa34d00, 0xc0000e3e00, 0xc000188000)
/go/src/github.com/opencord/voltha-go/vendor/google.golang.org/grpc/server.go:690 +0x9f
created by
github.com/opencord/voltha-go/vendor/google.golang.org/grpc.(*Server).serveStreams.func1
/go/src/github.com/opencord/voltha-go/vendor/google.golang.org/grpc/server.go:688 +0xa1