-
Type: Bug
-
Status: Closed (View Workflow)
-
Priority: Critical
-
Resolution: Done
-
Affects Version/s: 1.1.0
-
Fix Version/s: 1.1.1
-
Component/s: None
-
Labels:None
-
Epic Link:
-
Sprint:Cardinal Sprint 2 (4/6-4/17), Cardinal Sprint 3 (4/20-5/1)
[CREDIT: Pingping for the original bug discovery]
[NOTE: This bug is a show-stopper for progressing the SDN-IP development]
If we try to create a Multipoint-to-Singlepoint intent that spans only a single
switch, the ONOS backend triggers and exception.
How to reproduce:
1. Start Mininet with the following command;
sudo mn --controller remote --topo linear,1,2 --mac
2. Start ONOS
3. Start the ONOS CLI
onos
4. Run the following command in the ONOS CLI:
add-multi-to-single-intent --ipDst 224.0.1.20/32 of:0000000000000001/1 of:0000000000000001/2
ONOS fails to create the intent, and triggers the following exception:
2015-03-19 13:46:11,135 | WARN | nos-intent-batch | IntentManager \
82 - org.onosproject.onos-core-net - 1.2.0.SNAPSHOT | Future failed: {\ } java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Li\ st of path links cannot be empty at java.util.concurrent.FutureTask.report(FutureTask.java:122)[:1.8.0_4\ 0] at java.util.concurrent.FutureTask.get(FutureTask.java:192)[:1.8.0_40] at org.onosproject.net.intent.impl.IntentManager$IntentBatchProcess.wai\ tForFutures(IntentManager.java:340)[82:org.onosproject.onos-core-net:1.2.0.SNAP\ SHOT] at org.onosproject.net.intent.impl.IntentManager$IntentBatchProcess.run\ (IntentManager.java:315)[82: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(ThreadPoolExecuto\ r.java:617)[:1.8.0_40] at java.lang.Thread.run(Thread.java:745)[:1.8.0_40] Caused by: java.lang.IllegalArgumentException: List of path links cannot be emp\ ty at com.google.common.base.Preconditions.checkArgument(Preconditions.jav\ a:122)[49:com.google.guava:18.0.0] at org.onosproject.net.DefaultPath.source(DefaultPath.java:64)[81:org.o\ nosproject.onos-api:1.2.0.SNAPSHOT] at org.onosproject.net.DefaultPath.<init>(DefaultPath.java:46)[81:org.o\ nosproject.onos-api:1.2.0.SNAPSHOT] at org.onosproject.net.topology.impl.PathManager.edgeToEdgePath(PathMan\ ager.java:172)[82:org.onosproject.onos-core-net:1.2.0.SNAPSHOT] at org.onosproject.net.topology.impl.PathManager.edgeToEdgePaths(PathMa\ nager.java:144)[82:org.onosproject.onos-core-net:1.2.0.SNAPSHOT] at org.onosproject.net.topology.impl.PathManager.getPaths(PathManager.j\ ava:111)[82:org.onosproject.onos-core-net:1.2.0.SNAPSHOT] at org.onosproject.net.topology.impl.PathManager.getPaths(PathManager.j\ ava:88)[82:org.onosproject.onos-core-net:1.2.0.SNAPSHOT] at org.onosproject.net.intent.impl.compiler.MultiPointToSinglePointInte\ ntCompiler.getPath(MultiPointToSinglePointIntentCompiler.java:112)[82:org.onosp\ roject.onos-core-net:1.2.0.SNAPSHOT] at org.onosproject.net.intent.impl.compiler.MultiPointToSinglePointInte\ ntCompiler.compile(MultiPointToSinglePointIntentCompiler.java:77)[82:org.onospr\ oject.onos-core-net:1.2.0.SNAPSHOT] at org.onosproject.net.intent.impl.compiler.MultiPointToSinglePointInte\ ntCompiler.compile(MultiPointToSinglePointIntentCompiler.java:51)[82:org.onospr\ oject.onos-core-net:1.2.0.SNAPSHOT] at org.onosproject.net.intent.impl.CompilerRegistry.compile(CompilerReg\ istry.java:81)[82:org.onosproject.onos-core-net:1.2.0.SNAPSHOT] at org.onosproject.net.intent.impl.IntentManager$InternalIntentProcesso\ r.compile(IntentManager.java:369)[82:org.onosproject.onos-core-net:1.2.0.SNAPSH\ OT] at org.onosproject.net.intent.impl.phase.Compiling.execute(Compiling.ja\ va:51)[82:org.onosproject.onos-core-net:1.2.0.SNAPSHOT] at org.onosproject.net.intent.impl.phase.IntentWorker.call(IntentWorker\ .java:48)[82:org.onosproject.onos-core-net:1.2.0.SNAPSHOT] at org.onosproject.net.intent.impl.phase.IntentWorker.call(IntentWorker\ .java:27)[82:org.onosproject.onos-core-net:1.2.0.SNAPSHOT] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_40] ... 3 more |