ONOS Cluster Help

110 views
Skip to first unread message

Dennis Agnew

unread,
Mar 8, 2022, 8:40:29 AM3/8/22
to ONOS Discuss
I am trying to create a 3 controller cluster. I am only using my VM on my desktop, no other devices. or vms. I have downloaded and verified that ONOS is running appropriately on my device and I have connected it with mininet without any issues. Now I am trying to add 2 additional controllers by following the instructions in: 

I am at the last step of onos configuration but I still do not see 3 controllers when I login to the ONOS GUI. Is the right path to place the cluster.json file in onos/apps/config ? 

Eder

unread,
Mar 8, 2022, 9:01:07 AM3/8/22
to ONOS Discuss, Dennis Agnew

Hi Dennis,


Hope it helps

Cheers,

Eder

unread,
Mar 8, 2022, 9:23:25 AM3/8/22
to ONOS Discuss, Eder, Dennis Agnew
Hi,

Please do not drop the onos-discuss mail list address from your replies.

I think the script installs it as a docker container so you don't need ot have it installed. You just need to make sure to have Docker installed in your system. If you have an Ubuntu, this guide will work. Then follow the example command from the wiki to deploy an example cluster.

Cheers,


> Thank you, Do I need to have automix 3.1.5 installed?  I have 3.0.8 currently. 

Dennis Agnew

unread,
Mar 8, 2022, 9:31:50 AM3/8/22
to ONOS Discuss, Eder, Dennis Agnew
  Thank you, sorry, I was replying from within my email inbox. What you mentioned worked, and I see that it started the 5 controllers mentioned in the instructions and example you sent. However, I still can not see it in GUI like the one controller shown below. I attached screenshots below. How can bring up the 5 controllers in the GUI? temp1.PNGtemp2.PNG  

Eder

unread,
Mar 8, 2022, 9:59:35 AM3/8/22
to ONOS Discuss, Dennis Agnew, Eder
Hi,

Sometimes, for convenience, I also install portainer to manage all containers. Please check that all containers, like Atomix and ONOS are running. You can do that with portainer's web GUI or running sudo docker ps -a.

I also see (maybe) an error saying the atomix.conf file was not found. I cannot see the whole command you run so that would be nice to see too. I will try the script again later on to check that I get no errors 

Finally, the web GUI you access is not the one you are using in Docker. That version is the version you stated in the script (2.3.0). Use ONOS_1 IP  in the web URL instead.

Cheers,

Dennis Agnew

unread,
Mar 8, 2022, 10:25:53 AM3/8/22
to ONOS Discuss, Eder, Dennis Agnew

Thank you, I was able to get the GUI running. Since I am running ONOS & Atomix now in a docker, how do I activate the openflow and forwarding applications like I was able to before from the localhost terminal? 

Eder Ollora

unread,
Mar 8, 2022, 10:40:36 AM3/8/22
to Dennis Agnew, ONOS Discuss
Hi,

Run:

ssh -p 8101 -o StrictHostKeyChecking=no karaf@localhost

Change localhost for the  IP of the controller and 8101 for the SSH port exposed by each controller. I think controllers go from 8101, 8102, 8103... as you start onos_1, onos_2 and so on.

Also if you stop and remove controllers (and run the script again), SSH will fail and you have to run the command suggested in the console output when the error pops up.

Finally, the controller starts some applications like Openflow, LLDPProvider, fwd and so on. Basic forwarding should work if you connect mininet to one of the controllers.

Cheers

Dennis Agnew

unread,
Mar 8, 2022, 10:54:10 AM3/8/22
to ONOS Discuss, Eder, ONOS Discuss, Dennis Agnew
Thanks for your help Elder. I was able to connect the three controllers. I activated the openflow and forwarding applications in the GUI and that worked too. I am running a test on my network. I will send you a holler in here if I run into any more issues. Thanks again! One last question I wanted to know out of curiosity is why does ONOS prefer OpenFlow 1.3 instead of the newer version such as 1.5.1? And will ONOS receive any support in the future for newer versions of OpenFlow? 

Eder

unread,
Mar 9, 2022, 6:01:57 AM3/9/22
to ONOS Discuss, dennis...@gmail.com, Eder, ONOS Discuss
Hi,

Good to see it worked. 

Everytime I see an error at ONOS when using OpenFlow 1.5 seems to be related to wrong message parsing. It might seem that the switch and controller run the same protocol version but some things might have been programmed differently. So there is a chance that both parties have implemented OpenFlow 1.5 support with slight differences message format (this is my theory).

As far as I know, there is no version different specified after OpenFlow 1.5.1, so I do not think there is going to be support for another version more recent soon. There might be OpenFlow 1.5.2 or 1.6 at some point, but no idea about the ongoing work in specifications. You can take a look at the ONFs open specs and the work related to OpenFlow. The lack of specifications in the last years can both be that OF 1.5 already accommodates most of the necessary features by the industry and academia and (particularly) that the popularity of P4 and P4Runtime cover other requirements in terms of packet processing and control plane handling. I am not sure but those are my thoughts. If there is a newer OpenFlow version there might be support for it, but this is unknown yet.

Cheers,

Dennis Agnew

unread,
Mar 9, 2022, 6:50:20 AM3/9/22
to Eder, ONOS Discuss
Oh ok, well thank you for your help with everything! 

Virus-free. www.avg.com

Dennis Agnew

unread,
May 18, 2022, 5:19:22 PM5/18/22
to ONOS Discuss, Dennis Agnew, ONOS Discuss, Eder
Hello Eder, I am following the use of docker for onos: 
but I cannot use see the GUI when I connect using firefox. I tried your previous commands :  ssh -p 8101 -o StrictHostKeyChecking=no karaf@localhost but not use because I get the error "ssh: connect to host localhost port 8181: Connection refused"

Dennis Agnew

unread,
May 18, 2022, 5:20:42 PM5/18/22
to ONOS Discuss, Dennis Agnew, ONOS Discuss, Eder
error.PNG
Message has been deleted

Dennis Agnew

unread,
May 18, 2022, 5:44:30 PM5/18/22
to ONOS Discuss, Dennis Agnew, ONOS Discuss, Eder
Thank you I fixed it by removing the cache data from firefox
Reply all
Reply to author
Forward
0 new messages