[4.0~20] UI: Policy deletion issues when multiple policies are attached to a VN

Bug #1704078 reported by Pavana
30
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.2
Fix Committed
Medium
Akhil
R4.0
Fix Committed
Medium
Akhil
Trunk
Fix Committed
Medium
Akhil

Bug Description

1. Go to Configure > Networking > Networks and create VNs
2. Go to Configure > Networking > Policies and create policies
3. Go to networks page again and attach the configured policies to VNs and make sure that atleast one VN has more than one policy attached to it
4. Go to policy page and select all policies using the checkbox on top
5. Click on delete and then click on 'Confirm'

You will see that the policies don't get deleted since they are still referenced by the VN.
Internal server error is seen on the console -

POST https://nodeg24:8143/api/tenants/config/delete 500 (Internal Server Error)
send @ jquery.min.js?built_at=1496622160:4
ajax @ jquery.min.js?built_at=1496622160:4
Contrail.ajaxHandler @ core.bundle.js?built_at=1496622160:21728
deletePolicy @ policyModel.js?built_at=1496622160:438
onSave @ policyEditView.js?built_at=1496622160:102
onclick @ core.bundle.js?built_at=1496622160:22410
performFooterBtnClick @ core.bundle.js?built_at=1496622160:27457
(anonymous) @ core.bundle.js?built_at=1496622160:27471
dispatch @ jquery.min.js?built_at=1496622160:3
$event.dispatch @ thirdparty.libs.js?built_at=1496622160:6013
r.handle @ jquery.min.js?built_at=1496622160:3
policyModel.js?built_at=1496622160:449 Object {readyState: 4, getResponseHeader: function, getAllResponseHeaders: function, setRequestHeader: function, overrideMimeType: function…}

The same continues happening on clicking on 'Confirm' button again.
Once you click on cancel and refresh the page, most policies would have gotten deleted actually.

Tags: ui
Revision history for this message
Pavana (pavanap) wrote :
Changed in juniperopenstack:
importance: Undecided → Medium
assignee: nobody → Naga Kiran (nagakiran)
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/34085
Submitter: Akhil (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/34085
Committed: http://github.com/Juniper/contrail-web-controller/commit/74b1836859d9e1a360eb24a967b25feb93e9db05
Submitter: Zuul (<email address hidden>)
Branch: master

commit 74b1836859d9e1a360eb24a967b25feb93e9db05
Author: Akhil <email address hidden>
Date: Thu Jul 27 16:42:58 2017 +0530

Policy deletion issues when multiple policies are attached to VN

Policies are not getting deleted since they are still referenced by VN
Hence added the new method which uses ref-update

Closes-Bug: #1704078

Change-Id: Idfe109a7391d05ec9a46231bdcbea636e3fd6ec8

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

Review in progress for https://review.opencontrail.org/34352
Submitter: Akhil (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/34352
Committed: http://github.com/Juniper/contrail-web-controller/commit/e4cd51c7d6ef7daa716147c6d071c05c3a85d71e
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit e4cd51c7d6ef7daa716147c6d071c05c3a85d71e
Author: Akhil <email address hidden>
Date: Thu Jul 27 16:42:58 2017 +0530

Policy deletion issues when multiple policies are attached to VN

Policies are not getting deleted since they are still referenced by VN
Hence added the new method which uses ref-update

Closes-Bug: #1704078

Change-Id: Idfe109a7391d05ec9a46231bdcbea636e3fd6ec8
(cherry picked from commit 74b1836859d9e1a360eb24a967b25feb93e9db05)

Revision history for this message
Anda-Maria Nicolae (anicolae) wrote :

Hi all,

Thank you for the fix.

Can you please merge this fix in R3.2 branch?

Thanks,
Anda

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

Review in progress for https://review.opencontrail.org/37087
Submitter: Anda Nicolae (<email address hidden>)

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

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

commit 0c18bd6c0312266e173808e5f67e388ea3bd1dda
Author: Akhil <email address hidden>
Date: Thu Jul 27 16:42:58 2017 +0530

Policy deletion issues when multiple policies are attached to VN

Policies are not getting deleted since they are still referenced by VN
Hence added the new method which uses ref-update

Closes-Bug: #1704078

Change-Id: Idfe109a7391d05ec9a46231bdcbea636e3fd6ec8

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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