Routing instance not deleted for VN in control node after VN delete api call. Schema warning messages seen

Bug #1803264 reported by Shashikiran H
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R5.0
Fix Committed
High
sangarshan p
Trunk
In Progress
High
sangarshan p

Bug Description

5.0-348 queens
3 config, 3 control, 3 compute

RI continues to exist in the control node after VNC api call vnc_lib.virtual_network_delete to delete the VN.

Ifmap messages to delete RI, delete VN and their link are generated on config. Will Attach ifmap trace messages to this bug.

But there are schema warning messages like this below, even before I try to delete the VN:
11/14/2018 08:19:41 AM [contrail-schema] [WARNING]: Object routing_instance uuid 715c5d9e-bfe9-4865-a58c-972666b0e14a was not found for operation DELETE

The routing instance trace itself has these messages in it:
2018-11-14 06:59:23.017 RoutingInstanceDelete: str1 = VirtualNetwork name = default-domain:ctest-TestIntfMirror-32550791:ctest-vn3-42155112 str3 = Routing Instance instance_name = default-domain:ctest-TestIntfMirror-32550791:ctest-vn3-42155112:ctest-vn3-42155112 file = controller/src/bgp/routing-instance/routing_instance.cc line = 663
2018-11-14 06:59:23.018 RoutingInstanceShutdown: str1 = VirtualNetwork name = default-domain:ctest-TestIntfMirror-32550791:ctest-vn3-42155112 str3 = Routing Instance instance_name = default-domain:ctest-TestIntfMirror-32550791:ctest-vn3-42155112:ctest-vn3-42155112 file = controller/src/bgp/routing-instance/routing_instance.cc line = 1373

Revision history for this message
Shashikiran H (skiranh) wrote :
Revision history for this message
Shashikiran H (skiranh) wrote :

Nikhil looked at the setup. The reason VN is not deleted is because there are listeners attached to the VN

Revision history for this message
Sudheendra Rao (sudheendra-k) wrote :

removing the blocker, VN deletion is failing, but not affecting any functionality.

tags: added: sanity
removed: blocker sanityblocker
Revision history for this message
Shashikiran H (skiranh) wrote :

I have to try and delete the VMI and VN manually. Assigning the bug to myself for now.

Revision history for this message
Shashikiran H (skiranh) wrote :

Tried manually as well. For now, looks like agent is supposed to send unsubscribe when vmi gets deleted.

Revision history for this message
Shashikiran H (skiranh) wrote :

Nikhil and Sangarshan have taken a look at the problem. They will provide an update.

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

Review in progress for https://review.opencontrail.org/48536
Submitter: sangarshan p (<email address hidden>)

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

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

commit a33e5b928482cc013497c7bdf9620bf0ad21214e
Author: sangarshp <email address hidden>
Date: Tue Jan 8 10:34:51 2019 +0530

Don't overwrite createvrf flag for mirror config updates

Agent sets create vrf flag to true if it creates VRF as part of mirror
entry addition. when mirror entry is deleted , Agent checks vreate vrf flag,
if it is set then deletes teh VRF. In this scenario, mirror config updates
are overwriting the flag to false and that blocks the VRF deletion

made changes not to overwrite the flag if it set.

Change-Id: I6a202da04a91b1d2d9554c13579e1d960cf92e0e
Closes-bug: #1803264

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

Review in progress for https://review.opencontrail.org/48743
Submitter: sangarshan p (<email address hidden>)

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

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

commit 7c5257cf5ab880f0fa22f5d81c6de0c8f3ff8598
Author: sangarshp <email address hidden>
Date: Tue Jan 8 10:34:51 2019 +0530

Don't overwrite createvrf flag for mirror config updates

Agent sets create vrf flag to true if it creates VRF as part of mirror
entry addition. when mirror entry is deleted , Agent checks vreate vrf flag,
if it is set then deletes teh VRF. In this scenario, mirror config updates
are overwriting the flag to false and that blocks the VRF deletion

made changes not to overwrite the flag if it set.

Change-Id: I6a202da04a91b1d2d9554c13579e1d960cf92e0e
Closes-bug: #1803264
(cherry picked from commit a33e5b928482cc013497c7bdf9620bf0ad21214e)

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

Review in progress for https://review.opencontrail.org/48877
Submitter: Arun RS (<email address hidden>)

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.