Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


OpenDayLight Lithium First Install

asked 2015-09-03 08:56:33 -0800

DaveMack gravatar image

updated 2015-09-04 07:29:05 -0800

Hello! I am attempting my first install of OpeDayLight in order to get some hands-on. I have found some installation documents that at times appear conflicting together may help. Here is where I am at: Controller:Installation 14.04

Host: Ubuntu 14.04.3 LTS virtual machine with 100GB disk and 16 GB of RAM. I have installed maven version 3.3.3 and Open Java java version "1.7.0_79" OpenJDK Runtime Environment (IcedTea 2.5.6) (7u79-2.5.6-0ubuntu1.14.04.1) OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)

I have downloaded the OpenDaylight distribution: distribution-karaf-0.3.1-Lithium-SR1.tar.gz

I also edit my .bashrc to include: export M2HOME=/usr/local/apache-maven/apache-maven-3.3.3 export MAVENOPTS="-Xms256m -Xmx512m" export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64

I have untarred it and changed that directory. I can run ./bin/karaf and I do get the prompt.

Following the guide on the main site I installed features I was interested in and then attempted to login via the web page at http://<ip address="">:8181/index.html. My browser (chrome) connects but not page is displayed. I can verify the TCP connection is there.</ip>

netstat -na | grep 8181 tcp6 0 0 :::8181 :::* LISTEN
tcp6 0 0 <host>:49549 ESTABLISHED tcp6 1 0 <host>:49548 CLOSE_WAIT tcp6 0 0 ESTABLISHED tcp6 0 0 ESTABLISHED</host></host>

EDIT: I removed the old list of installed features and errors associated with them as I have removed them and started over with a minimal list as discussed below.

Thinking that I added two many features, I unpacked in a different directory and took the default feaures

opendaylight-user@root>feature:list -i

Name | Version | Installed | Repository | Description

standard | 3.0.3 | x | standard-3.0.3 | Karaf standard feature
config | 3.0.3 | x | standard-3.0.3 | Provide OSGi ConfigAdmin support
region | 3.0.3 | x | standard-3.0.3 | Provide Region Support
package | 3.0.3 | x | standard-3.0.3 | Package commands and mbeans
kar | 3.0.3 | x | standard-3.0.3 | Provide KAR (KARaf archive) support
ssh | 3.0.3 | x | standard-3.0.3 | Provide a SSHd server on Karaf
management | 3.0.3 | x | standard-3.0.3 | Provide a JMX MBeanServer and a set of MBeans in K opendaylight-user@root>

However, I still get the browser hangs. So can any one help me from here?

Thanks! Dave

Update #1

Ok I followed the suggestion below

root@lab-linux-3:~/Downloads/distribution-karaf-0.3.1-Lithium-SR1# ./bin/karaf clean

________                       ________                .__  .__       .__     __       
\_____  \ ______   ____   ____ \______ \ _____  ___.__.|  | |__| ____ |  |___/  |_     
 /   |   \\____ \_/ __ \ /    \ |    |  \\__  \<   |  ||  | |  |/ ___\|  |  \   __\    
