[OPNFLWPLUG-753] Role Context Error Causes Flows to be not installed (Li Plugin) Created: 23/Aug/16  Updated: 27/Sep/21  Resolved: 20/Sep/16

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

Type: Bug
Reporter: Venkatrangan Govindarajan Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: All


External issue ID: 6518

 Description   

Tested the Legacy Netvirt in stable/Boron

a. 3node ODL feature: odl-ovsdd-openstack

openflowplugin features:
opendaylight-user@root>feature:list -i | grep -i openflow
odl-openflowjava-protocol | 0.8.0-SNAPSHOT | x | odl-openflowjava-0.8.0-SNAPSHOT | OpenDaylight :: Openflow Java :: Protocol
odl-openflowplugin-flow-services | 0.3.0-SNAPSHOT | x | openflowplugin-0.3.0-SNAPSHOT | OpenDaylight :: Openflow Plugin :: Flow Services
odl-openflowplugin-southbound | 0.3.0-SNAPSHOT | x | openflowplugin-0.3.0-SNAPSHOT | OpenDaylight :: Openflow Plugin :: Li southbound A
odl-openflowplugin-nsf-model | 0.3.0-SNAPSHOT | x | openflowplugin-0.3.0-SNAPSHOT | OpenDaylight :: OpenflowPlugin :: NSF :: Model
odl-openflowplugin-app-config-pusher | 0.3.0-SNAPSHOT | x | openflowplugin-0.3.0-SNAPSHOT | OpenDaylight :: Openflow Plugin :: Application - d
odl-openflowplugin-app-topology | 0.3.0-SNAPSHOT | x | openflowplugin-0.3.0-SNAPSHOT | OpenDaylight :: Openflow Plugin :: Application - t
odl-openflowplugin-app-forwardingrules-manager | 0.3.0-SNAPSHOT | x | openflowplugin-0.3.0-SNAPSHOT | OpenDaylight :: Openflow Plugin :: Application - F
odl-openflowplugin-nxm-extensions | 0.3.0-SNAPSHOT | x | openflowplugin-extension-0.3.0-SNAPSHOT | OpenDaylight :: Openflow Plugin :: Nicira Extensio

b. Used 3 Openstack nodes

c. After stacking successfully, checked the flow entires in all openstack nodes

expectation: initial pipeline flows to be installed

REsult: In 2nodes, the flows were installed successfully, it failed in 1 openstack node.

Checked the karaf .log and saw the below ERROR getting repeated for a long time

--------------START---------------
2016-08-23 23:17:32,980 | INFO | entLoopGroup-9-2 | ConnectionContextImpl | 296 - org.opendaylight.openflowplugin.impl - 0.3.0.SNAPSHOT | Unregister outbound queue successful.
2016-08-23 23:17:32,981 | INFO | entLoopGroup-9-2 | RpcManagerImpl | 296 - org.opendaylight.openflowplugin.impl - 0.3.0.SNAPSHOT | Unregister RPCs services for device context closure
2016-08-23 23:17:32,981 | INFO | entLoopGroup-9-2 | RoleContextImpl | 296 - org.opendaylight.openflowplugin.impl - 0.3.0.SNAPSHOT | Role context closed, unregistering all candidates for ownership for node Uri [_value=openflow:115000609043230]
2016-08-23 23:17:40,941 | INFO | entLoopGroup-9-1 | ConnectionAdapterImpl | 291 - org.opendaylight.openflowjava.openflow-protocol-impl - 0.8.0.SNAPSHOT | Hello received / branch
2016-08-23 23:17:40,942 | INFO | entLoopGroup-9-1 | DeviceManagerImpl | 296 - org.opendaylight.openflowplugin.impl - 0.3.0.SNAPSHOT | ConnectionEvent: Device connected to controller, Device:/10.128.0.7:50630, NodeId:Uri [_value=openflow:115000609043230]
2016-08-23 23:17:40,943 | ERROR | entLoopGroup-9-1 | HandshakeListenerImpl | 296 - org.opendaylight.openflowplugin.impl - 0.3.0.SNAPSHOT | ConnectionContext initial processing failed: Role context for master Node Uri [_value=openflow:115000609043230] is still not closed.

---------------END---------------

After sometime some flow entries were installed, but stil lthe initial pipeline flows were missing.

Attached the logs from all three ODL

Error is found in ODL3 log and once in ODL1 log.



 Comments   
Comment by Venkatrangan Govindarajan [ 23/Aug/16 ]

Entity Owners

