[OPNFLWPLUG-201] OF issue with datapath-id Created: 02/Jul/14  Updated: 27/Sep/21  Due: 04/Jul/14  Resolved: 07/Jul/14

Status: Resolved
Project: OpenFlowPlugin
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Luis Gomez Assignee: Luis Gomez
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


Issue Links:
Blocks
blocks OPNFLWPLUG-110 Milestone: AD-SAL Compatibility adapt... Resolved
External issue ID: 1274

 Description   

Hi all,

I am testing HW switch with datapath-id: 0xcc4e241c4a000000

Not sure how you calculate the Switch id but I see this in the inventory:

"id": "openflow:14721743935839928320",
"flow-node-inventory:switch-features": {
"flow-node-inventory:max_buffers": 256,
"flow-node-inventory:capabilities": [
"flow-node-inventory:flow-feature-capability-flow-stats",
"flow-node-inventory:flow-feature-capability-port-stats",
"flow-node-inventory:flow-feature-capability-table-stats"
],
"flow-node-inventory:max_tables": 1

How is 14721743935839928320 gets calculated?

Because after I see this ERROR too and the switch never gets stable in ODL:

2014-06-30 14:46:17.729 PDT [nioEventLoopGroup-11-3] INFO o.o.o.p.i.c.PublishingChannelInitializer - Incoming connection from (remote address): /10.18.160.25:7801 --> :6633
2014-06-30 14:46:17.730 PDT [nioEventLoopGroup-11-3] INFO o.o.o.p.i.c.PublishingChannelInitializer - Incoming connection accepted - building pipeline
2014-06-30 14:46:17.732 PDT [nioEventLoopGroup-11-3] INFO o.o.o.p.i.c.ConnectionAdapterImpl - Hello received / branch
2014-06-30 14:46:17.736 PDT [nioEventLoopGroup-11-3] INFO o.o.o.p.i.c.ConnectionAdapterImpl - Hello received / branch
2014-06-30 14:46:17.738 PDT [nioEventLoopGroup-11-3] WARN o.o.o.p.i.c.ResponseExpectedRpcListener - Request for RpcResultKey [xid=234, outputClazz=org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.GetFeaturesOutput] did not receive a response
2014-06-30 14:46:17.751 PDT [md-sal-binding-notification-143] ERROR o.o.c.sal.binding.impl.NotifyTask - Unhandled exception thrown by listener: org.opendaylight.controller.sal.compatibility.InventoryAndReadAdapter$$Broker$ListenerInvoker@762df4eb
java.lang.NumberFormatException: For input string: "14721743935839928320"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.7.0_51]
at java.lang.Long.parseLong(Long.java:444) ~[na:1.7.0_51]
at java.lang.Long.valueOf(Long.java:540) ~[na:1.7.0_51]
at org.opendaylight.controller.sal.compatibility.NodeMapping.openflowFullNodeIdToLong(NodeMapping.java:103) ~[na:na]
at org.opendaylight.controller.sal.compatibility.NodeMapping.toADNode(NodeMapping.java:91) ~[na:na]
at org.opendaylight.controller.sal.compatibility.NodeMapping.toADNode(NodeMapping.java:87) ~[na:na]
at org.opendaylight.controller.sal.compatibility.NodeMapping.toADNode(NodeMapping.java:244) ~[na:na]
at org.opendaylight.controller.sal.compatibility.InventoryAndReadAdapter.onNodeUpdated(InventoryAndReadAdapter.java:454) ~[na:na]
at org.opendaylight.controller.sal.compatibility.InventoryAndReadAdapter$$Broker$ListenerInvoker.onNotification(InventoryAndReadAdapter$$Broker$ListenerInvoker.java) ~[na:na]
at org.opendaylight.controller.sal.binding.impl.AbstractNotificationListenerRegistration.notify(AbstractNotificationListenerRegistration.java:38) ~[na:na]
at org.opendaylight.controller.sal.binding.impl.NotifyTask.run(NotifyTask.java:42) ~[na:na]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_51]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_51]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51]
at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51]
2014-06-30 14:46:17.752 PDT [md-sal-binding-notification-146] ERROR o.o.c.sal.binding.impl.NotifyTask - Unhandled exception thrown by listener: org.opendaylight.controller.sal.compatibility.InventoryAndReadAdapter$$Broker$ListenerInvoker@762df4eb
java.lang.NumberFormatException: For input string: "14721743935839928320"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.7.0_51]
at java.lang.Long.parseLong(Long.java:444) ~[na:1.7.0_51]
at java.lang.Long.valueOf(Long.java:540) ~[na:1.7.0_51]
at org.opendaylight.controller.sal.compatibility.NodeMapping.openflowFullNodeIdToLong(NodeMapping.java:103) ~[na:na]
at org.opendaylight.controller.sal.compatibility.NodeMapping.toADNode(NodeMapping.java:91) ~[na:na]
at org.opendaylight.controller.sal.compatibility.NodeMapping.toADNodeConnector(NodeMapping.java:132) ~[na:na]
at org.opendaylight.controller.sal.compatibility.NodeMapping.toADNodeConnector(NodeMapping.java:126) ~[na:na]
at org.opendaylight.controller.sal.compatibility.InventoryAndReadAdapter.onNodeConnectorUpdated(InventoryAndReadAdapter.java:434) ~[na:na]
at org.opendaylight.controller.sal.compatibility.InventoryAndReadAdapter$$Broker$ListenerInvoker.onNotification(InventoryAndReadAdapter$$Broker$ListenerInvoker.java) ~[na:na]
at org.opendaylight.controller.sal.binding.impl.AbstractNotificationListenerRegistration.notify(AbstractNotificationListenerRegistration.java:38) ~[na:na]
at org.opendaylight.controller.sal.binding.impl.NotifyTask.run(NotifyTask.java:42) ~[na:na]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_51]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_51]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51]
at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51]
2014-06-30 14:46:17.755 PDT [md-sal-binding-notification-149] ERROR o.o.c.sal.binding.impl.NotifyTask - Unhandled exception thrown by listener: org.opendaylight.controller.sal.compatibility.InventoryAndReadAdapter$$Broker$ListenerInvoker@762df4eb
java.lang.NumberFormatException: For input string: "14721743935839928320"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.7.0_51]
at java.lang.Long.parseLong(Long.java:444) ~[na:1.7.0_51]
at java.lang.Long.valueOf(Long.java:540) ~[na:1.7.0_51]
at org.opendaylight.controller.sal.compatibility.NodeMapping.openflowFullNodeIdToLong(NodeMapping.java:103) ~[na:na]
at org.opendaylight.controller.sal.compatibility.NodeMapping.toADNode(NodeMapping.java:91) ~[na:na]
at org.opendaylight.controller.sal.compatibility.NodeMapping.toADNodeConnector(NodeMapping.java:132) ~[na:na]
at org.opendaylight.controller.sal.compatibility.NodeMapping.toADNodeConnector(NodeMapping.java:126) ~[na:na]
at org.opendaylight.controller.sal.compatibility.InventoryAndReadAdapter.onNodeConnectorUpdated(InventoryAndReadAdapter.java:434) ~[na:na]
at org.opendaylight.controller.sal.compatibility.InventoryAndReadAdapter$$Broker$ListenerInvoker.onNotification(InventoryAndReadAdapter$$Broker$ListenerInvoker.java) ~[na:na]
at org.opendaylight.controller.sal.binding.impl.AbstractNotificationListenerRegistration.notify(AbstractNotificationListenerRegistration.java:38) ~[na:na]
at org.opendaylight.controller.sal.binding.impl.NotifyTask.run(NotifyTask.java:42) ~[na:na]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_51]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_51]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51]
at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51]
2014-06-30 14:46:17.763 PDT [md-sal-binding-notification-152] ERROR o.o.c.sal.binding.impl.NotifyTask - Unhandled exception thrown by listener: org.opendaylight.controller.sal.compatibility.InventoryAndReadAdapter$$Broker$ListenerInvoker@762df4eb
java.lang.NumberFormatException: For input string: "14721743935839928320"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.7.0_51]
at java.lang.Long.parseLong(Long.java:444) ~[na:1.7.0_51]
at java.lang.Long.valueOf(Long.java:540) ~[na:1.7.0_51]
at org.opendaylight.controller.sal.compatibility.NodeMapping.openflowFullNodeIdToLong(NodeMapping.java:103) ~[na:na]
at org.opendaylight.controller.sal.compatibility.NodeMapping.toADNode(NodeMapping.java:91) ~[na:na]
at org.opendaylight.controller.sal.compatibility.NodeMapping.toADNode(NodeMapping.java:87) ~[na:na]
at org.opendaylight.controller.sal.compatibility.NodeMapping.toADNode(NodeMapping.java:244) ~[na:na]
at org.opendaylight.controller.sal.compatibility.InventoryAndReadAdapter.onNodeUpdated(InventoryAndReadAdapter.java:454) ~[na:na]
at org.opendaylight.controller.sal.compatibility.InventoryAndReadAdapter$$Broker$ListenerInvoker.onNotification(InventoryAndReadAdapter$$Broker$ListenerInvoker.java) ~[na:na]
at org.opendaylight.controller.sal.binding.impl.AbstractNotificationListenerRegistration.notify(AbstractNotificationListenerRegistration.java:38) ~[na:na]
at org.opendaylight.controller.sal.binding.impl.NotifyTask.run(NotifyTask.java:42) ~[na:na]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_51]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_51]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51]
at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51]



 Comments   
Comment by Brent Salisbury [ 03/Jul/14 ]

+1, if we could also get the functionality of "printNodes" (wether with NodeID/DPID) back to use for addMDFlow.

E.g.

osgi> printNodes
Nodes connected to this controller :
[OF|00:00:fa:2b:02:6a:e4:49]

osgi> addMDFlow openflow:0000fa2b026ae449 f85

or

osgi> printNodes
Nodes connected to this controller :
[MD_SAL|openflow:108448937000521]

osgi> addMDFlow openflow:108448937000521 f85

Thanks,
-Brent

Comment by Michal Rehak [ 04/Jul/14 ]

https://git.opendaylight.org/gerrit/#/c/8687/

Comment by Michal Rehak [ 07/Jul/14 ]

merged

Brent, if you would like new feature for addMDFlow (and other osgi commands introduced by test-provider) please file new bug with list of commands doomed for extension/adaptation.

Michal

Comment by Luis Gomez [ 07/Jul/14 ]

Yes, it works now.

Generated at Wed Feb 07 20:31:49 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.