Tenant in v2 token response has parent_project_id

Bug #1421668 reported by Brant Knudson
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 token using the v2 API, the tenant now has "parent_project_id". The parent_project_id shouldn't be there in a v2 token, and probably not in a v3 token either. This is an unnecessary field and it makes the tokens larger than they need to be.

RESP BODY: {"access": {"token": {"issued_at": "2015-02-13T02:13:59.720007", "expires": "2015-02-13T03:13:59Z", "id": "1d5e975fdec24bf99619eeffb97092df", "tenant": {"parent_id": null, "enabled": true, "description": null, "name": "demo", "id": "3824a1c2bdfb4d16a1ece8bd7f0d5950"}, "audit_ids": ["4vf4yakSQJefgVu4Wq6Now"]}, "serviceCatalog": "<removed>", "user": {"username": "admin", "roles_links": [], "id": "a5e16a48e3dd4c8583abf6778ceb7c22", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["f1ff6d91af5d4ebaba7b0f80ab95692c"]}}}

Changed in keystone:
assignee: nobody → Lin Hua Cheng (lin-hua-cheng)
status: New → Confirmed
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/156867

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

Reviewed: https://review.openstack.org/156867
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=253c13f9f0942114a16ee17d65febace940aaf86
Submitter: Jenkins
Branch: master

commit 253c13f9f0942114a16ee17d65febace940aaf86
Author: lin-hua-cheng <email address hidden>
Date: Tue Feb 17 18:41:09 2015 -0800

    Remove parent_id in v2 token response

    Identity v2 api should be not be aware of hierarchical projects,
    so the parent_id should not be included in the token response.
    This is unnecessary data being sent making the token larger.

    Change-Id: I9cc5a00d4bd9f4c5232393c8dfb19a44fd121721
    Closes-Bug: #1421668

Changed in keystone:
status: In Progress → Fix Committed
Changed in keystone:
importance: Undecided → Medium
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.