/    |    \  |_> >  ___/|   |  \|    `   \/ __ \\___  ||  |_|  / /_/  >   Y  \  |      
\_______  /   __/ \___  >___|  /_______  (____ ...
edit retag flag offensive close merge delete


I see bind errors above, for at least port 8080. Can you stop karaf (logout is fine) and then check to see if port 8080 or 8181 is still listening (netstat). If so, you may have another instance of ODL running, or some other service listening to those ports.

jamoluhrsen ( 2015-09-03 21:51:59 -0800 )edit

If you have another ODL running, just kill it (ps -elf | grep karaf to get the PID, then "kill -9 <pid>"). If there is no ODL running, but those ports are still open, then you need to find what is using them and stop it.

jamoluhrsen ( 2015-09-03 21:52:56 -0800 )edit

you are going closer to issue now :)

Mandeep ( 2015-09-03 22:26:59 -0800 )edit

Yes, I think we are! I can get a login page but the admin/admin login fails. Please see Update 3 in my question. Thanks!

DaveMack ( 2015-09-04 07:30:19 -0800 )edit

so, start over now (unzip, start karaf, install odl-l2switch-switch-ui, get a coffee). you can monitor CPU usage and when you see that it's calmed down, you should be able to login. The error above is something you might see before authentication services are ready. let us know :)

jamoluhrsen ( 2015-09-04 08:55:10 -0800 )edit

4 answers

Sort by ยป oldest newest most voted

answered 2015-09-03 13:17:41 -0800

Hello @DaveMack,

Try something simple and try to understand it. I would suggest start with simple feature like l2-switch. You can following steps:

  1. Bring up the controller as @Mandeep has mentioned.

  2. Go through the wiki of l2-switch (

  3. Connect the mininet topology with the ODL and ping the hosts.

  4. Do some restconf query to controller and try to understand the response from controller.

and enjoy the ODL ;)

edit flag offensive delete publish link more


Thanks for responding! However, I am still unable to access the web UI and therefore use the controller. Please refer to the update section of my original post. Thanks! Dave

DaveMack ( 2015-09-03 13:49:50 -0800 )edit

@DaveMach could you let me know for the output of `lsof -i :8181` and `lsof -i :8080` after installing the ODL features.

subhash ( 2015-09-03 22:32:27 -0800 )edit

I found that the baseline Ubuntu server had Tomcat running on port 8080. I killed it and was able to get a web page from the server but was not able to login at all. Please see update 3 in my question.

DaveMack ( 2015-09-04 07:20:49 -0800 )edit

the dlux web ui starts in port 8181. Have you changed the config file to start it on 8080 ? For the authentication you have to wait for the `aaa` feature, which is responsible for the authentication. You can try `log:tail | grep aaa` (it takes 2-3 minutes to come up).

subhash ( 2015-09-04 07:48:12 -0800 )edit

I have not touched the config file at all. I check the log and I see aaa entries 2015-09-04 09:30:17,620 | INFO | l for user karaf | FeaturesServiceImpl | 20 - org.apache.karaf.features.core - 3.0.3 | Installing feature odl-aaa-authn 0.2.1-Lithium-SR1 But I still cannot login

DaveMack ( 2015-09-04 08:34:01 -0800 )edit

answered 2015-09-03 14:02:03 -0800

jamoluhrsen gravatar image

(echoing the sentiments of the previous two answers)

It's a lot of info in your original post to parse. If you unzip the distribution, start "karaf" and install "odl-l2switch-switch-ui" you should get port 8181 to open (after some time ~2m on a system of your size). if netstat is showing 8181 listening, then point your browser to http://<ip>:8181/index.html</ip>

if your browser is failing to load the DLUX gui, then I'm apt to believe you may have an issue on your browser side.

is this all done on localhost?

could you have a web proxy getting in the way?

edit flag offensive delete publish link more

answered 2015-09-03 09:39:27 -0800

Mandeep gravatar image

updated 2015-09-03 19:51:05 -0800

Too many things in your list... If you are doing things first time I would suggest to do following things:

Step 1: Clean up everything. Start karaf with clean ./bin/karaf clean and logout

Step 2: Start karaf ./bin/karaf (this should give you empty features. feature:list -l should give you available features but 'Installed' column should not have X for any listing)

Step 3: Install basic features. feature:install odl-restconf odl-mdsal-apidocs odl-dlux-all. You can check installed bundles by bundle:list | grep dlux (this should give you all dlux related installed bundles)

odl-restconf: this should give you restconf interface.

odl-mdsal-apidocs: this should give you restconf api docs. Check "http://localhost:8181/apidoc/explorer/index.html"

odl-dlux-all: this should give you all web gui stuff. Check "http://localhost:8181/index.html"

Update 1:

Are you sure 8181 listener is ODL Controller latest process? Saying this because I noticed you use 'Cntl+D' to to kill karaf... I would recommend to use logout for graceful shutdown.

Have you checked karaf.log (Assuming you can find karaf.log location easily) for any errors in ODL Controller?

edit flag offensive delete publish link more


Thanks for replying! I have updated my question with the results...

DaveMack ( 2015-09-03 11:10:23 -0800 )edit

answered 2015-09-03 14:28:44 -0800

DaveMack gravatar image

updated 2015-09-05 09:15:17 -0800

Ok, Thanks to all for the suggestions and help! It appears that I was experiencing two issues. First, my Ubuntu system had a Tomcat7 server running on port 8080 which prevent the web ui from binding to that port and loading. Shutting down tomcat7 resolved that issue. The second issue was not being able to login appears to be some problems with the order in which features are loading. I went back to the basic install and then installed features one at time and checked after each to see if the web ui (still) worked.


edit flag offensive delete publish link more


Sounds like you are too expert to be at beginners level :P updated my answer with more details...

Mandeep ( 2015-09-03 19:47:28 -0800 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-09-03 08:56:33 -0800

Seen: 2,387 times

Last updated: Sep 05 '15