-
Type: Bug
-
Status: Resolved (View Workflow)
-
Priority: High
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: February
-
Component/s: NEM
-
Story Points:2
-
Epic Link:
In repeated builds sometimes NEM sets the ONU Device admin state to DISABLE even if the ONU is in the whitelist.
How to reproduce:
- from a running system remove the OLT
- provision the OLT again
What is it happening?
- ONOS keeps track of the logical device and its ports when the OLT goes offline
- when the OLT comes back online it has no ONUs attached (they are still going through the OMCI state machine)
- ONOS thinks the port is gone and send an event on kafka
- NEM disables the ONU in VOLTHA
How to fix it:
- Ignore onu.events with admin_state=DISABLED if we have no ATTWorkflowServiceInstance for that device (that means that the device is new and the event is due to previous state)
Information from ONOS when OLT/ONU was removed from voltha after a successful activation
=============================================================
onos> devices
id=of:000000000ac014ce, available=false, local-status=disconnected 8m28s ago, role=NONE, type=SWITCH, mfr=VOLTHA Project, hw=, sw=, serial=EC1838000853, chassis=ac014ce, driver=voltha, chann
elId=10.233.75.18:58404, locType=none, managementAddress=10.233.75.18, name=olt-1, protocol=OF_13
id=of:0000cc37ab5b6da8, available=true, local-status=connected 4h20m ago, role=MASTER, type=SWITCH, mfr=Accton Corp., hw=x86-64-accton-as6712-32x-r0, sw=ofdpa 3.0.5.5+accton1.7-1, serial=671
232X1534021, chassis=cc37ab5b6da8, driver=ofdpa3, channelId=10.233.102.128:53381, locType=none, managementAddress=10.233.102.128, name=Fabric Switch - 1, protocol=OF_13
onos> ports -e
id=of:000000000ac014ce, available=false, local-status=disconnected 8m39s ago, role=NONE, type=SWITCH, mfr=VOLTHA Project, hw=, sw=, serial=EC1838000853, chassis=ac014ce, driver=voltha, chann
elId=10.233.75.18:58404, locType=none, managementAddress=10.233.75.18, name=olt-1, protocol=OF_13
id=of:0000cc37ab5b6da8, available=true, local-status=connected 4h20m ago, role=MASTER, type=SWITCH, mfr=Accton Corp., hw=x86-64-accton-as6712-32x-r0, sw=ofdpa 3.0.5.5+accton1.7-1, serial=671
232X1534021, chassis=cc37ab5b6da8, driver=ofdpa3, channelId=10.233.102.128:53381, locType=none, managementAddress=10.233.102.128, name=Fabric Switch - 1, protocol=OF_13
port=1, state=enabled, type=fiber, speed=40000 , adminState=enabled, portMac=cc:37:ab:5b:6d:a9, portName=port1
port=2, state=enabled, type=fiber, speed=40000 , adminState=enabled, portMac=cc:37:ab:5b:6d:a9, portName=port2
port=3, state=enabled, type=fiber, speed=40000 , adminState=enabled, portMac=cc:37:ab:5b:6d:a9, portName=port3
port=7, state=enabled, type=fiber, speed=40000 , adminState=enabled, portMac=cc:37:ab:5b:6d:a9, portName=port7
port=8, state=enabled, type=fiber, speed=40000 , adminState=enabled, portMac=cc:37:ab:5b:6d:a9, portName=port8
port=9, state=enabled, type=fiber, speed=40000 , adminState=enabled, portMac=cc:37:ab:5b:6d:a9, portName=port9
onos> ports
id=of:000000000ac014ce, available=false, local-status=disconnected 8m46s ago, role=NONE, type=SWITCH, mfr=VOLTHA Project, hw=, sw=, serial=EC1838000853, chassis=ac014ce, driver=voltha, channelId=10.233.75.18:58404, locType=none, managementAddress=10.233.75.18, name=olt-1, protocol=OF_13
port=16, state=disabled, type=fiber, speed=0 , adminState=enabled, portMac=08:00:00:00:00:10, portName=ALPHe3d1cfa7
port=65536, state=disabled, type=fiber, speed=0 , adminState=enabled, portMac=00:00:00:01:00:00, portName=nni-65536
id=of:0000cc37ab5b6da8, available=true, local-status=connected 4h20m ago, role=MASTER, type=SWITCH, mfr=Accton Corp., hw=x86-64-accton-as6712-32x-r0, sw=ofdpa 3.0.5.5+accton1.7-1, serial=671232X1534021, chassis=cc37ab5b6da8, driver=ofdpa3, channelId=10.233.102.128:53381, locType=none, managementAddress=10.233.102.128, name=Fabric Switch - 1, protocol=OF_13
port=1, state=enabled, type=fiber, speed=40000 , adminState=enabled, portMac=cc:37:ab:5b:6d:a9, portName=port1
port=2, state=enabled, type=fiber, speed=40000 , adminState=enabled, portMac=cc:37:ab:5b:6d:a9, portName=port2
port=3, state=enabled, type=fiber, speed=40000 , adminState=enabled, portMac=cc:37:ab:5b:6d:a9, portName=port3
port=4, state=disabled, type=fiber, speed=40000 , adminState=enabled, portMac=cc:37:ab:5b:6d:a9, portName=port4
port=5, state=disabled, type=fiber, speed=40000 , adminState=enabled, portMac=cc:37:ab:5b:6d:a9, portName=port5
port=6, state=disabled, type=fiber, speed=40000 , adminState=enabled, portMac=cc:37:ab:5b:6d:a9, portName=port6
port=7, state=enabled, type=fiber, speed=40000 , adminState=enabled, portMac=cc:37:ab:5b:6d:a9, portName=port7
port=8, state=enabled, type=fiber, speed=40000 , adminState=enabled, portMac=cc:37:ab:5b:6d:a9, portName=port8
port=9, state=enabled, type=fiber, speed=40000 , adminState=enabled, portMac=cc:37:ab:5b:6d:a9, portName=port9
port=10, state=disabled, type=fiber, speed=40000 , adminState=enabled, portMac=cc:37:ab:5b:6d:a9, portName=port10
port=11, state=disabled, type=fiber, speed=40000 , adminState=enabled, portMac=cc:37:ab:5b:6d:a9, portName=port11
port=12, state=disabled, type=fiber, speed=40000 , adminState=enabled, portMac=cc:37:ab:5b:6d:a9, portName=port12
port=13, state=disabled, type=fiber, speed=40000 , adminState=enabled, portMac=cc:37:ab:5b:6d:a9, portName=port13
port=14, state=disabled, type=fiber, speed=40000 , adminState=enabled, portMac=cc:37:ab:5b:6d:a9, portName=port14
# | Subject | Branch | Project | Status | CR | V |
---|---|---|---|---|---|---|
13101,5 | [SEBA-504] Not disabling ONU if it was not known to the system yet | master | att-workflow-driver | Status: ABANDONED | +2 | 0 |
13124,3 | [SEBA-504] Not disabling ONU as result of an ONOS event | 1.0 | att-workflow-driver | Status: MERGED | +2 | +1 |
13139,1 | [SEBA-504] Not disabling ONU as result of an ONOS event | master | att-workflow-driver | Status: MERGED | +2 | +1 |
13140,1 | [SEBA-504] Using 1.0.19 version of att-workflow-driver synchronizer | master | helm-charts | Status: MERGED | +2 | +1 |