Staled route-targets are not cleaned properly during schema startup.

Bug #1808518 reported by sureshkvl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
Undecided
Unassigned

Bug Description

In R3.2, Staled route-targets are not cleaned properly during schema startup.

In the RouteTargetST class(schema-transformer, config_db.py file),
foot print of deleted route_target objects remains in cls._dict, this has to be popped out as soon as the route target is removed.

Proposed fix:
In the schema-transformer, config_db.py file,

In RouteTargetST class, reinit function:

use delete_vnc_obj function to remove the route_target.

information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.2

Review in progress for https://review.opencontrail.org/48368
Submitter: Jean-Philippe Braun (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/48527
Submitter: Édouard Thuleau (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R5.0

Review in progress for https://review.opencontrail.org/48528
Submitter: Édouard Thuleau (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/48529
Submitter: Édouard Thuleau (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/48368
Committed: http://github.com/Juniper/contrail-controller/commit/c67b8dde7da032a9adab592a19e0034a249e8713
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit c67b8dde7da032a9adab592a19e0034a249e8713
Author: suresh <email address hidden>
Date: Fri Dec 21 10:40:48 2018 +0530

schema-transfomer: clean stale route-target properly

When RouteTargets are reinitialized, the stale route targets (route
targets which doesn't have logical router backref or routing instance
back ref) are getting removed. But its not removed properly. Route
target remains on cls.__dict. Call the 'delete_vnc_obj' method which
cleans the route target properly.

Change-Id: Ib7583ef8560091d530d3f3ec4cccbb996d6e6e32
Closes-Bug: #1808518

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/48529
Committed: http://github.com/Juniper/contrail-controller/commit/89bf1a8eb99ab38ea21b56a5e8cc8516432a4ea4
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit 89bf1a8eb99ab38ea21b56a5e8cc8516432a4ea4
Author: suresh <email address hidden>
Date: Fri Dec 21 10:40:48 2018 +0530

schema-transfomer: clean stale route-target properly

When RouteTargets are reinitialized, the stale route targets (route
targets which doesn't have logical router backref or routing instance
back ref) are getting removed. But its not removed properly. Route
target remains on cls.__dict. Call the 'delete_vnc_obj' method which
cleans the route target properly.

Change-Id: Ib7583ef8560091d530d3f3ec4cccbb996d6e6e32
Closes-Bug: #1808518

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/48527
Committed: http://github.com/Juniper/contrail-controller/commit/d092d65c4155790c69d6e93f7ea46e0f3e984746
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit d092d65c4155790c69d6e93f7ea46e0f3e984746
Author: suresh <email address hidden>
Date: Fri Dec 21 10:40:48 2018 +0530

schema-transfomer: clean stale route-target properly

When RouteTargets are reinitialized, the stale route targets (route
targets which doesn't have logical router backref or routing instance
back ref) are getting removed. But its not removed properly. Route
target remains on cls.__dict. Call the 'delete_vnc_obj' method which
cleans the route target properly.

Change-Id: Ib7583ef8560091d530d3f3ec4cccbb996d6e6e32
Closes-Bug: #1808518

Changed in juniperopenstack:
status: New → Fix Committed
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/48528
Committed: http://github.com/Juniper/contrail-controller/commit/6bba357726eca3cdc8f57eaf76536a6357088d3a
Submitter: Zuul v3 CI (<email address hidden>)
Branch: R5.0

commit 6bba357726eca3cdc8f57eaf76536a6357088d3a
Author: suresh <email address hidden>
Date: Fri Dec 21 10:40:48 2018 +0530

schema-transfomer: clean stale route-target properly

When RouteTargets are reinitialized, the stale route targets (route
targets which doesn't have logical router backref or routing instance
back ref) are getting removed. But its not removed properly. Route
target remains on cls.__dict. Call the 'delete_vnc_obj' method which
cleans the route target properly.

Change-Id: Ib7583ef8560091d530d3f3ec4cccbb996d6e6e32
Closes-Bug: #1808518

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.