Uploaded image for project: 'VOLTHA'
  1. VOLTHA
  2. VOL-5184

olt adaptor will crash in case the child device lost is sent during olt reconcile

    XMLWordPrintable

    Details

    • Story Points:
      1

      Description

      if the child device lost comes in from core during olt reconcile and since the olt resource manager objects are not ready adapter will crash

      {"level":"info","ts":"2024-06-15T07:32:40.243Z","caller":"core/openolt.go:349","msg":"Child-device-lost","instanceId":"vstack2-adapter-openolt-5bc98ddfcb-cwzkt","parent-device-id":"091b4a58-5001-350a-8df8-d9377fa26849","child-device-id":"10b0de87-3ca2-44f0-8cd3-439dcd1aa447"}

      panic: runtime error: index out of range [11] with length 0

      goroutine 3098 [running]:
      github.com/opencord/voltha-openolt-adapter/internal/pkg/core.(*DeviceHandler).ChildDeviceLost(0xc000cc0600, 0x144c000, 0xc00538c810, 0x1c2000000b, 0xc0052f24b0, 0xc, 0x0, 0x0)
      /go/src/internal/pkg/core/device_handler.go:3101 +0x1b75
      github.com/opencord/voltha-openolt-adapter/internal/pkg/core.(*OpenOLT).ChildDeviceLost(0xc00069bce0, 0x144c000, 0xc00538c7b0, 0xc0053826e0, 0xc00069bce0, 0x132bf08, 0xc0000dbb10)
      /go/src/internal/pkg/core/openolt.go:351 +0x25c
      github.com/opencord/voltha-protos/v5/go/adapter_service._AdapterService_ChildDeviceLost_Handler.func1(0x144c000, 0xc00538c7b0, 0x12a9200, 0xc0053826e0, 0x1c0b5c0, 0x144c000, 0xc00538c7b0, 0x1459580)
      /go/src/vendor/github.com/opencord/voltha-protos/v5/go/adapter_service/adapter_service.pb.go:855 +0x89
      github.com/opencord/voltha-lib-go/v7/pkg/grpc.mkServerInterceptor.func1(0x144c000, 0xc00538c7b0, 0x12a9200, 0xc0053826e0, 0xc005386380, 0xc004ddf590, 0x0, 0x1459580, 0x0, 0x0)
      /go/src/vendor/github.com/opencord/voltha-lib-go/v7/pkg/grpc/server.go:158 +0x63
      github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1(0x144c000, 0xc00538c7b0, 0x12a9200, 0xc0053826e0, 0x12d83dc, 0xd, 0x1308cf6, 0x2f)
      /go/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25 +0x63
      github.com/grpc-ecosystem/go-grpc-middleware/tracing/opentracing.UnaryServerInterceptor.func1(0x144c000, 0xc00538c780, 0x12a9200, 0xc0053826e0, 0xc005386380, 0xc0053863a0, 0xe2229a, 0x11c9540, 0xc0053863c0, 0xc005386380)
      /go/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/tracing/opentracing/server_interceptors.go:38 +0x119
      github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1(0x144c000, 0xc00538c780, 0x12a9200, 0xc0053826e0, 0xc000572000, 0x0, 0xc0051639e0, 0x40e0f8)
      /go/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25 +0x63
      github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1(0x144c000, 0xc00538c780, 0x12a9200, 0xc0053826e0, 0xc005386380, 0xc004ddf590, 0xc003122a50, 0x49a426, 0x11ee7c0, 0xc00538c780)
      /go/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:34 +0xd7
      github.com/opencord/voltha-protos/v5/go/adapter_service._AdapterService_ChildDeviceLost_Handler(0x12b0740, 0xc00069bce0, 0x144c000, 0xc00538c780, 0xc00538a4e0, 0xc0004954d0, 0x144c000, 0xc00538c780, 0xc000b0a800, 0x7da)
      /go/src/vendor/github.com/opencord/voltha-protos/v5/go/adapter_service/adapter_service.pb.go:857 +0x150
      google.golang.org/grpc.(*Server).processUnaryRPC(0xc000703980, 0x1456598, 0xc0007c6300, 0xc00506c400, 0xc0001dbce0, 0x1bcd960, 0xc00507a940, 0x0, 0x0)
      /go/src/vendor/google.golang.org/grpc/server.go:1007 +0x482
      google.golang.org/grpc.(*Server).handleStream(0xc000703980, 0x1456598, 0xc0007c6300, 0xc00506c400, 0xc00507a940)
      /go/src/vendor/google.golang.org/grpc/server.go:1287 +0xd4c
      google.golang.org/grpc.(*Server).serveStreams.func1.1(0xc0006d8030, 0xc000703980, 0x1456598, 0xc0007c6300, 0xc00506c400)
      /go/src/vendor/google.golang.org/grpc/server.go:722 +0xab
      created by google.golang.org/grpc.(*Server).serveStreams.func1
      /go/src/vendor/google.golang.org/grpc/server.go:720 +0xa5

        Attachments

        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            nbiradar Nandita Biradar
            Reporter:
            nkrishna Nikesh Krishnan
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There is 1 open Gerrit change