[OPNFLWPLUG-146] Topology not cleared using mininet of13/of10 simulation Created: 01/May/14  Updated: 27/Sep/21  Resolved: 30/May/14

Status: Resolved
Project: OpenFlowPlugin
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Madhusudhan Ananderi Assignee: Madhusudhan Ananderi
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Windows
Platform: PC


Issue Links:
Duplicate
is duplicated by CONTROLLER-452 proactively update topology webUI w/o... Resolved
External issue ID: 933

 Description   

Hello,

Topology fails with controller(of13) using both OF13 & OF10 mininet simulation

Steps can be reproduced easily:

Download the latest controller form integration repo.

1. Start the controller : ./run.sh -of13 -Xmx1G -start
2. Start the mininet(of10): sudo mn --controller 'remote,ip=127.0.0.1,port=6633' --topo tree,2
3. GET http://localhost:8080/controller/nb/v2/topology/default

and the response is
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<topology/>

4. Start the mininet(of13): sudo mn --topo tree,2 --controller 'remote,ip=127.0.0.1,port=6633' --switch ovsk,protocols=OpenFlow13

5. GET http://localhost:8080/controller/nb/v2/topology/default

and the response is
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<topology/>

Because of this topology behavior, the other testcases are getting failed.

Thanks,
Madhusudhan



 Comments   
Comment by Tony Tkacik [ 05/May/14 ]

This bug should be fixed at current master, please verify if the topology is working.

Comment by Madhusudhan Ananderi [ 05/May/14 ]

Yes, this has been fixed and working fine now. I am able to see the links.

However, I still having issues with the errors shown in OSGi logs after starting the mininet (of13/of10) simulation. This is reported in OPNFLWPLUG-148 and waiting for the fix status to be merged.

Thanks,
Madhusudhan

Comment by Madhusudhan Ananderi [ 05/May/14 ]

Tony,

Topology is not cleared on the GUI now after disconnecting mininet (both of13/of10).

However, when I check at the inventory, it is cleared and working as expected.

GET http://127.0.0.1:8080/controller/nb/v2/connectionmanager/nodes

Thanks,
Tony

Comment by Tony Tkacik [ 07/May/14 ]

Bugfix in https://git.opendaylight.org/gerrit/#/c/6785/1 . Incorrect edge update was sent to topology manager on link removed.

Comment by Madhusudhan Ananderi [ 07/May/14 ]

Hi Tony,

Thanks for the fix. Topology is cleared on the GUI after disconnecting mininet (both of13/of10)

I got the following in the topology:

1. When using mininet (of10) simulation: sudo mn --topo tree,2 --controller 'remote,ip=10.125.136.52,port=6633' --switch ovsk,protocols=OpenFlow13

The below stats is correct.

Node ID Ports
MD_SAL|openflow:1 3
MD_SAL|openflow:3 4
MD_SAL|openflow:2 4

2. When using mininet (of13) simulation: sudo mn --topo tree,2 --controller 'remote,ip=10.125.136.52,port=6633' --switch ovsk,protocols=OpenFlow13

Node ID Ports
MD_SAL|openflow:1 2
MD_SAL|openflow:3 3
MD_SAL|openflow:2 3

Shouldn't be the same stats as shown using mininet (of10)?

Comment by Madhusudhan Ananderi [ 07/May/14 ]

Sorry for the typo error.

Please assume the below point

1. When using mininet (of10) simulation: sudo mn --topo tree,2 --controller 'remote,ip=10.125.136.52,port=6633' --switch ovsk,protocols=OpenFlow13

as this one.

1. When using mininet (of10) simulation: sudo mn --topo tree,2 --controller 'remote,ip=10.125.136.52,port=6633'

Comment by Luis Gomez [ 07/May/14 ]

This is working for me now, what about you Madhusudhan?

Comment by Madhusudhan Ananderi [ 07/May/14 ]

Luis, Were you able to see the correct ports on the GUI?

Everything works fine except the above thing!

Comment by Luis Gomez [ 07/May/14 ]

Hi Madhu, I see the same as you but this is totally unrelated issue so please open a new bug for it. For this new bug I already saw it could be because of the internal switch connector type in the AD-SAL switch manager. For the same topology:

Using OF13 simulation, the internal switch connector is type SW and does not show in GUI:

GET http://localhost:8080/controller/nb/v2/switchmanager/default/node/MD_SAL/openflow:1

{
"properties": {
"name":

{ "value": "s1" }

,
"state":

{ "value": 1 }

,
"config":

{ "value": 1 }

},
"nodeconnector": {
"node":

{ "id": "openflow:1", "type": "MD_SAL" }

,
"id": "0",
"type": "SW"
}
},

Using OF10 simulation, the internal switch connector is type MD_SAL and shows in GUI:

"properties": {
"name":

{ "value": "s1" }

,
"state":

{ "value": 1 }

,
"config":

{ "value": 1 }

},
"nodeconnector": {
"node":

{ "id": "openflow:1", "type": "MD_SAL" }

,
"id": "openflow:1:65534",
"type": "MD_SAL"
}
},

Comment by Madhusudhan Ananderi [ 07/May/14 ]

Thanks Luis. I agree with your logic. The new issue is not related to the title of this bug.

Hence this bug stands resolved!

Comment by Abhijit Kumbhare [ 29/May/14 ]

Madhusudhan - if its resolved - can you mark it fixed?

Comment by Madhusudhan Ananderi [ 29/May/14 ]

Hi Abhijit,

This issue is fixed and verified. Moved the status to FIXED.

BR/Madhu

Comment by Luis Gomez [ 30/May/14 ]

I opened OPNFLWPLUG-178 for the issue that is nothing to do with this bug.

Generated at Wed Feb 07 20:31:40 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.