Config nodes are not freed if Config update with Null ID_PERMS precedes config delete
Bug #1420209 reported by
Divakar Dharanalakota
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R2.1 |
Fix Committed
|
High
|
Divakar Dharanalakota | |||
Trunk |
Fix Committed
|
High
|
Divakar Dharanalakota |
Bug Description
Before receiving a Delete of node, if an Update is received without ID_PERMS, this object is never freed from config db in Agent. As Agent uses UUID as key, if update without ID_PERMS is received, the key is lost and delete to oper is not getting invoked. This is leading non-clearing of DBState of config Node and even config node is not getting deleted.
As a fix, in Config node's DBState UUId is stored when properly recieved. An update without ID_PERMS is converted to Delete from IFMapAgentTable. The delete of node uses UUID from CfgDbState and triggers delete.
IFNodeToREq of all nodes has been modififed to pick the uuid from CfgDBState rather from IFMapNode.
-Divakar
no longer affects: | juniperopenstack/r2.20 |
information type: | Proprietary → Public |
To post a comment you must log in.
Reviewed: https:/ /review. opencontrail. org/7258 github. org/Juniper/ contrail- controller/ commit/ 6a9b4be6a0dcfb3 980bd072a57f927 61a548eb9c
Committed: http://
Submitter: Zuul
Branch: R2.1
commit 6a9b4be6a0dcfb3 980bd072a57f927 61a548eb9c
Author: Divakar <email address hidden>
Date: Tue Feb 10 03:29:56 2015 -0800
Holding the UUID from ID_PERMS in config DBState in DB Add and using it
for Config Delete
closes-bug: #1420209
Change-Id: I3b3f591b373060 5660bcdef9c5c07 503c55cc09b