1st connection of OVS to ODL: 16:35:26.956 INFO [epollEventLoopGroup-7-1] Hello received 16:35:26.973 INFO [epollEventLoopGroup-7-1] Device openflow:95551031163976 connected. 16:35:26.974 INFO [epollEventLoopGroup-7-1] No context chain found for device: openflow:95551031163976, creating new. 16:35:26.974 INFO [epollEventLoopGroup-7-1] ConnectionEvent: Device connected to controller, Device:/127.0.0.1:49928, NodeId:Uri{_value=openflow:95551031163976} 16:35:27.005 INFO [epollEventLoopGroup-7-1] Started timer for setting SLAVE role on device openflow:95551031163976 if no role will be set in 20s. 16:35:27.023 INFO [opendaylight-cluster-data-akka.actor.default-dispatcher-2] Entity ownership change received for node : openflow:95551031163976 : EntityOwnershipChange [entity=Entity [type=org.opendaylight.mdsal.ServiceEntityType, id=KeyedInstanceIdentifier{targetType=interface org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.core.general.entity.rev150930.Entity, path=[org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.core.general.entity.rev150930.Entity[key=EntityKey{_name=openflow:95551031163976}]]}], state=LOCAL_OWNERSHIP_GRANTED [wasOwner=false, isOwner=true, hasOwner=true], inJeopardy=false] 16:35:27.033 INFO [opendaylight-cluster-data-akka.actor.default-dispatcher-2] Starting DeviceContextImpl[NEW] service for node openflow:95551031163976 16:35:27.080 INFO [epollEventLoopGroup-7-1] Instantiated factory for class org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address 16:35:27.081 INFO [epollEventLoopGroup-7-1] Instantiated factory for class org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone 16:35:27.081 INFO [epollEventLoopGroup-7-1] Instantiated factory for class org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Prefix 16:35:27.082 INFO [epollEventLoopGroup-7-1] Instantiated factory for class org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address 16:35:27.082 INFO [epollEventLoopGroup-7-1] Instantiated factory for class org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6AddressNoZone 16:35:27.083 INFO [epollEventLoopGroup-7-1] Instantiated factory for class org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Prefix 16:35:27.084 INFO [epollEventLoopGroup-7-1] IP address of the node openflow:95551031163976 is: IpAddress{_ipv4Address=Ipv4Address{_value=127.0.0.1}} 16:35:27.085 INFO [epollEventLoopGroup-7-1] Port number of the node openflow:95551031163976 is: 49928 16:35:27.376 INFO [epollEventLoopGroup-7-1] Static node openflow:95551031163976 info: OFPMPMETERFEATURES collected 16:35:27.380 INFO [epollEventLoopGroup-7-1] Static node openflow:95551031163976 info: OFPMPGROUPFEATURES collected 16:35:27.397 INFO [epollEventLoopGroup-7-1] Instantiated factory for class org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress 16:35:27.397 INFO [epollEventLoopGroup-7-1] Instantiated factory for class org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.PhysAddress 16:35:27.401 INFO [epollEventLoopGroup-7-1] Static node openflow:95551031163976 info: OFPMPPORTDESC collected 16:35:27.445 INFO [epollEventLoopGroup-7-1] Static node openflow:95551031163976 successfully finished collecting 16:35:27.451 INFO [opendaylight-cluster-data-akka.actor.default-dispatcher-2] Starting RpcContextImpl[NEW] service for node openflow:95551031163976 16:35:27.499 INFO [opendaylight-cluster-data-akka.actor.default-dispatcher-2] Starting StatisticsContextImpl[NEW] service for node openflow:95551031163976 16:35:27.520 INFO [opendaylight-cluster-data-akka.actor.default-dispatcher-2] Starting RoleContextImpl[NEW] service for node openflow:95551031163976 16:35:27.526 INFO [opendaylight-cluster-data-akka.actor.default-dispatcher-2] SetRole called with input:SetRoleInput{_controllerRole=BECOMEMASTER, _node=NodeRef{_value=KeyedInstanceIdentifier{targetType=interface org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node, path=[org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.Nodes, org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node[key=NodeKey{_id=Uri{_value=openflow:95551031163976}}]]}}, augmentation=[]} 16:35:27.526 INFO [opendaylight-cluster-data-akka.actor.default-dispatcher-2] Requesting state change to BECOMEMASTER 16:35:27.526 INFO [opendaylight-cluster-data-akka.actor.default-dispatcher-2] RoleChangeTask called on device:openflow:95551031163976 OFPRole:BECOMEMASTER 16:35:27.527 INFO [opendaylight-cluster-data-akka.actor.default-dispatcher-2] getGenerationIdFromDevice called for device: openflow:95551031163976 16:35:27.532 INFO [opendaylight-cluster-data-akka.actor.default-dispatcher-2] Started clustering services for node openflow:95551031163976 16:35:27.535 INFO [epollEventLoopGroup-7-1] submitRoleChange called for device:Uri{_value=openflow:95551031163976}, role:BECOMEMASTER 16:35:27.537 INFO [epollEventLoopGroup-7-1] submitRoleChange onSuccess for device:Uri{_value=openflow:95551031163976}, role:BECOMEMASTER 16:35:27.623 INFO [ofppool-0] Triggering reconciliation for device NodeKey{_id=Uri{_value=openflow:95551031163976}} 16:35:27.626 INFO [ListenableFutureAdapter-thread-0] Device openflow:95551031163976 connection is enabled by reconciliation framework. 16:35:27.667 INFO [ListenableFutureAdapter-thread-0] Device openflow:95551031163976 is able to work as master. 16:35:27.669 INFO [ListenableFutureAdapter-thread-0] Role MASTER was granted to device openflow:95551031163976 16:35:27.675 INFO [ListenableFutureAdapter-thread-0] Publishing node added notification for Uri{_value=openflow:95551031163976} 16:35:27.732 INFO [ListenableFutureAdapter-thread-0] Starting statistics gathering for node openflow:95551031163976 16:35:27.764 INFO [opendaylight-cluster-data-notification-dispatcher-47] Binding-over-DOM codec shortcuts are enabled ======================================== Disconnect OVS from ODL: 16:35:26.956 INFO [epollEventLoopGroup-7-1] Hello received 16:35:26.973 INFO [epollEventLoopGroup-7-1] Device openflow:95551031163976 connected. 16:35:26.974 INFO [epollEventLoopGroup-7-1] No context chain found for device: openflow:95551031163976, creating new. 16:35:26.974 INFO [epollEventLoopGroup-7-1] ConnectionEvent: Device connected to controller, Device:/127.0.0.1:49928, NodeId:Uri{_value=openflow:95551031163976} 16:35:27.005 INFO [epollEventLoopGroup-7-1] Started timer for setting SLAVE role on device openflow:95551031163976 if no role will be set in 20s. 16:35:27.023 INFO [opendaylight-cluster-data-akka.actor.default-dispatcher-2] Entity ownership change received for node : openflow:95551031163976 : EntityOwnershipChange [entity=Entity [type=org.opendaylight.mdsal.ServiceEntityType, id=KeyedInstanceIdentifier{targetType=interface org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.core.general.entity.rev150930.Entity, path=[org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.core.general.entity.rev150930.Entity[key=EntityKey{_name=openflow:95551031163976}]]}], state=LOCAL_OWNERSHIP_GRANTED [wasOwner=false, isOwner=true, hasOwner=true], inJeopardy=false] 16:35:27.033 INFO [opendaylight-cluster-data-akka.actor.default-dispatcher-2] Starting DeviceContextImpl[NEW] service for node openflow:95551031163976 16:35:27.080 INFO [epollEventLoopGroup-7-1] Instantiated factory for class org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address 16:35:27.081 INFO [epollEventLoopGroup-7-1] Instantiated factory for class org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone 16:35:27.081 INFO [epollEventLoopGroup-7-1] Instantiated factory for class org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Prefix 16:35:27.082 INFO [epollEventLoopGroup-7-1] Instantiated factory for class org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address 16:35:27.082 INFO [epollEventLoopGroup-7-1] Instantiated factory for class org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6AddressNoZone 16:35:27.083 INFO [epollEventLoopGroup-7-1] Instantiated factory for class org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Prefix 16:35:27.084 INFO [epollEventLoopGroup-7-1] IP address of the node openflow:95551031163976 is: IpAddress{_ipv4Address=Ipv4Address{_value=127.0.0.1}} 16:35:27.085 INFO [epollEventLoopGroup-7-1] Port number of the node openflow:95551031163976 is: 49928 16:35:27.376 INFO [epollEventLoopGroup-7-1] Static node openflow:95551031163976 info: OFPMPMETERFEATURES collected 16:35:27.380 INFO [epollEventLoopGroup-7-1] Static node openflow:95551031163976 info: OFPMPGROUPFEATURES collected 16:35:27.397 INFO [epollEventLoopGroup-7-1] Instantiated factory for class org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress 16:35:27.397 INFO [epollEventLoopGroup-7-1] Instantiated factory for class org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.PhysAddress 16:35:27.401 INFO [epollEventLoopGroup-7-1] Static node openflow:95551031163976 info: OFPMPPORTDESC collected 16:35:27.445 INFO [epollEventLoopGroup-7-1] Static node openflow:95551031163976 successfully finished collecting 16:35:27.451 INFO [opendaylight-cluster-data-akka.actor.default-dispatcher-2] Starting RpcContextImpl[NEW] service for node openflow:95551031163976 16:35:27.499 INFO [opendaylight-cluster-data-akka.actor.default-dispatcher-2] Starting StatisticsContextImpl[NEW] service for node openflow:95551031163976 16:35:27.520 INFO [opendaylight-cluster-data-akka.actor.default-dispatcher-2] Starting RoleContextImpl[NEW] service for node openflow:95551031163976 16:35:27.526 INFO [opendaylight-cluster-data-akka.actor.default-dispatcher-2] SetRole called with input:SetRoleInput{_controllerRole=BECOMEMASTER, _node=NodeRef{_value=KeyedInstanceIdentifier{targetType=interface org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node, path=[org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.Nodes, org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node[key=NodeKey{_id=Uri{_value=openflow:95551031163976}}]]}}, augmentation=[]} 16:35:27.526 INFO [opendaylight-cluster-data-akka.actor.default-dispatcher-2] Requesting state change to BECOMEMASTER 16:35:27.526 INFO [opendaylight-cluster-data-akka.actor.default-dispatcher-2] RoleChangeTask called on device:openflow:95551031163976 OFPRole:BECOMEMASTER 16:35:27.527 INFO [opendaylight-cluster-data-akka.actor.default-dispatcher-2] getGenerationIdFromDevice called for device: openflow:95551031163976 16:35:27.532 INFO [opendaylight-cluster-data-akka.actor.default-dispatcher-2] Started clustering services for node openflow:95551031163976 16:35:27.535 INFO [epollEventLoopGroup-7-1] submitRoleChange called for device:Uri{_value=openflow:95551031163976}, role:BECOMEMASTER 16:35:27.537 INFO [epollEventLoopGroup-7-1] submitRoleChange onSuccess for device:Uri{_value=openflow:95551031163976}, role:BECOMEMASTER 16:35:27.623 INFO [ofppool-0] Triggering reconciliation for device NodeKey{_id=Uri{_value=openflow:95551031163976}} 16:35:27.626 INFO [ListenableFutureAdapter-thread-0] Device openflow:95551031163976 connection is enabled by reconciliation framework. 16:35:27.667 INFO [ListenableFutureAdapter-thread-0] Device openflow:95551031163976 is able to work as master. 16:35:27.669 INFO [ListenableFutureAdapter-thread-0] Role MASTER was granted to device openflow:95551031163976 16:35:27.675 INFO [ListenableFutureAdapter-thread-0] Publishing node added notification for Uri{_value=openflow:95551031163976} 16:35:27.732 INFO [ListenableFutureAdapter-thread-0] Starting statistics gathering for node openflow:95551031163976 16:35:27.764 INFO [opendaylight-cluster-data-notification-dispatcher-47] Binding-over-DOM codec shortcuts are enabled 16:36:11.426 INFO [epollEventLoopGroup-7-1] ConnectionEvent: Connection closed by device, Device:/127.0.0.1:49928, NodeId:openflow:95551031163976 16:36:11.430 INFO [epollEventLoopGroup-7-1] Device openflow:95551031163976 disconnected. 16:36:11.431 INFO [epollEventLoopGroup-7-1] Stopping reconciliation for node Uri{_value=openflow:95551031163976} 16:36:11.446 INFO [epollEventLoopGroup-7-1] Publishing node removed notification for Uri{_value=openflow:95551031163976} 16:36:11.448 INFO [epollEventLoopGroup-7-1] Stopping reconciliation for node Uri{_value=openflow:95551031163976} 16:36:11.449 INFO [epollEventLoopGroup-7-1] Role SLAVE was granted to device openflow:95551031163976 16:36:11.451 INFO [epollEventLoopGroup-7-1] Stopping RoleContextImpl[RUNNING] service for node openflow:95551031163976 16:36:11.453 INFO [epollEventLoopGroup-7-1] Stopping StatisticsContextImpl[RUNNING] service for node openflow:95551031163976 16:36:11.453 INFO [epollEventLoopGroup-7-1] Stopping running statistics gathering for node openflow:95551031163976 16:36:11.456 INFO [epollEventLoopGroup-7-1] Stopping RpcContextImpl[RUNNING] service for node openflow:95551031163976 16:36:11.486 INFO [epollEventLoopGroup-7-1] Stopping DeviceContextImpl[RUNNING] service for node openflow:95551031163976 16:36:11.494 INFO [ofppool-1] Closed clustering services for node openflow:95551031163976 16:36:11.496 INFO [epollEventLoopGroup-7-1] Closed clustering services registration for node openflow:95551031163976 16:36:11.497 INFO [epollEventLoopGroup-7-1] Terminating DeviceContextImpl[TERMINATED] service for node openflow:95551031163976 16:36:11.499 INFO [epollEventLoopGroup-7-1] Terminating RpcContextImpl[TERMINATED] service for node openflow:95551031163976 16:36:11.499 INFO [epollEventLoopGroup-7-1] Terminating StatisticsContextImpl[TERMINATED] service for node openflow:95551031163976 16:36:11.499 INFO [epollEventLoopGroup-7-1] Stopping running statistics gathering for node openflow:95551031163976 16:36:11.501 INFO [epollEventLoopGroup-7-1] Terminating RoleContextImpl[TERMINATED] service for node openflow:95551031163976 ============================== 2nd connection does not work: 16:36:39.086 INFO [epollEventLoopGroup-7-2] Hello received 16:36:39.093 INFO [epollEventLoopGroup-7-2] Device openflow:95551031163976 connected. 16:36:39.094 INFO [epollEventLoopGroup-7-2] No context chain found for device: openflow:95551031163976, creating new. 16:36:39.095 INFO [epollEventLoopGroup-7-2] ConnectionEvent: Device connected to controller, Device:/127.0.0.1:49930, NodeId:Uri{_value=openflow:95551031163976} 16:36:39.096 INFO [epollEventLoopGroup-7-2] Started timer for setting SLAVE role on device openflow:95551031163976 if no role will be set in 20s. 16:36:39.097 INFO [epollEventLoopGroup-7-2] Starting DeviceContextImpl[NEW] service for node openflow:95551031163976 16:36:48.101 WARN [epollEventLoopGroup-7-2] Not able to start clustering services for node openflow:95551031163976 16:36:48.103 WARN [ofppool-1] Not able to set MASTER role on device openflow:95551031163976, reason: java.lang.RuntimeException: Failed to initialize device openflow:95551031163976 in 9s: java.util.concurrent.TimeoutException: Waited 9000 milliseconds for com.google.common.util.concurrent.AbstractTransformFuture$AsyncTransformFuture@3eb890f[status=PENDING, info=[inputFuture=[com.google.common.util.concurrent.AbstractTransformFuture$TransformFuture@449b6af0[status=PENDING, info=[inputFuture=[com.google.common.util.concurrent.SettableFuture@32228e74[status=PENDING]], function=[org.opendaylight.openflowplugin.impl.device.initialization.OF13DeviceInitializer$$Lambda$1535/769480774@3cb83329]]]], function=[org.opendaylight.openflowplugin.impl.device.initialization.OF13DeviceInitializer$$Lambda$1536/861330341@63c47640]]] 16:36:48.105 WARN [ofppool-1] This mastering is mandatory, destroying context chain and closing connection for device openflow:95551031163976. 16:36:48.106 INFO [ofppool-1] Stopping reconciliation for node Uri{_value=openflow:95551031163976} 16:36:48.106 INFO [ofppool-1] Stopping reconciliation for node Uri{_value=openflow:95551031163976} 16:36:48.107 INFO [ofppool-1] Role SLAVE was granted to device openflow:95551031163976 16:36:48.107 INFO [ofppool-1] Stopping RoleContextImpl[NEW] service for node openflow:95551031163976 16:36:48.108 INFO [ofppool-1] Stopping StatisticsContextImpl[NEW] service for node openflow:95551031163976 16:36:48.109 INFO [ofppool-1] Stopping running statistics gathering for node openflow:95551031163976 16:36:48.109 INFO [ofppool-1] Stopping RpcContextImpl[NEW] service for node openflow:95551031163976 16:36:48.110 INFO [ofppool-1] Stopping DeviceContextImpl[STARTING] service for node openflow:95551031163976 16:36:48.123 INFO [ofppool-0] Closed clustering services for node openflow:95551031163976 16:36:48.124 INFO [ofppool-1] Closed clustering services registration for node openflow:95551031163976 16:36:48.125 INFO [ofppool-1] Terminating DeviceContextImpl[TERMINATED] service for node openflow:95551031163976 16:36:48.126 INFO [ofppool-1] Terminating RpcContextImpl[TERMINATED] service for node openflow:95551031163976 16:36:48.127 INFO [ofppool-1] Terminating StatisticsContextImpl[TERMINATED] service for node openflow:95551031163976 16:36:48.127 INFO [ofppool-1] Stopping running statistics gathering for node openflow:95551031163976 16:36:48.128 INFO [ofppool-1] Terminating RoleContextImpl[TERMINATED] service for node openflow:95551031163976 16:36:48.353 INFO [epollEventLoopGroup-7-3] Hello received 16:36:48.360 INFO [epollEventLoopGroup-7-3] Device openflow:95551031163976 connected. 16:36:48.361 INFO [epollEventLoopGroup-7-3] No context chain found for device: openflow:95551031163976, creating new. 16:36:48.362 INFO [epollEventLoopGroup-7-3] ConnectionEvent: Device connected to controller, Device:/127.0.0.1:49932, NodeId:Uri{_value=openflow:95551031163976} 16:36:48.363 INFO [epollEventLoopGroup-7-3] Started timer for setting SLAVE role on device openflow:95551031163976 if no role will be set in 20s. 16:36:48.364 INFO [epollEventLoopGroup-7-3] Starting DeviceContextImpl[NEW] service for node openflow:95551031163976 16:36:57.366 WARN [epollEventLoopGroup-7-3] Not able to start clustering services for node openflow:95551031163976 16:36:57.367 WARN [ofppool-1] Not able to set MASTER role on device openflow:95551031163976, reason: java.lang.RuntimeException: Failed to initialize device openflow:95551031163976 in 9s: java.util.concurrent.TimeoutException: Waited 9000 milliseconds for com.google.common.util.concurrent.AbstractTransformFuture$AsyncTransformFuture@4b680dba[status=PENDING, info=[inputFuture=[com.google.common.util.concurrent.AbstractTransformFuture$TransformFuture@58a22c45[status=PENDING, info=[inputFuture=[com.google.common.util.concurrent.SettableFuture@7a6941df[status=PENDING]], function=[org.opendaylight.openflowplugin.impl.device.initialization.OF13DeviceInitializer$$Lambda$1535/769480774@3cb83329]]]], function=[org.opendaylight.openflowplugin.impl.device.initialization.OF13DeviceInitializer$$Lambda$1536/861330341@20493e9b]]] 16:36:57.368 WARN [ofppool-1] This mastering is mandatory, destroying context chain and closing connection for device openflow:95551031163976. 16:36:57.369 INFO [ofppool-1] Stopping reconciliation for node Uri{_value=openflow:95551031163976} 16:36:57.369 INFO [ofppool-1] Stopping reconciliation for node Uri{_value=openflow:95551031163976} 16:36:57.370 INFO [ofppool-1] Role SLAVE was granted to device openflow:95551031163976 16:36:57.370 INFO [ofppool-1] Stopping RoleContextImpl[NEW] service for node openflow:95551031163976 16:36:57.371 INFO [ofppool-1] Stopping StatisticsContextImpl[NEW] service for node openflow:95551031163976 16:36:57.371 INFO [ofppool-1] Stopping running statistics gathering for node openflow:95551031163976 16:36:57.372 INFO [ofppool-1] Stopping RpcContextImpl[NEW] service for node openflow:95551031163976 16:36:57.373 INFO [ofppool-1] Stopping DeviceContextImpl[STARTING] service for node openflow:95551031163976 16:36:57.376 INFO [ofppool-0] Closed clustering services for node openflow:95551031163976 16:36:57.376 INFO [ofppool-1] Closed clustering services registration for node openflow:95551031163976 16:36:57.377 INFO [ofppool-1] Terminating DeviceContextImpl[TERMINATED] service for node openflow:95551031163976 16:36:57.377 INFO [ofppool-1] Terminating RpcContextImpl[TERMINATED] service for node openflow:95551031163976 16:36:57.378 INFO [ofppool-1] Terminating StatisticsContextImpl[TERMINATED] service for node openflow:95551031163976 16:36:57.378 INFO [ofppool-1] Stopping running statistics gathering for node openflow:95551031163976 16:36:57.378 INFO [ofppool-1] Terminating RoleContextImpl[TERMINATED] service for node openflow:95551031163976