Need help in Trellis Configuration with ONOS

95 views
Skip to first unread message

Sreenivasulu Saya

unread,
Aug 15, 2019, 10:12:20 AM8/15/19
to trellis-dev
Hi,

I have followed the instruction given in the Trellis GitHub: https://github.com/opennetworkinglab/routing/blob/master/trellis/README.md

When I tried to execute the following command:
sudo ./trellis.py --controllers 172.16.0.1
I am not able to see the Mininet nodes in the ONOS Web GUI running on the URL: http://localhost:8181/onos/ui/#/topo2
Am I missing anything? Anyone who has successfully got the Mininet nodes displayed in the ONOS GUI can share your learning so that I am unblocked.
Regards,
  --Sreeni Saya

Pier Luigi Ventre

unread,
Aug 15, 2019, 10:39:03 AM8/15/19
to Sreenivasulu Saya, trellis-dev
Hi Sreeni Saya,
did you see any error in the Mininet output ? Also what is your setup ?

Thanks
Pier

--
You received this message because you are subscribed to the Google Groups "trellis-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trellis-dev...@opennetworking.org.
To view this discussion on the web visit https://groups.google.com/a/opennetworking.org/d/msgid/trellis-dev/5c0b4ad8-6751-4cfe-90d8-4989912b005c%40opennetworking.org.

Charles Chan

unread,
Aug 15, 2019, 7:02:19 PM8/15/19
to Sreenivasulu Saya, trellis-dev
Do you see those devices connecting to ONOS? These devices should be shown in "devices" command output in ONOS CLI.
I'd suggest checking the connectivity between Mininet host and ONOS host first.

Thanks,
Charles Chan, Ph.D.
Member of Technical Staff, Open Networking Foundation


Sreenivasulu Saya

unread,
Aug 16, 2019, 8:09:56 AM8/16/19
to trellis-dev, saya...@gmail.com
Hi Charles,

The ping is failing as Mininet, ONOS are on the different IP subnet addresses. Mininet uses 10.0.0.x addresses, ONOS cluser IP addr is: 172.16.0.1 and my local IP address: 192.168.1.10 is assigned by home's modem router. 

How to configure ONOS that it uses 10.0.0.x subnet?

May be this is the one I am missing to get the Trellis simulation in Mininet working.

Regards,
  --Sreeni Saya



On Friday, August 16, 2019 at 4:32:19 AM UTC+5:30, Charles Chan wrote:
Do you see those devices connecting to ONOS? These devices should be shown in "devices" command output in ONOS CLI.
I'd suggest checking the connectivity between Mininet host and ONOS host first.

Thanks,
Charles Chan, Ph.D.
Member of Technical Staff, Open Networking Foundation


On Thu, Aug 15, 2019 at 7:12 AM Sreenivasulu Saya <saya...@gmail.com> wrote:
Hi,

I have followed the instruction given in the Trellis GitHub: https://github.com/opennetworkinglab/routing/blob/master/trellis/README.md

When I tried to execute the following command:
sudo ./trellis.py --controllers 172.16.0.1
I am not able to see the Mininet nodes in the ONOS Web GUI running on the URL: http://localhost:8181/onos/ui/#/topo2
Am I missing anything? Anyone who has successfully got the Mininet nodes displayed in the ONOS GUI can share your learning so that I am unblocked.
Regards,
  --Sreeni Saya

--
You received this message because you are subscribed to the Google Groups "trellis-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trell...@opennetworking.org.

Jayakumar Thazhath

unread,
Aug 26, 2019, 10:19:40 AM8/26/19
to Sreenivasulu Saya, trellis-dev

Hi Sreeni,

 

Problem still exists ?

 

Regards

Jayakumar

 

From: trell...@opennetworking.org [mailto:trell...@opennetworking.org] On Behalf Of Sreenivasulu Saya
Sent: Friday, August 16, 2019 5:40 PM
To: trellis-dev <trell...@opennetworking.org>
Cc: saya...@gmail.com
Subject: Re: [trellis-dev] Need help in Trellis Configuration with ONOS

 

[**EXTERNAL EMAIL**]

To unsubscribe from this group and stop receiving emails from it, send an email to trellis-dev...@opennetworking.org.
To view this discussion on the web visit https://groups.google.com/a/opennetworking.org/d/msgid/trellis-dev/251e2aae-b61a-4129-9a8d-db2e1a203ae9%40opennetworking.org.

Jayakumar Thazhath

unread,
Aug 27, 2019, 7:45:23 AM8/27/19
to Sreenivasulu Saya, trell...@opennetworking.org

Hi Sreenivasulu,

 

Following are steps I used for compiling ONOS-2.0, hope you have checked out onos-2.0 branch to onos-2.0 folder

cd onos-2.0

export ONOS_ROOT=`pwd`

source  tools/dev/bash_profile

bazel build onos

 

Note : Assume that bazel (version 0.24.1) and Java version : "1.8.0_161" installed.

 

