Switch not getting connected (solved)

28 views
Skip to first unread message

Eder Ollora

unread,
Oct 19, 2023, 6:06:55 AM10/19/23
to ONOS Developers
Quick update: pingall is working, thanks a lot man. I did it without CLI only used GUI for activating proxy and fwd.

Thanks & Regards,
Harsh Bijwe.
Personal mail id: harsh...@gmail.com
Contact: 8234074223.


On Wed, Oct 18, 2023 at 2:38 PM Harsh Bijwe <harsh...@gmail.com> wrote:
Hi Eder,

Performed Step 1 successfully but at Step 2 it says onos: command not found. I eventually did some googling and found out I shall run onos/tools/test/bin/onos localhost. It ran but it was continuously asking for a password. I am entering rocks/karaf, but no help.

Thanks & Regards,
Harsh Bijwe.
Personal mail id: harsh...@gmail.com
Contact: 8234074223.


On Tue, Oct 17, 2023 at 5:03 PM Eder Ollora <gan...@gmail.com> wrote:
Hi,

Do the following:

1) in a first terminal
cd 
cd onos
git branch -m remotes/origin/onos-2.7
bazel run onos-local -- clean

2) in a second terminal and wait for some time
onos localhost 

3) in a third terminal, run a topology
sudo mn --switch=ovsk,protocols=OpenFlow13 --mac --controller=remote --topo single,2
pingall

4) Run apps -s -a (in onos localhost) and paste it here

(if not proxyarp, then app activate proxyarp)

Try and see if this works

Cheers,


On Tue, 17 Oct 2023 at 12:58, Harsh Bijwe <harsh...@gmail.com> wrote:
image.png

I got the attached output.

Thanks & Regards,
Harsh Bijwe.
Personal mail id: harsh...@gmail.com
Contact: 8234074223.


On Tue, Oct 17, 2023 at 4:16 PM Eder Ollora <gan...@gmail.com> wrote:
Hi,

1) You might want to deactivate:

app deactivate tunnel
app deactivate ovsdb-base      
app deactivate ovsdbhostprovider    
app deactivate ovsdb            
app deactivate drivers.ovsdb     
app deactivate drivers        
app deactivate drivers.optical   
app deactivate drivers.polatis.openflow


and also you might want to:

app activate proxyarp

2) Also, please use the output from ONOS to show me :)

3) Also please go to: http://localhost:8181/onos/ui/login.html and do onos / rocks . Let's see if there any switches and hosts (you can type h if you can/cannot see anything)

And check if there are any issue .

Cheers

On Tue, 17 Oct 2023 at 12:34, Harsh Bijwe <harsh...@gmail.com> wrote:
Yeah Eder,

Output 1:
onos@root > apps -s -a                                                  16:02:33
*   4 org.onosproject.hostprovider         2.7.0    Host Location Provider
*   5 org.onosproject.lldpprovider         2.7.0    LLDP Link Provider
*   6 org.onosproject.optical-model        2.7.0    Optical Network Model
*   7 org.onosproject.openflow-base        2.7.0    OpenFlow Base Provider
*   8 org.onosproject.openflow             2.7.0    OpenFlow Provider Suite
*   9 org.onosproject.tunnel               2.7.0    Tunnel Subsystem
*  10 org.onosproject.ovsdb-base           2.7.0    OVSDB Provider
*  11 org.onosproject.ovsdbhostprovider    2.7.0    OVSDB host Provider
*  12 org.onosproject.ovsdb                2.7.0    OVSDB Southbound Meta
*  13 org.onosproject.drivers.ovsdb        2.7.0    Generic OVSDB Drivers
*  18 org.onosproject.drivers              2.7.0    Default Drivers
*  22 org.onosproject.drivers.optical      2.7.0    Basic Optical Drivers
*  23 org.onosproject.drivers.polatis.openflow 2.7.0    Polatis OpenFlow Device Drivers
*  30 org.onosproject.gui2                 2.7.0    ONOS GUI2
*  33 org.onosproject.fwd                  2.7.0    Reactive Forwarding
* 166 org.onosproject.dhcp                 2.7.0    DHCP Server
onos@root >      


Output 2:

sudo mn --switch=ovsk,protocols=OpenFlow13 --mac --controller=remote --topo single,2
*** Creating network
*** Adding controller
Connecting to remote controller at 127.0.0.1:6653
*** Adding hosts:
h1 h2
*** Adding switches:
s1
*** Adding links:
(h1, s1) (h2, s1)
*** Configuring hosts
h1 h2
*** Starting controller
c0
*** Starting 1 switches
s1 ...
*** Starting CLI:
mininet> pingall
*** Ping: testing ping reachability
h1 -> X
h2 -> X
*** Results: 100% dropped (0/2 received)
mininet> 
 

Thanks & Regards,
Harsh Bijwe.
Personal mail id: harsh...@gmail.com
Contact: 8234074223.


On Tue, Oct 17, 2023 at 3:58 PM Eder Ollora <gan...@gmail.com> wrote:
Hi,

First, please can you run this "apps -s -a" and send the output command?

Also, can you run this?

sudo mn --switch=ovsk,protocols=OpenFlow13 --mac --controller=remote --topo single,2

