Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-1598

NPE in FlowObjectiveManager when a device disconnects

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.0
    • Component/s: None
    • Labels:
      None
    • Environment:
    • Sprint:
      Cardinal Sprint 2 (4/6-4/17)

      Description

      This log is from a Single Node cluster, but I have seen this in a multi node cluster as well.

      2015-04-08 11:19:19,957 | WARN  | w I/O worker #10 | ntrollerImpl$OpenFlowSwitchAgent | 157 - org.onosproject.onos-of-ctl - 1.2.0.SNAPSHOT | removal for 00:00:00:00:00:00:50:00
      2015-04-08 11:19:19,957 | INFO  | w I/O worker #10 | DeviceManager                    | 77 - org.onosproject.onos-core-net - 1.2.0.SNAPSHOT | Device of:0000000000005000 disconnected from this node
      2015-04-08 11:19:19,958 | INFO  | w I/O worker #10 | GossipDeviceStore                | 79 - org.onosproject.onos-core-dist - 1.2.0.SNAPSHOT | Notifying peers of a ports update topology event for providerId: ProviderId{scheme=of, id=org.onosproject.provider.openflow, ancillary=false} and deviceId: of:0000000000005000
      2015-04-08 11:19:19,959 | INFO  | w I/O worker #10 | GossipDeviceStore                | 79 - org.onosproject.onos-core-dist - 1.2.0.SNAPSHOT | Notifying peers of a device offline topology event for deviceId: of:0000000000005000 MastershipBasedTimestamp{termNumber=1, sequenceNumber=16202}
      2015-04-08 11:19:19,959 | INFO  | w I/O worker #10 | DistributedMastershipStore       | 79 - org.onosproject.onos-core-dist - 1.2.0.SNAPSHOT | 10.128.30.11 giving up and going to NONE for of:0000000000005000
      2015-04-08 11:19:19,962 | INFO  | w I/O worker #10 | DeviceManager                    | 77 - org.onosproject.onos-core-net - 1.2.0.SNAPSHOT | Device of:0000000000005000 disconnected from cluster
      2015-04-08 11:19:19,962 | WARN  | w I/O worker #10 | ntrollerImpl$OpenFlowSwitchAgent | 157 - org.onosproject.onos-of-ctl - 1.2.0.SNAPSHOT | removal for 00:00:00:00:00:00:50:00
      2015-04-08 11:19:19,962 | INFO  | w I/O worker #10 | FlowStatsCollector               | 163 - org.onosproject.onos-of-provider-flow - 1.2.0.SNAPSHOT | Stopping Stats collection thread for 00:00:00:00:00:00:50:00
      2015-04-08 11:19:19,962 | WARN  | w I/O worker #10 | ntrollerImpl$OpenFlowSwitchAgent | 157 - org.onosproject.onos-of-ctl - 1.2.0.SNAPSHOT | removal for 00:00:00:00:00:00:50:00
      2015-04-08 11:19:19,962 | INFO  | w I/O worker #10 | GroupStatsCollector              | 164 - org.onosproject.onos-of-provider-group - 1.2.0.SNAPSHOT | Stopping Group Stats collection thread for 00:00:00:00:00:00:50:00
      2015-04-08 11:19:19,976 | INFO  | ew I/O worker #2 | GossipDeviceStore                | 79 - org.onosproject.onos-core-dist - 1.2.0.SNAPSHOT | Notifying peers of a port status update topology event for providerId: ProviderId{scheme=of, id=org.onosproject.provider.openflow, ancillary=false} and deviceId: of:0000000000002000
      2015-04-08 11:19:19,976 | INFO  | ew I/O worker #2 | DeviceManager                    | 77 - org.onosproject.onos-core-net - 1.2.0.SNAPSHOT | Device of:0000000000002000 port 2 status changed
      2015-04-08 11:19:19,979 | WARN  | event-dispatch-0 | AbstractListenerRegistry         | 76 - org.onosproject.onos-api - 1.2.0.SNAPSHOT | Exception encountered while processing event MastershipEvent{time=2015-04-08T11:19:19.960, type=MASTER_CHANGED, subject=of:0000000000005000, roleInfo=RoleInfo{master=null, backups=[]}}
      java.lang.NullPointerException
              at org.onosproject.net.flowobjective.impl.FlowObjectiveManager.setupDriver(FlowObjectiveManager.java:181)[77:org.onosproject.onos-core-net:1.2.0.SNAPSHOT]
              at org.onosproject.net.flowobjective.impl.FlowObjectiveManager.access$200(FlowObjectiveManager.java:58)[77:org.onosproject.onos-core-net:1.2.0.SNAPSHOT]
              at org.onosproject.net.flowobjective.impl.FlowObjectiveManager$InnerMastershipListener.event(FlowObjectiveManager.java:139)[77:org.onosproject.onos-core-net:1.2.0.SNAPSHOT]
              at org.onosproject.net.flowobjective.impl.FlowObjectiveManager$InnerMastershipListener.event(FlowObjectiveManager.java:133)[77:org.onosproject.onos-core-net:1.2.0.SNAPSHOT]
              at org.onosproject.event.AbstractListenerRegistry.process(AbstractListenerRegistry.java:63)[76:org.onosproject.onos-api:1.2.0.SNAPSHOT]
              at org.onosproject.event.impl.CoreEventDispatcher$DispatchLoop.run(CoreEventDispatcher.java:95)[77:org.onosproject.onos-core-net:1.2.0.SNAPSHOT]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_40]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_40]
              at java.lang.Thread.run(Thread.java:745)[:1.8.0_40]
      2015-04-08 11:19:19,987 | WARN  | event-dispatch-0 | AbstractListenerRegistry         | 76 - org.onosproject.onos-api - 1.2.0.SNAPSHOT | Exception encountered while processing event DeviceEvent{time=2015-04-08T11:19:19.959, type=DEVICE_AVAILABILITY_CHANGED, subject=DefaultDevice{id=of:0000000000005000, type=SWITCH, manufacturer=Nicira, Inc., hwVersion=Open vSwitch, swVersion=2.3.0, serialNumber=None}}
      java.lang.NullPointerException
              at org.onosproject.net.flowobjective.impl.FlowObjectiveManager.setupDriver(FlowObjectiveManager.java:181)[77:org.onosproject.onos-core-net:1.2.0.SNAPSHOT]
              at org.onosproject.net.flowobjective.impl.FlowObjectiveManager.access$200(FlowObjectiveManager.java:58)[77:org.onosproject.onos-core-net:1.2.0.SNAPSHOT]
              at org.onosproject.net.flowobjective.impl.FlowObjectiveManager$InnerDeviceListener.event(FlowObjectiveManager.java:158)[77:org.onosproject.onos-core-net:1.2.0.SNAPSHOT]
              at org.onosproject.net.flowobjective.impl.FlowObjectiveManager$InnerDeviceListener.event(FlowObjectiveManager.java:152)[77:org.onosproject.onos-core-net:1.2.0.SNAPSHOT]
              at org.onosproject.event.AbstractListenerRegistry.process(AbstractListenerRegistry.java:63)[76:org.onosproject.onos-api:1.2.0.SNAPSHOT]
              at org.onosproject.event.impl.CoreEventDispatcher$DispatchLoop.run(CoreEventDispatcher.java:95)[77:org.onosproject.onos-core-net:1.2.0.SNAPSHOT]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_40]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_40]
              at java.lang.Thread.run(Thread.java:745)[:1.8.0_40]
      

        Attachments

        1. karaf.log
          285 kB
        2. karaf.log.1
          1.00 MB
        3. karaf.log.2
          1.00 MB
        4. karaf.log.3
          1.00 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            ash ash
            Reporter:
            jhall Jon Hall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: