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

OpenOnuAdapterGo: MIB sync handling fails , when the MIB template has NULL terminated strings.

    XMLWordPrintable

    Details

    • Story Points:
      1

      Description

      The json unmarshal fails to unmarshal the MIB template when the previously stored MIB template of an ONU contains NULL terminated strings . Further, MIB sync activity and activation of the ONU is suspended.

      {"level":"error","ts":"2023-09-26T05:53:43.295Z","caller":"mib/mib_sync.go:1444","msg":"MibSync FSM - Failed to unmarshal template","instanceId":"vstack1-adapter-openonu-5d6d6f9886-dk8wl","pkg":"mib","error":"invalid character '\\x00' in string literal","device-id":"fcfe5ed7-c250-4ede-8985-066baf7f1da2","stacktrace":"github.com/opencord/voltha-openonu-adapter-go/internal/pkg/mib.(*OnuDeviceEntry).getMibFromTemplate\n\t/go/src/internal/pkg/mib/mib_sync.go:1444\ngithub.com/opencord/voltha-openonu-adapter-go/internal/pkg/mib.(*OnuDeviceEntry).enterGettingMibTemplateState\n\t/go/src/internal/pkg/mib/mib_sync.go:309\ngithub.com/opencord/voltha-openonu-adapter-go/internal/pkg/mib.NewOnuDeviceEntry.func11\n\t/go/src/internal/pkg/mib/onu_device_entry.go:365\ngithub.com/looplab/fsm.(*FSM).enterStateCallbacks\n\t/go/src/vendor/github.com/looplab/fsm/fsm.go:403\ngithub.com/looplab/fsm.(*FSM).Event.func1\n\t/go/src/vendor/github.com/looplab/fsm/fsm.go:308\ngithub.com/looplab/fsm.transitionerStruct.transition\n\t/go/src/vendor/github.com/looplab/fsm/fsm.go:354\ngithub.com/looplab/fsm.(*FSM).doTransition\n\t/go/src/vendor/github.com/looplab/fsm/fsm.go:339\ngithub.com/looplab/fsm.(*FSM).Event\n\t/go/src/vendor/github.com/looplab/fsm/fsm.go:322\ngithub.com/opencord/voltha-openonu-adapter-go/internal/pkg/mib.(*OnuDeviceEntry).handleOmciGetResponseErrors\n\t/go/src/internal/pkg/mib/mib_sync.go:1184\ngithub.com/opencord/voltha-openonu-adapter-go/internal/pkg/mib.(*OnuDeviceEntry).handleOmciGetResponseMessage\n\t/go/src/internal/pkg/mib/mib_sync.go:951\ngithub.com/opencord/voltha-openonu-adapter-go/internal/pkg/mib.(*OnuDeviceEntry).handleOmciMessage\n\t/go/src/internal/pkg/mib/mib_sync.go:1068\ngithub.com/opencord/voltha-openonu-adapter-go/internal/pkg/mib.(*OnuDeviceEntry).processMibSyncMessages\n\t/go/src/internal/pkg/mib/mib_sync.go:554"} 
      

       

       

        Attachments

        1. DPU_MIB_template.txt
          84 kB
          Praneeth Nalmas
        2. voltha_log_2023-09-26_10-20-07.tar.gz
          4.92 MB
          Praneeth Nalmas
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            pnalmas Praneeth Nalmas
            Reporter:
            pnalmas Praneeth Nalmas
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes