-
Type: Bug
-
Status: Resolved (View Workflow)
-
Priority: Medium
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: VOLTHA v2.12
-
Component/s: openonu-adapter
-
Labels:None
-
Story Points:1
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"}