Normalize 'project_id', 'tenant_id', & 'owner' -> project_id

Bug #1545069 reported by Steve McLellan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Searchlight
Fix Released
High
Steve McLellan

Bug Description

See mailing list discussion http://lists.openstack.org/pipermail/openstack-dev/2016-February/086396.html

We should be moving towards 'project' rather than tenant. Where resources use 'tenant' I think we should apply transforms to also set 'project' fields and configuration should use 'project' where possible (potentially as well as 'tenant').

Gage Hugo (gagehugo)
Changed in searchlight:
assignee: nobody → Gage Hugo (gh159m)
Gage Hugo (gagehugo)
Changed in searchlight:
assignee: Gage Hugo (gh159m) → nobody
Neha (neha-m-pande)
Changed in searchlight:
assignee: nobody → Neha (neha-m-pande)
Changed in searchlight:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to searchlight (master)

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

Changed in searchlight:
status: New → In Progress
Revision history for this message
Steve McLellan (sjmc7) wrote : Re: Use 'project' instead of 'tenant'

This bug report wasn't very clear; apologies. The direction we should move in is to map project_id (as well as tenant_id) so that as tenant is phased out over the next few releases we can consistently provide information about who owns each resource. Internally we'll switch to project id as and when it becomes necessary (for instance, when the authorization middleware switches over).

Revision history for this message
Travis Tripp (travis-tripp) wrote :

Yes, we also need this for cross resource searching on project id.

Changed in searchlight:
importance: Low → High
summary: - Use 'project' instead of 'tenant'
+ Normalize 'project_id', 'tenant_id', & 'owner' -> project_id
Revision history for this message
Steve McLellan (sjmc7) wrote :

I'm going to assign this to myself since it's not been worked on for 2 months.

Changed in searchlight:
assignee: Neha (neha-m-pande) → Steve McLellan (sjmc7)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to searchlight (master)

Reviewed: https://review.openstack.org/288853
Committed: https://git.openstack.org/cgit/openstack/searchlight/commit/?id=04ec2a1292b3ba8838f98e6e5b84953df2745166
Submitter: Jenkins
Branch: master

commit 04ec2a1292b3ba8838f98e6e5b84953df2745166
Author: neha08 <email address hidden>
Date: Sat Mar 5 12:07:29 2016 +0530

    Add project_id to all serialized documents

    Openstack projects are standardizing around project_id rather than
    tenant_id, and a single consistent field makes querying easier. Add
    project_id to all mappings and serialization functions.

    This patch doesn't change existing RBAC queries from owner or tenant_id
    to project_id; it'll be more appropriate to do so when tenant id begins
    to be dropped entirely.

    Co-Authored-By: Steve McLellan <email address hidden>
    Closes-Bug: #1545069
    Change-Id: Id507736462b7a7b3edc49269680bea165efb2e5d

Changed in searchlight:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/searchlight 1.0.0.0b2

This issue was fixed in the openstack/searchlight 1.0.0.0b2 development milestone.

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.