Ask Your Question
0

L2 switch build errors

asked 2016-02-04 15:38:01 -0700

ashvanth48 gravatar image

INFO] Reactor Summary: [INFO] [INFO] l2switch-parent .................................... SUCCESS [ 3.044 s] [INFO] packethandler-model ................................ FAILURE [ 8.898 s] [INFO] packethandler-impl ................................. SKIPPED [INFO] packethandler-config ............................... SKIPPED [INFO] packethandler.aggregator ........................... SKIPPED [INFO] loopremover-model .................................. SKIPPED [INFO] loopremover-impl ................................... SKIPPED [INFO] loopremover-config ................................. SKIPPED [INFO] loopremover.aggregator ............................. SKIPPED [INFO] addresstracker-model ............................... SKIPPED [INFO] arphandler-impl .................................... SKIPPED [INFO] arphandler-config .................................. SKIPPED [INFO] arphandler.aggregator .............................. SKIPPED [INFO] addresstracker-impl ................................ SKIPPED [INFO] addresstracker-config .............................. SKIPPED [INFO] addresstracker.aggregator .......................... SKIPPED [INFO] hosttracker.aggregator ............................. SKIPPED [INFO] hosttracker-model .................................. SKIPPED [INFO] hosttracker-impl ................................... SKIPPED [INFO] hosttracker-config ................................. SKIPPED [INFO] main-impl .......................................... SKIPPED [INFO] main-config ........................................ SKIPPED [INFO] main.aggregator .................................... SKIPPED [INFO] features-l2switch .................................. SKIPPED [INFO] distribution-karaf ................................. SKIPPED [INFO] l2switch-artifacts ................................. SKIPPED [INFO] l2switch ........................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 15.124 s [INFO] Finished at: 2016-01-28T16:35:43-08:00 [INFO] Final Memory: 58M/418M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.opendaylight.yangtools:yang-maven-plugin:1.0.0-SNAPSHOT:generate-sources (default) on project packethandler-model: Execution default of goal org.opendaylight.yangtools:yang-maven-plugin:1.0.0-SNAPSHOT:generate-sources failed: A required class was missing while executing org.opendaylight.yangtools:yang-maven-plugin:1.0.0-SNAPSHOT:generate-sources: java/util/function/Consumer [ERROR] ----------------------------------------------------- [ERROR] realm = plugin>org.opendaylight.yangtools:yang-maven-plugin:1.0.0-SNAPSHOT [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy [ERROR] urls[0] = file:/home/ubuntu/.m2/repository/org/opendaylight/yangtools/yang-maven-plugin/1.0.0-SNAPSHOT/yang-maven-plugin-1.0.0-SNAPSHOT.jar [ERROR] urls[1] = file:/home/ubuntu/.m2/repository/org/opendaylight/mdsal/maven-sal-api-gen-plugin/0.9.0-SNAPSHOT/maven-sal-api-gen-plugin-0.9.0-SNAPSHOT.jar [ERROR] urls[2] = file:/home/ubuntu/.m2/repository/org/opendaylight/mdsal/mdsal-binding-generator-api/0.9.0-SNAPSHOT/mdsal-binding-generator-api-0.9.0-SNAPSHOT.jar [ERROR] urls[3] = file:/home/ubuntu/.m2/repository/org/opendaylight/mdsal/mdsal-binding-generator-impl/0.9.0-SNAPSHOT/mdsal-binding-generator-impl-0.9.0-SNAPSHOT.jar [ERROR] urls[4] = file:/home/ubuntu/.m2/repository/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA.jar [ERROR] urls[5] = file:/home/ubuntu/.m2/repository/org/opendaylight/yangtools/yang-data-impl/1.0.0-SNAPSHOT/yang-data-impl-1.0.0-SNAPSHOT.jar [ERROR] urls[6] = file:/home/ubuntu/.m2/repository/org/opendaylight/yangtools/yang-data-util/1.0.0-SNAPSHOT/yang-data-util-1.0.0-SNAPSHOT.jar [ERROR] urls[7] = file:/home/ubuntu/.m2/repository/org/opendaylight/mdsal/mdsal-binding-generator-util/0.9.0-SNAPSHOT/mdsal-binding-generator-util-0.9.0-SNAPSHOT.jar [ERROR] urls[8] = file:/home/ubuntu/.m2/repository/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar [ERROR] urls[9] = file:/home/ubuntu/.m2/repository/org/eclipse/xtend/org.eclipse.xtend.lib/2.8.4/org.eclipse.xtend.lib-2.8.4.jar [ERROR] urls[10] = file:/home/ubuntu/.m2/repository/org/eclipse/xtend/org.eclipse.xtend.lib.macro/2.8.4/org.eclipse.xtend.lib.macro-2.8.4.jar [ERROR] urls[11] = file:/home/ubuntu/.m2/repository/org/eclipse/xtext/org.eclipse.xtext.xbase.lib/2.8.4/org.eclipse.xtext.xbase.lib-2.8.4.jar [ERROR] urls[12] = file:/home/ubuntu/.m2/repository/org/opendaylight/mdsal/mdsal-binding-java-api-generator/0.9.0-SNAPSHOT/mdsal-binding-java-api-generator-0.9.0-SNAPSHOT.jar [ERROR] urls[13] = file:/home/ubuntu/.m2/repository/org/opendaylight/yangtools/yang-data-api/1.0.0-SNAPSHOT/yang-data-api-1.0.0-SNAPSHOT.jar [ERROR] urls[14] = file:/home/ubuntu/.m2/repository/org/opendaylight/mdsal/yang-binding/0.9.0-SNAPSHOT/yang-binding-0.9.0-SNAPSHOT.jar [ERROR] urls[15] = file:/home/ubuntu/.m2 ... (more)

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2016-02-11 16:37:18 -0700

saisujithreddy gravatar image

updated 2016-03-18 12:34:12 -0700

I think you built the project based on master. Please try to checkout stable/beryllium and give it a try. The following steps should give a success.

git clone https://git.opendaylight.org/gerrit/l...

git checkout stable/beryllium

mvn clean install -DskipTests

These are the steps that i follow in order:-

git clone https://git.opendaylight.org/gerrit/l...

cd l2switch

git checkout stable/beryllium

mvn clean install -DskipTests

cd distribution/karaf/target/assembly/bin

./karaf debug

feature:install odl-l2switch-all

then in a new terminal start mininet with following command (OF13, 1 switch - you can change parameters as needed)

sudo mn --controller=remote,ip= --switch=ovsk,protocols=OpenFlow13 --topo=linear,1 it shows connnected to controller

You can checkout who is listening on ports by using command "netstat -an"

edit flag offensive delete publish link more

Comments

Hi Could not run this command: git checkout stable/beryllium git checkout stable/beryllium --

aljoby ( 2016-03-16 01:46:12 -0700 )edit

Please let me know if you have cloned correctly or paste the error or commands you have used.

saisujithreddy ( 2016-03-17 22:30:59 -0700 )edit
0

answered 2016-03-17 22:56:45 -0700

aljoby gravatar image

Thank you Saisujithreddy.

It was build, and ran correctly. I followed your steps. But the problem, that the karaf under l2switch could not be connected to mininet.

~/Desktop/l2switch/distribution/karaf/target/assembly/bin$ ./karaf

Unable to contact the remote controller at 127.0.0.1:6653 Unable to contact the remote controller at 127.0.0.1:6633

I checked out the listening ports. I could not find neither 6653 nor 6633 are opened.

please let me know if you have any suggestion.

Thank you again

Walid

edit flag offensive delete publish link more

Comments

Hi Walid i updated My above accepted answer. Please let me know if you couldn't connect still

saisujithreddy ( 2016-03-18 12:34:46 -0700 )edit

Many thanks saisujithreddy for clarification. It is very clear. It was successfuly built and run karaf. However, non of the ports are opened to connect with mininet. What we use is stable/beryllium, 0.3.1-SNAPSHOT, I do not know what is the problem, Can you tell me your jdk version? I installed feature of l2switch with stable/berlium distribution, it works fine with mininet. But, same l2switch version that used by the distribution, when I install it separately (i.e building l2switch project), everything goes fine until the connection with mininet, no response. So Please could you try l2switch stable/berlium distribution in your machine? thank you again

aljoby ( 2016-03-18 23:11:50 -0700 )edit
0

answered 2016-03-18 08:52:49 -0700

jamoluhrsen gravatar image

looks like you are just starting karaf. how are the features (e.g. odl-l2switch-all) getting installed?

edit flag offensive delete publish link more

Comments

Hi Jamoluhrsen, typing this command to the karaf runtime: feature:list -i I find l2switch and openflowplugin are installed into the l2switch project. but the problem I can not make connection between the controller (assuming it is included in l2switch project) under l2switch project and mininet.

aljoby ( 2016-03-18 23:55:56 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2016-02-04 15:38:01 -0700

Seen: 218 times

Last updated: Mar 18 '16