-
Type: Bug
-
Status: Closed (View Workflow)
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.3.0
-
Component/s: None
-
Labels:None
-
Story Points:3
-
Epic Link:
Hello,
ONOS: 1.3.0-SNAPSHOT (commit 3f1b128)
Test topology: tools/test/topos/opticalTest.py
Activated apps: proxyarp, drivers, optical, openflow, calendar (from onos-app-samples.git repo)
During the attempt to create HostToHost or P2P intent the following exception appears and intent is not created. The intent is created if I avoid passing both bandwidth and latency constraints in source code (just comment them). If at least one of them is passed to HostToHostIntent or TwoWayP2PIntent exception appears.
onos> hosts
id=00:00:00:00:00:01/-1, mac=00:00:00:00:00:01, location=of:0000ffffffff0001/1, vlan=-1, ip(s)=[10.0.0.1]
id=00:00:00:00:00:02/-1, mac=00:00:00:00:00:02, location=of:0000ffffffff0002/1, vlan=-1, ip(s)=[10.0.0.2]
REST request: curl -XPOST "http://192.168.1.101:8181/onos/calendar/intent/0000ffffffff0001/0000ffffffff0002/1/1/10/30"
Exception:
2015-07-04 23:17:42,748 | INFO | tp1969339732-463 | BandwidthCalendarResource | 174 - org.onosproject.onos-app-calendar - 1.3.0.SNAPSHOT | Submitted Calendar App intent and waiting: TwoWayP2PIntent{id=0x0, key=0x0, appId=DefaultApplicationId
, priority=100, resources=[], selector=DefaultTrafficSelector{criteria=[ETH_TYPE
{ethType=ipv4}]}, treatment=DefaultTrafficTreatment
{immediate=[], deferred=[], transition=None, cleared=false, metadata=null}, constraints=[BandwidthConstraint
{bandwidth=1.0E7}, LatencyConstraint
{latency=PT0.00003S}], one=ConnectPoint
{elementId=of:0000ffffffff0001, portNumber=1}, two=ConnectPoint{elementId=of:0000ffffffff0002, portNumber=1}}
2015-07-04 23:17:42,906 | WARN | nos-intent-batch | IntentManager | 76 - org.onosproject.onos-core-net - 1.3.0.SNAPSHOT | Future failed: {}
java.util.concurrent.ExecutionException: java.lang.NullPointerException
at java.util.concurrent.FutureTask.report(FutureTask.java:122)[:1.8.0_45]
at java.util.concurrent.FutureTask.get(FutureTask.java:192)[:1.8.0_45]
at org.onosproject.net.intent.impl.IntentManager$IntentBatchProcess.waitForFutures(IntentManager.java:364)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
at org.onosproject.net.intent.impl.IntentManager$IntentBatchProcess.run(IntentManager.java:339)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_45]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_45]
Caused by: java.lang.NullPointerException
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1838)[:1.8.0_45]
at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)[:1.8.0_45]
at java.lang.Double.parseDouble(Double.java:538)[:1.8.0_45]
at org.onosproject.net.AnnotationKeys.getAnnotatedValue(AnnotationKeys.java:104)[74:org.onosproject.onos-api:1.3.0.SNAPSHOT]
at org.onosproject.net.intent.constraint.LatencyConstraint.cost(LatencyConstraint.java:59)[74:org.onosproject.onos-api:1.3.0.SNAPSHOT]
at org.onosproject.net.intent.impl.compiler.ConnectivityIntentCompiler$ConstraintBasedLinkWeight.weight(ConnectivityIntentCompiler.java:148)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
at org.onosproject.net.intent.impl.compiler.ConnectivityIntentCompiler$ConstraintBasedLinkWeight.weight(ConnectivityIntentCompiler.java:118)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
at org.onlab.graph.AbstractGraphPathSearch$DefaultResult.relaxEdge(AbstractGraphPathSearch.java:194)[72:org.onosproject.onlab-misc:1.3.0.SNAPSHOT]
at org.onlab.graph.DijkstraGraphSearch.search(DijkstraGraphSearch.java:63)[72:org.onosproject.onlab-misc:1.3.0.SNAPSHOT]
at org.onosproject.store.topology.impl.DefaultTopology.getPaths(DefaultTopology.java:300)[78:org.onosproject.onos-core-dist:1.3.0.SNAPSHOT]
at org.onosproject.store.topology.impl.DistributedTopologyStore.getPaths(DistributedTopologyStore.java:122)[78:org.onosproject.onos-core-dist:1.3.0.SNAPSHOT]
at org.onosproject.net.topology.impl.TopologyManager.getPaths(TopologyManager.java:176)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
at org.onosproject.net.topology.impl.PathManager.getPaths(PathManager.java:126)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
at org.onosproject.net.intent.impl.compiler.ConnectivityIntentCompiler.getPath(ConnectivityIntentCompiler.java:99)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
at org.onosproject.net.intent.impl.compiler.PointToPointIntentCompiler.compile(PointToPointIntentCompiler.java:74)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
at org.onosproject.net.intent.impl.compiler.PointToPointIntentCompiler.compile(PointToPointIntentCompiler.java:41)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
at org.onosproject.net.intent.impl.CompilerRegistry.compile(CompilerRegistry.java:82)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
at org.onosproject.net.intent.impl.CompilerRegistry.compile(CompilerRegistry.java:83)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
at org.onosproject.net.intent.impl.IntentManager$InternalIntentProcessor.compile(IntentManager.java:394)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
at org.onosproject.net.intent.impl.phase.Compiling.execute(Compiling.java:57)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
at org.onosproject.net.intent.impl.phase.IntentWorker.call(IntentWorker.java:48)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
at org.onosproject.net.intent.impl.phase.IntentWorker.call(IntentWorker.java:27)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_45]
... 3 more
Please let me know if any additional info is required from my side.
Thanks in advanced.