Routing instance may not get destroyed if it's importing static routes
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R2.0 |
Fix Committed
|
High
|
Nischal Sheth | |||
R2.1 |
Fix Committed
|
High
|
Nischal Sheth | |||
R2.20 |
Fix Committed
|
High
|
Nischal Sheth | |||
Trunk |
Fix Committed
|
High
|
Nischal Sheth |
Bug Description
A routing instance that's importing 1 or more static routes may not
get destroyed even if the configuration for the routing instance gets
deleted. This happens because the static route(s) that are imported
into the instance inet table as static routes do not get cleaned up on
instance deletion.
This will be seen only if routing instance configuration is deleted
and then added back quickly. As result of the quick delete and add,
the static route module may not see any changes in the route target
list of the static route if the new routing instance gets the same
route target(s) it had previously. Hence it doesn't try to update
the static routes.
When a table is deleted the RoutePathReplicator schedules walks of all
the tables that have any of the deleted table's import targets in their
export target list. This is normally sufficient to trigger removal of
the secondary routes that have been imported into table being deleted.
However, static routes are a slightly different case since they are added
with route targets to a table that itself doesn't have those targets in
it's export list. Hence the table walks scheduled above are not good
enough to trigger deletion of the secondary routes.
Problem has been recreated using a unit test. Need to figure out a fix.
description: | updated |
summary: |
- Routing instance does not get destroyed if it's importing a static route + Routing instance may not get destroyed if it's importing a static route |
summary: |
- Routing instance may not get destroyed if it's importing a static route + Routing instance may not get destroyed if it's importing static routes |
description: | updated |
description: | updated |
tags: | added: blocker |
Review in progress for https:/ /review. opencontrail. org/11881
Submitter: Nischal Sheth (<email address hidden>)