List Tenants in v2 response has parent_id

Bug #1423022 reported by Lin Hua Cheng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Medium
Lin Hua Cheng

Bug Description

When I get a list of Tenants in v2, the parent_id is included in the response. The hierarchical project is only available in v3 and the field should not be exposed in v2.

curl -g -i -X GET http://10.0.2.15:35357/v2.0/tenants -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: <token>"

RESP BODY: {"tenants_links": [], "tenants": [{"description": null, "enabled": true, "id": "c40e281df0a645fb8e76825b3d133ce4", "parent_id": null, "name": "alt_demo"}, {"description": null, "enabled": true, "id": "d0428b4f33e042d28a688de464c61877", "parent_id": null, "name": "demo"}, {"description": null, "enabled": true, "id": "e1fba1cce31744358506cf414983643a", "parent_id": null, "name": "invisible_to_admin"}, {"description": null, "enabled": true, "id": "f53b55995c1a4f5cace7ed595944ace1", "parent_id": null, "name": "admin"}, {"description": null, "enabled": true, "id": "fd16a8def1d34ad0ba7c793bec61fadc", "parent_id": null, "name": "service"}]}

Changed in keystone:
assignee: nobody → Lin Hua Cheng (lin-hua-cheng)
Revision history for this message
Morgan Fainberg (mdrnstm) wrote :

this looks like we should be filtering the parent_id similar to how we filter domain_id.

Changed in keystone:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

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

Changed in keystone:
status: Triaged → In Progress
Changed in keystone:
milestone: none → kilo-rc1
Changed in keystone:
assignee: Lin Hua Cheng (lin-hua-cheng) → Brant Knudson (blk-u)
Brant Knudson (blk-u)
Changed in keystone:
assignee: Brant Knudson (blk-u) → Lin Hua Cheng (lin-hua-cheng)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/164367
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=74f83a4c8bba5fce45b6c36866d6d2ebe4d3cafa
Submitter: Jenkins
Branch: master

commit 74f83a4c8bba5fce45b6c36866d6d2ebe4d3cafa
Author: lin-hua-cheng <email address hidden>
Date: Fri Mar 13 15:51:33 2015 -0700

    Remove parent_id in v2 tenant response

    Identity v2 api should be not be aware of hierarchical projects,
    so the parent_id should not be included in the tenant response.

    Change-Id: Ic77ab94c9fb790c04e6ee2b464308f07a6e9dba8
    Closes-Bug: #1423022

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: kilo-rc1 → 2015.1.0
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.