Ask Your Question
0

OpenDayLight Hello world tutorial Failure problem

asked 2016-07-21 10:38:00 -0700

FidaGillani gravatar image

I've been trying to follow OpenDayLight "Controller Core Functionality Tutorials:Application Development Tutorial". I am having a Test failure issue related to Hello-IT project. I am using achtype command provided on the following link https://wiki.opendaylight.org/view/Co...CoreFunctionalityTutorials:ApplicationDevelopment_Tutorial

I am getting following error :

[INFO] [INFO] --- maven-failsafe-plugin:2.18.1:verify (default) @ hello-it --- [INFO] Failsafe report directory: /home/ubuntu/git/hello/it/target/surefire-reports [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] hello-api .......................................... SUCCESS [01:40 min] [INFO] hello-impl ......................................... SUCCESS [ 17.897 s] [INFO] hello-cli .......................................... SUCCESS [ 7.747 s] [INFO] hello-features ..................................... SUCCESS [05:37 min] [INFO] hello-karaf ........................................ SUCCESS [01:49 min] [INFO] hello-artifacts .................................... SUCCESS [ 0.964 s] [INFO] hello-it ........................................... FAILURE [02:53 min] [INFO] hello .............................................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 12:49 min [INFO] Finished at: 2016-07-21T10:09:29-07:00 [INFO] Final Memory: 191M/404M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.18.1:verify (default) on project hello-it: There are test failures. [ERROR] [ERROR] Please refer to /home/ubuntu/git/hello/it/target/surefire-reports for the individual test results. [ERROR] -> [Help 1] [ERROR]

When I looked into surefire-reports it is showing me following error:


Test set: org.opendaylight.hello.it.HelloIT

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 166.497 sec <<< FAILURE! - in org.opendaylight.hello.it.HelloIT testhelloFeatureLoad(org.opendaylight.hello.it.HelloIT) Time elapsed: 138.469 sec <<< ERROR! java.lang.RuntimeException: NOT FOUND Module: hello Instance: hello-default configured after 132537 ms at org.opendaylight.controller.config.it.base.AbstractConfigTestBase.setup(AbstractConfigTestBase.java:208) at org.opendaylight.controller.mdsal.it.base.AbstractMdsalTestBase.setup(AbstractMdsalTestBase.java:51) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) at org.junit.rules.RunRules.evaluate(RunRules.java:20) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChild(ContainerTestRunner.java:68) at org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChild(ContainerTestRunner.java:37) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at org.junit.runner.JUnitCore.run(JUnitCore.java:115) at org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.invokeViaJUnit ...

(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-07-21 12:48:02 -0700

FidaGillani gravatar image

I don't know what was the problem but here is what I did to solve the problem. On the latest tutorial page they are using following maven archetype command :

"mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller \ -DarchetypeArtifactId=opendaylight-startup-archetype \ -DarchetypeVersion=1.2.0-SNAPSHOT \ -DarchetypeRepository=http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ \ -DarchetypeCatalog=http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/archetype-catalog.xml"

However, in the tutorial video they use a shorter command, which is as follows:

mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller \ -DarchetypeArtifactId=opendaylight-startup-archetype \ -DarchetypeVersion=1.1.0-SNAPSHOT

I had already updated the settings.xml in .m2 folder using instructions on this page: https://wiki.opendaylight.org/view/Ge...EnvironmentSetup#Downloadandinstall_maven

So, my guess is that there is something wrong or different with DarchetypeVersion=1.2.0-SNAPSHOT

edit flag offensive delete publish link more
0

answered 2016-07-21 23:33:48 -0700

karthik330 gravatar image

Hi , It seems some module is not found , dont know the exact root cause.

For the time being skip test using mvn clean install -DskipTests .

edit flag offensive delete publish link more

Comments

Actually I've tried that but it fails the Exercise 3 in which we have to use YangUI to add values to Operational datastore.

FidaGillani ( 2016-07-26 11:51:03 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2016-07-21 10:38:00 -0700

Seen: 180 times

Last updated: Jul 21 '16