Cheers,


On Tue, 17 Oct 2023 at 12:19, Harsh Bijwe <harsh...@gmail.com> wrote:
I will explain everything I am doing from the start.

1. I start the ONOS controller by command:  sudo /opt/onos/bin/onos-service start

I get following log: (.....) 
2. Then I start the ONOS CLI by: sudo /opt/onos/bin/onos -l onos

I get this:

Password authentication
Password:
Welcome to Open Network Operating System (ONOS)!
     ____  _  ______  ____    
    / __ \/ |/ / __ \/ __/  
   / /_/ /    / /_/ /\ \    
   \____/_/|_/\____/___/    
                               
Documentation: wiki.onosproject.org      
Tutorials:     tutorials.onosproject.org
Mailing lists: lists.onosproject.org    

Come help out! Find out how at: contribute.onosproject.org

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'logout' to exit ONOS session.

onos@root >                                     

3. I create Mininet by: sudo mn --controller remote

I get:

*** Creating network
*** Adding controller
Connecting to remote controller at 127.0.0.1:6653
*** Adding hosts:
h1 h2
*** Adding switches:
s1
*** Adding links:
(h1, s1) (h2, s1)
*** Configuring hosts
h1 h2
*** Starting controller
c0
*** Starting 1 switches
s1 ...
*** Starting CLI:
mininet> pingall
*** Ping: testing ping reachability
h1 -> X
h2 -> X
*** Results: 100% dropped (0/2 received)

Which is expected since I did not enable fwd in the 2nd step.

4. Now I turn on the fwd on ONOS CLI

I get

onos@root > app activate fwd                                            15:42:13
Activated org.onosproject.fwd
onos@root >   

5. Now I do pingall still result is:

mininet> pingall
*** Ping: testing ping reachability
h1 -> X
h2 -> X
*** Results: 100% dropped (0/2 received)

Note I also tried creating topology again by exiting mininet and sudo mn -c then sudo mn --controller remote. But the results are the same. Please help me ping.

Thanks & Regards,
Harsh Bijwe.
Personal mail id: harsh...@gmail.com
Contact: 8234074223.


On Tue, Oct 17, 2023 at 3:31 PM Eder Ollora <gan...@gmail.com> wrote:
Hi,

Please add all the description from when ONOS starts until OvS gets disconnected.

Cheers,

On Tue, 17 Oct 2023 at 11:59, Harsh Bijwe <harsh...@gmail.com> wrote:
Hi,

Thanks for the reply. Yeah I am able to run and exit from mininet as specified by you.

Thanks & Regards,
Harsh Bijwe.
Personal mail id: harsh...@gmail.com
Contact: 8234074223.


On Tue, Oct 17, 2023 at 3:25 PM Eder Ollora <gan...@gmail.com> wrote:
Hi,

Let's see. You can run mininet, but mininet continues coming up. Can you actually stop it?

sudo mn --topo single,5 --switch=ovsk,protocols=OpenFlow13 --controller remote,ip=127.0.0.1 --mac

Then:

mininet> exit

if you cannot exit, then run: 

sudo ps o pgid,args | grep mininet: | sudo awk  '{system("sudo kill --signal SIGSTOP -"$1)}' -

Let me know if you have more problems which I guess you do but let's take one minute at a time :)

cheers



On Tue, 17 Oct 2023 at 11:03, Harsh Bijwe <harsh...@gmail.com> wrote:
Dear Sir,

Please help me. I am stuck at this error since 2 weeks. I am running ONOS 2.7.0 on Ubuntu 18. I am getting Switch Connected and then suddenly switch disconnects. I cannot do ping from one host to other even after enabling forwarding and open flow. Here is log.

14:28:08.940 INFO  [MeterManager] Configured. PurgeOnDisconnection is disabled
14:28:08.941 INFO  [MeterManager] UserDefinedIndex is disabled
14:28:09.430 INFO  [ContextHandler] Started HttpServiceContext{httpContext=WebAppHttpContext{org.onosproject.onos-apps-dhcp-app - 216}}
14:28:09.485 INFO  [ContextHandler] Started HttpServiceContext{httpContext=WebAppHttpContext{org.onosproject._onos-gui2-base-jar - 198}}
14:28:09.538 INFO  [ContextHandler] Started HttpServiceContext{httpContext=WebAppHttpContext{org.onosproject.onos-rest - 197}}
14:30:46.005 INFO  [ServerUserAuthService] Session onos@/127.0.0.1:56670 authenticated
14:31:32.784 INFO  [OFChannelHandler] New switch connection from /127.0.0.1:56918
14:31:32.888 INFO  [OFChannelHandler] Switch disconnected callback for sw:[/127.0.0.1:56918 DPID[?]]. Cleaning up ...
14:31:32.888 WARN  [OFChannelHandler] no dpid in channelHandler registered for disconnected switch [/127.0.0.1:56918 DPID[?]]
ssh-keygen -f "/root/.ssh/known_hosts" -R "[localhost]:8101"

I think problem is switch getting disconnected suddenly after connection. How can I resolve this issue?
Reply all
Reply to author
Forward
0 new messages