Optimize listing neutron routers in non-admin role

Bug #1596722 reported by Hampapur Ajay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Fix Committed
High
Hampapur Ajay
R3.0.2.x
Fix Committed
High
Hampapur Ajay
Trunk
Fix Committed
High
Hampapur Ajay

Bug Description

If neutron router list is performed by a non-admin, without any filters/tenant-id, then neutron_plugin_db.py:router_list will fetch routers from all projects and neutron server will drop unwanted ones.

Instead, similar to port_list, fetch only routers from context['tenant_id'] when context['is_admin'] is false.

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

Review in progress for https://review.opencontrail.org/21463
Submitter: Hampapur Ajay (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/21474
Submitter: Hampapur Ajay (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/21463
Committed: http://github.org/Juniper/contrail-controller/commit/51c6303bc25ebdec8f76099a81daf3986f74ddea
Submitter: Zuul
Branch: master

commit 51c6303bc25ebdec8f76099a81daf3986f74ddea
Author: Hampapur Ajay <email address hidden>
Date: Mon Jun 27 15:09:10 2016 -0700

Fetch only routers in project of context['tenant_id'] when non-admin
is requesting router-list without filters.

Change-Id: Ibb48aede78f336bf4301d08f126d28e2fab2d68a
Closes-Bug: 1596722

tags: added: config neutron
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/21474
Committed: http://github.org/Juniper/contrail-controller/commit/9c9791f0c6ce8123a5ba4a8ffb2a8406c5927f3b
Submitter: Zuul
Branch: R3.0

commit 9c9791f0c6ce8123a5ba4a8ffb2a8406c5927f3b
Author: Hampapur Ajay <email address hidden>
Date: Mon Jun 27 15:09:10 2016 -0700

Fetch only routers in project of context['tenant_id'] when non-admin
is requesting router-list without filters.

Change-Id: Ibb48aede78f336bf4301d08f126d28e2fab2d68a
Closes-Bug: 1596722
(cherry picked from commit 51c6303bc25ebdec8f76099a81daf3986f74ddea)

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

Review in progress for https://review.opencontrail.org/21545
Submitter: Hampapur Ajay (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/21545
Committed: http://github.org/Juniper/contrail-controller/commit/c189b533de0d1c5343e208fb091d6f521abcdc89
Submitter: Zuul
Branch: R3.0.2.x

commit c189b533de0d1c5343e208fb091d6f521abcdc89
Author: Hampapur Ajay <email address hidden>
Date: Mon Jun 27 15:09:10 2016 -0700

Fetch only routers in project of context['tenant_id'] when non-admin
is requesting router-list without filters.

Change-Id: Ibb48aede78f336bf4301d08f126d28e2fab2d68a
Closes-Bug: 1596722
(cherry picked from commit 51c6303bc25ebdec8f76099a81daf3986f74ddea)
(cherry picked from commit 9c9791f0c6ce8123a5ba4a8ffb2a8406c5927f3b)

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.