[OPNFLWPLUG-661] Li: Clustering - Inventory Operational does not cleared when switch is disconnected from cluster Created: 25/Mar/16  Updated: 27/Sep/21  Resolved: 19/May/16

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

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

Operating System: All
Platform: All


External issue ID: 5607

 Description   

This is a race condition between EntityOwnershipService (EOS) and candidate closures from each of the nodes.

When a switch is disconnected from a cluster of say 5 nodes, when each of the nodes close candidate registrations with EOS, EOS passes on the ownership to another one.

For slaves as soon as we get a disconnect, we immediately clean the roleContext map and then close the candidate.

But EOS might have assigned it as the new master and then process the candidate closure. And if that node is the last node, when its candidate closure is processed it will receive a

{hasOwner=false, wasOwner=true, isOwner=false}

notification to it.

But since we have closed the roleContext before that, we dont have the required context to cleanup the inventory.

We need to ensure that even if a candidate is closed we might receive a hasOwner=false notification and need to handle it.



 Comments   
Comment by Kamal Rameshan [ 28/Mar/16 ]

https://git.opendaylight.org/gerrit/#/c/36783/

Comment by Jozef Bacigal [ 19/May/16 ]

Solved in lifecycle cleaning.

https://git.opendaylight.org/gerrit/#/c/38369/

seee all three patchsets

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