{
"entity-owners": {
"entity-type": [
{
"entity": [
{
"candidate": [

{ "name": "member-2" }

,

{ "name": "member-3" }

,

{ "name": "member-1" }

],
"id": "/general-entity:entity[general-entity:name='ovsdb-southbound-provider']",
"owner": "member-2"
}
],
"type": "ovsdb-southbound-provider"
},
{
"entity": [
{
"candidate": [

{ "name": "member-2" }

,

{ "name": "member-3" }

,

{ "name": "member-1" }

],
"id": "/general-entity:entity[general-entity:name='ovsdb-netvirt-provider']",
"owner": "member-2"
}
],
"type": "ovsdb-netvirt-provider"
},
{
"entity": [
{
"candidate": [

{ "name": "member-3" }

,

{ "name": "member-2" }

,

{ "name": "member-1" }

],
"id": "/general-entity:entity[general-entity:name='openflow:264645777482562']",
"owner": "member-3"
},
{
"candidate": [

{ "name": "member-2" }

,

{ "name": "member-1" }

],
"id": "/general-entity:entity[general-entity:name='openflow:115000609043230']",
"owner": "member-2"
},
{
"candidate": [

{ "name": "member-2" }

,

{ "name": "member-3" }

,

{ "name": "member-1" }

],
"id": "/general-entity:entity[general-entity:name='openflow:57774159221146']",
"owner": "member-2"
}
],
"type": "openflow"
},
{
"entity": [
{
"candidate": [

{ "name": "member-3" }

,

{ "name": "member-1" }

,

{ "name": "member-2" }

],
"id": "/network-topology:network-topology/network-topology:topology[network-topology:topology-id='ovsdb:1']/network-topology:node[network-topology:node-id='ovsdb://uuid/60e0c199-12af-4b7a-92b1-d158d4760c54']",
"owner": "member-3"
},
{
"candidate": [

{ "name": "member-3" }

,

{ "name": "member-1" }

,

{ "name": "member-2" }

],
"id": "/network-topology:network-topology/network-topology:topology[network-topology:topology-id='ovsdb:1']/network-topology:node[network-topology:node-id='ovsdb://uuid/01ef54eb-758e-437c-90f0-c7ff69557873']",
"owner": "member-3"
},
{
"candidate": [

{ "name": "member-2" }

,

{ "name": "member-3" }

,

{ "name": "member-1" }

],
"id": "/network-topology:network-topology/network-topology:topology[network-topology:topology-id='ovsdb:1']/network-topology:node[network-topology:node-id='ovsdb://uuid/750bdcf3-e21e-46b3-9ff0-7af076be63ec']",
"owner": "member-2"
}
],
"type": "ovsdb"
},
{
"entity": [
{
"candidate": [

{ "name": "member-3" }

],
"id": "/general-entity:entity[general-entity:name='openflow:264645777482562']",
"owner": "member-3"
},
{
"candidate": [

{ "name": "member-2" }

],
"id": "/general-entity:entity[general-entity:name='openflow:115000609043230']",
"owner": "member-2"
},
{
"candidate": [

{ "name": "member-2" }

],
"id": "/general-entity:entity[general-entity:name='openflow:57774159221146']",
"owner": "member-2"
}
],
"type": "ofTransaction"
}
]
}
}

Comment by Venkatrangan Govindarajan [ 23/Aug/16 ]

Testing again with latest image.

after this patch got merged : https://git.opendaylight.org/gerrit/#/c/44476/1

Comment by Andrej Leitner [ 25/Aug/16 ]

Hi Venkat,
we didn't find this issue recently. Could you please retest it with actual codebase? (master or boron, it could be one-to-one actually)

Thanks.

Comment by Andrej Leitner [ 13/Sep/16 ]

No activity here for almost 3 weeks, decreasing to normal.
Venkatrangan, did you have a chance to test it with the latest build?

Comment by Karthikeyan [ 19/Sep/16 ]

Tested this with the following distribution
https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/distribution-karaf/0.5.0-SNAPSHOT/distribution-karaf-0.5.0-20160913.171011-4892.tar.gz

The bug is not reproduced.
After stacking, checked the initial pipeline flows entries in all openstack nodes.Flows are installed properly.

Comment by Andrej Leitner [ 19/Sep/16 ]

If there is not really the problem or was fixed on the way, please close the bug.

Comment by Venkatrangan Govindarajan [ 20/Sep/16 ]

the problem is not observed in anyt manual testing/CSIT recently

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