routing list not filtered by project

Bug #1711003 reported by Chaoyi Huang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Tricircle
Fix Released
High
Dongfeng Huang

Bug Description

source openrc admin demo

using admin role for demo project, return result including admin project's routings. The result should be only related to demo project.

openstack multiregion networking routing list
+----+--------------------------------------+----------------+-----------------------------------------------------------------------------------+
| Id | Pod id | Resource type | Top id |
+----+--------------------------------------+----------------+-----------------------------------------------------------------------------------+
| 29 | cf1d4baf-a74d-4abf-88a9-7f6cb6a42276 | port | bridge_port_d7b9bbf3116e4ce7885b1dd0d472d697_87c8dd2f-1730-4a2f-af68-d4e6d40744cc |
| 28 | d40a7f8d-7908-4909-9848-895c92754026 | ns_router | 1dd62eec-cc41-4d4f-9cfc-89c0b313e352 |
| 27 | d40a7f8d-7908-4909-9848-895c92754026 | subnet | b937a45d-f914-4f2e-8254-2b7f5566caa8 |
| 26 | d40a7f8d-7908-4909-9848-895c92754026 | network | 363e3dc8-df6b-4606-ab63-96036bb888cf |
| 25 | cf1d4baf-a74d-4abf-88a9-7f6cb6a42276 | port | bridge_port_d7b9bbf3116e4ce7885b1dd0d472d697_aab67ab5-f753-42e6-a16b-ef613658e125 |
| 24 | d40a7f8d-7908-4909-9848-895c92754026 | router | 1dd62eec-cc41-4d4f-9cfc-89c0b313e352 |
| 23 | c6cef824-7a6a-41b8-abc5-87839374b633 | subnet | b937a45d-f914-4f2e-8254-2b7f5566caa8 |
| 22 | c6cef824-7a6a-41b8-abc5-87839374b633 | network | 363e3dc8-df6b-4606-ab63-96036bb888cf |
| 21 | cf1d4baf-a74d-4abf-88a9-7f6cb6a42276 | port | bridge_port_d7b9bbf3116e4ce7885b1dd0d472d697_2bec7bf0-1943-4232-ad87-ea8c1a747eea |
| 20 | c6cef824-7a6a-41b8-abc5-87839374b633 | router | 1dd62eec-cc41-4d4f-9cfc-89c0b313e352 |
| 19 | cf1d4baf-a74d-4abf-88a9-7f6cb6a42276 | subnet | bridge_subnet_d7b9bbf3116e4ce7885b1dd0d472d697 |
| 18 | cf1d4baf-a74d-4abf-88a9-7f6cb6a42276 | network | bridge_net_d7b9bbf3116e4ce7885b1dd0d472d697 |
| 17 | cf1d4baf-a74d-4abf-88a9-7f6cb6a42276 | subnetpool | bridge_subnet_pool |
| 16 | d40a7f8d-7908-4909-9848-895c92754026 | subnet | ad6200bb-c267-4bca-a999-79874e1b4acc |
| 15 | d40a7f8d-7908-4909-9848-895c92754026 | network | 6c3b891c-f6f1-43ca-910d-e8708e92eda5 |
| 14 | d40a7f8d-7908-4909-9848-895c92754026 | security_group | eeaddfb1-fb26-4b48-8752-a38f3404d157 |
| 13 | d40a7f8d-7908-4909-9848-895c92754026 | port | 85f9356a-254c-44ca-9b2b-8986956d19f1 |
| 12 | d40a7f8d-7908-4909-9848-895c92754026 | network | accd3ea4-6c70-4943-b554-366ea0e21e31 |
| 11 | d40a7f8d-7908-4909-9848-895c92754026 | subnet | 3c4c9f5f-64ea-439f-9315-df13535268d1 |
| 10 | d40a7f8d-7908-4909-9848-895c92754026 | port | interface_RegionTwo_3c4c9f5f-64ea-439f-9315-df13535268d1 |
| 9 | c6cef824-7a6a-41b8-abc5-87839374b633 | security_group | eeaddfb1-fb26-4b48-8752-a38f3404d157 |
| 8 | c6cef824-7a6a-41b8-abc5-87839374b633 | port | 1be29c72-d1fb-4211-b81a-29ce7b5db76d |
| 7 | c6cef824-7a6a-41b8-abc5-87839374b633 | network | 1b2235b4-bd35-49d0-a1ba-f27431b072df |
| 6 | c6cef824-7a6a-41b8-abc5-87839374b633 | subnet | 0364ca0c-ddf7-48fe-b103-b7e1cbd9b4b0 |
| 5 | c6cef824-7a6a-41b8-abc5-87839374b633 | port | interface_RegionOne_0364ca0c-ddf7-48fe-b103-b7e1cbd9b4b0 |
| 4 | cf1d4baf-a74d-4abf-88a9-7f6cb6a42276 | port | dhcp_port_3c4c9f5f-64ea-439f-9315-df13535268d1 |
| 3 | cf1d4baf-a74d-4abf-88a9-7f6cb6a42276 | port | snat_port_3c4c9f5f-64ea-439f-9315-df13535268d1 |
| 2 | cf1d4baf-a74d-4abf-88a9-7f6cb6a42276 | port | dhcp_port_0364ca0c-ddf7-48fe-b103-b7e1cbd9b4b0 |
| 1 | cf1d4baf-a74d-4abf-88a9-7f6cb6a42276 | port | snat_port_0364ca0c-ddf7-48fe-b103-b7e1cbd9b4b0 |
+----+--------------------------------------+----------------+-----------------------------------------------------------------------------------+

Chaoyi Huang (joehuang)
Changed in tricircle:
status: New → Confirmed
importance: Undecided → High
Chaoyi Huang (joehuang)
Changed in tricircle:
assignee: nobody → Dongfeng Huang (southeast02)
milestone: none → pike-rc1
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tricircle (master)

Fix proposed to branch: master
Review: https://review.openstack.org/494057

Changed in tricircle:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tricircle (master)

Reviewed: https://review.openstack.org/494057
Committed: https://git.openstack.org/cgit/openstack/tricircle/commit/?id=9939540c070423906ebd8aba0070713b845f868c
Submitter: Jenkins
Branch: master

commit 9939540c070423906ebd8aba0070713b845f868c
Author: Dongfeng Huang <email address hidden>
Date: Wed Aug 16 10:26:24 2017 +0800

    Fix bugs in tricircle Admin API

    1. What is the problem
    When we use admin role for demo project to retrieve jobs/routings
    through Admin API, return results include admin project's
    jobs/routings. The result should be only related to demo project.

    2. What is the solution for the problem
    Extract project ID from context and use it as filter. The project
    ID filter in URL query string will be ignored, and only the project ID
    in which the user is authorized will be used as the filter.

    3. What the features need to be implemented to the Tricircle to
    realize the solution
    Choose project ID as mandatory filter for jobs/routings list operation.

    Change-Id: I86778e0525c1fecf45bc473bd42e62909534778b
    Closes-Bug: #1711001
    Closes-Bug: #1711003

Changed in tricircle:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tricircle 4.0.0

This issue was fixed in the openstack/tricircle 4.0.0 release.

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.