Trellis Topology needs Quagga, please follow below steps

  1. Quagga installation

sudo groupadd quagga

sudo useradd -g quagga -s /bin/false quagga

git clone -b quagga https://gerrit.opencord.org/quagga

cd quagga

./bootstrap.sh

./configure --enable-fpm --sbindir=/usr/lib/quagga --enable-user=quagga --enable-group=quagga --enable-vty-group=quagga --prefix=/usr --sysconfdir=/etc/quagga --localstatedir=/var/state/quagga

make

sudo make install

sudo ldconfig

 

  1. Install Mininet using your package manager, eg. for me Ubuntu,

sudo apt-get install mininet isc-dhcp-server

 

  1. Clone Trellis fabric source

git clone https://gerrit.onosproject.org/routing

onos-netcfg localhost routing/trellis/trellis.json

cd routing/trellis

sudo ./trellis.py --controllers localhost

 

                Note : onos-netcfg command is available in terminal if you follow below steps in current terminal

                cd onos-2.0

export ONOS_ROOT=`pwd`

source  tools/dev/bash_profile

 

Please let me know steps are working fine.

 

Thanks & Regards

Jayakumar

 

From: Sreenivasulu Saya [mailto:saya...@gmail.com]
Sent: Monday, August 26, 2019 9:19 PM
To: Jayakumar Thazhath <jayakumar...@infosys.com>
Subject: Re: [trellis-dev] Need help in Trellis Configuration with ONOS

 

[**EXTERNAL EMAIL**]

Hi Jayakumar,

 

Yes, the problem still exists. I have compiled the ONOS as per the documentation... 

When I tried to open the ONOS Web GUI in the browser with the URL: http://localhost:8181/onos/ui/

I see the following message in the browser window: "ONOS GUI not ready yet... please stand by.."

 

I have started the ONOS service on my Ubuntu 18.06 laptop. 

 

In the ONOS Tutorial VM, I am able to get the ONOS Web GUI, Trellis Topology (simulated with Mininet) and able to activate the reactive forwarding application and then the link connectivity test between the hosts is working fine when I did 'pingall' in Mininet.

 

But the VM has ONOS 1.15.0, and I want to work with the latest version 2.x version and installing directly on the laptop. Unfortunately, the ONOS documentation is poor and does not give the complete instructions for getting ONOS working. Looks like I am missing something that is not documented.. I have been working on this for the past few days.... without much success.

 

If you can help me, I would greatly appreciate. You can call me on my Cell Ph: 98450-55842. 


Regards,
  --Sreeni Saya

 

 

Sreenivasulu Saya

unread,
Aug 27, 2019, 9:53:49 AM8/27/19
to Jayakumar Thazhath, trell...@opennetworking.org
Hi Javakumar,
Thanks for your response.
In the step-1, while I was executing the following commands:

./configure --enable-fpm --sbindir=/usr/lib/quagga --enable-user=quagga --enable-group=quagga --enable-vty-group=quagga --prefix=/usr --sysconfdir=/etc/quagga --localstatedir=/var/state/quagga


I am getting the error:
--------
checking for crypt in -lcrypt... yes
checking for res_init in -lresolv... no
checking whether system has GNU regex... checking for regexec in -lc... yes
checking for CARES... no
configure: error: Package requirements (libcares) were not met:

No package 'libcares' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables CARES_CFLAGS
and CARES_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
--------
Should I go ahead and install the libcares library?

Regards,
  --Sreeni Saya



Charles Chan

unread,
Aug 27, 2019, 3:09:42 PM8/27/19
to Sreenivasulu Saya, Jayakumar Thazhath, trell...@opennetworking.org
Hi Sreeni,

Have you got all the prerequisites installed?

sudo apt-get update
sudo apt-get install -y gawk texinfo python-pip build-essential iptables automake autoconf libtool
sudo pip install -U pip
sudo pip install ipaddress
I am wondering which OS you are using? I didn't see this error with Ubuntu 16.04 and the above-mentioned dependencies.


Thanks,
Charles Chan, Ph.D.
Member of Technical Staff, Open Networking Foundation

Sreenivasulu Saya

unread,
Aug 28, 2019, 8:10:32 AM8/28/19
to Trellis Developers, saya...@gmail.com, jayakumar...@infosys.com
Hi Jayakumar/Charles,

Thanks for your instructions. I am able to make some progress, but stuck at the last step. I am running these commands on Ubuntu 18.04 LTS on my laptop.

In the Step-3, when I tried executing the Trellis topology with Mininet with the command:

    $ cd routing/trellis
    $ sudo ./trellis.py --controllers localhost

