[OPNFLWPLUG-403] nodes remain in operational after switch disconnects using lithium re-design feature set Created: 17/Apr/15  Updated: 27/Sep/21  Resolved: 30/Apr/15

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

Type: Bug
Reporter: Jamo Luhrsen Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Blocks
blocks OPNFLWPLUG-357 Milestone: OpenFlow Plugin Lithium Re... Resolved
External issue ID: 3008

 Description   

using the Lithium re-design feature set "odl-openflowplugin-app-new-lldp-speaker"

after connecting one switch via mininet the switch is seen in the operational store, but does not get removed when the switch is disconnected.

mininet CLI:
sudo mn --controller=remote,ip=172.17.7.23 --topo linear,1 --switch ovsk,protocols=OpenFlow13

Logs:

[no nodes initially]
curl -s -u "admin:admin" -u "admin:admin" http://172.17.7.23:8181/restconf/operational/opendaylight-inventory:nodes/ | python -m json.tool
{
"nodes": {}
}

[after starting mininet, there is one expected node]
curl -s -u "admin:admin" -u "admin:admin" http://172.17.7.23:8181/restconf/operational/opendaylight-inventory:nodes/ | python -m json.tool
{
"nodes": {
"node": [
{
"flow-node-inventory:description": "None",
"flow-node-inventory:hardware": "Open vSwitch",
"flow-node-inventory:manufacturer": "Nicira, Inc.",
"flow-node-inventory:serial-number": "None",
"flow-node-inventory:software": "2.3.0",

<SNIP>

[switch is connected to port 6633]
netstat -na | egrep 6633
tcp6 0 0 :::6633 :::* LISTEN
tcp6 0 0 172.17.7.23:6633 172.17.7.30:49285 ESTABLISHED

[after stopping mininet the switch is disconnected]
netstat -na | egrep 6633
tcp6 0 0 :::6633 :::* LISTEN

[but the node is still seen in operational store]
{
"nodes": {
"node": [
{
"flow-node-inventory:description": "None",
"flow-node-inventory:hardware": "Open vSwitch",
"flow-node-inventory:manufacturer": "Nicira, Inc.",
"flow-node-inventory:serial-number": "None",
"flow-node-inventory:software": "2.3.0",



 Comments   
Comment by Martin Bobak [ 30/Apr/15 ]

This issue is not reproducible on todays (30.4.2015) latest commits. Please retest.

Comment by Jamo Luhrsen [ 30/Apr/15 ]

I have verified this is no longer an issue with openflowplugin code as of git SHA b605eaf2514bbebeab11e1c87e9e73ff9087da69 (4/29/2015)

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