I am getting the following errors (before prompted with mininet> prompt):
-------- mininet log snippet ----------
s227 *** s227 : ('ovs-vsctl', '-- --id=@s227c0 create Controller target=\\"tcp:localhost:6653\\" max_backoff=1000 -- --if-exists del-br s227 -- add-br s227 -- set bridge s227 controller=[@s227c0] other_config:datapath-id=0000000000000227 fail_mode=secure other-config:disable-in-band=true protocols=OpenFlow13 other-config:dp-desc=s227 -- add-port s227 s227-eth1 -- set Interface s227-eth1 ofport_request=1 -- add-port s227 s227-eth2 -- set Interface s227-eth2 ofport_request=2')
5cbf6e27-6263-4f68-be6e-76eb311658f3
...*** errRun: ovs-vsctl -- --if-exists del-br cs0 -- add-br cs0 -- set bridge cs0 controller=[] other_config:datapath-id=0000000000000000 fail_mode=standalone other-config:disable-in-band=true other-config:dp-desc=cs0 -- add-port cs0 cs0-eth1 -- set Interface cs0-eth1 ofport_request=1 -- add-port cs0 cs0-eth2 -- set Interface cs0-eth2 ofport_request=2 -- --if-exists del-br cs1 -- add-br cs1 -- set bridge cs1 controller=[] other_config:datapath-id=0000000000000001 fail_mode=standalone other-config:disable-in-band=true other-config:dp-desc=cs1 -- add-port cs1 cs1-eth1 -- set Interface cs1-eth1 ofport_request=1 -- add-port cs1 cs1-eth2 -- set Interface cs1-eth2 ofport_request=2 -- add-port cs1 cs1-eth3 -- set Interface cs1-eth3 ofport_request=3 
  0...*** errRun: ovs-vsctl 
 ovs-vsctl: missing command name (use --help for help)
 1
*** Starting CLI:
*** errRun: ['stty', 'echo', 'sane', 'intr', '^C'] 
  0mininet> 
-----------------
I see that the error is regarding ovs-vsclt and it is visible as shown by the following command
------
$ which ovs-vsctl
/usr/bin/ovs-vsctl
-------

I am able to start the ONOS Web GUI with the URL: http://localhost:8181/onos/ui/
But the shows the "No Devices are connected" message. I expect the nodes started by the trellis.py should be visible in the ONOS GUI.

When start the Mininet as follows:
  $ sudo mn --controller=remote,ip=127.0.0.1,port=6653 --switch ovsk,protocols=OpenFlow13 --topo single,10

The ten switches started by above Mininet command are visible in the ONOS GUI. 

Regards,
  --Sreeni Saya

Sreenivasulu Saya

unread,
Aug 29, 2019, 6:13:28 AM8/29/19
to Trellis Developers
Hi All,


When I ran:

    $ cd onos
    $ bazel run onos-local -- clean

I am getting the following error in the console log:
-------------
2019-08-29T15:37:22,778 | ERROR | paxweb-extender-2-thread-1 | HttpServiceStarted               | 106 - org.ops4j.pax.web.pax-web-runtime - 7.2.10 | Exception finalizing HttpContext registration
java.io.IOException: Failed to bind to /0.0.0.0:8181
at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:346) ~[?:?]
at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:308) ~[?:?]
at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80) ~[?:?]
at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.jav
----------------

Why is it binding the 0.0.0.0:8181 rather than binding to the localhost address 127.0.0.1.
Hence, when I try to open the Web GUI at the URL: http://127.0.0.1:8181/onos/ui/ it is displaying the error:

ONOS GUI not ready yet... please stand by...


Can someone suggest what might be going wrong?

Regards,
  --Sreeni Saya

Sreenivasulu Saya

unread,
Aug 31, 2019, 1:04:52 PM8/31/19
to Trellis Developers
Hi All,

This issue is resolved for me. I have posted the steps to fix it on the onos-dev groups and the link to it is: https://groups.google.com/a/onosproject.org/forum/#!topic/onos-dev/XA6foqhXe1Q

Regards,
  --Sreeni Saya

Jayakumar Thazhath

unread,
Sep 2, 2019, 2:06:10 AM9/2/19
to Sreenivasulu Saya, Trellis Developers

Sreeni,

 

Which is your OVS version ? sudo ovs-vsctl –version ? OVS version above 2.5.0+ worked for me.

--
You received this message because you are subscribed to the Google Groups "Trellis Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trellis-dev...@opennetworking.org.
To view this discussion on the web visit https://groups.google.com/a/opennetworking.org/d/msgid/trellis-dev/a9cc6a78-961b-4527-9410-271d628e81ce%40opennetworking.org.

Sreenivasulu Saya

unread,
Sep 3, 2019, 8:00:20 AM9/3/19
to Trellis Developers, saya...@gmail.com, jayakumar...@infosys.com
Hi Jayakumar,

I have OVS 2.9.2. 
-----------
$ ovs-vsctl --version
ovs-vsctl (Open vSwitch) 2.9.2
DB Schema 7.15.1
----------

Carmelo suggested to follow the steps as given in: https://wiki.onosproject.org/display/ONOS/Try+fabric.p4+with+ONOS+and+bmv2
I am trying that...

Regards,
  --Sreeni Saya
Reply all
Reply to author
Forward
0 new messages