mismatch between nova project ID and keystone tenant name

Bug #922465 reported by Andrea Frittoli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Unassigned

Bug Description

What nova client calls "Project ID" is in fact the "Tenant Name" in Keystone.
Nova client obtains a token from keystone using the TenantName.
Nova clients sends the tenant name to the API server via the X-Auth-Project-ID header.
But the project ID in nova in fact corresponds to the tenant ID, so there is a mismatch.
The current naming creates confusion, e.g. see bug #898820.

While I agree that the project ID name shall be kept for backward compatibility, it should be associated to keystone tenantID, to avoid mixing IDs and names.

As both tenant ID and tenant Name can be used to obtain a valid token from keystone, I would propose that nova client accepts several options, as follows:

NOVA_PROJECT_ID => this should be the tenant ID, rather then the tenant name
NOVA_TENANT_ID
NOVA_TENANT_NAME

There shall be also the corresponding command line options, and optional parameters in the client init at python level.
With this change nova client would send the tenant ID in the X-Auth-Project-ID to the API server, which is the project ID, like it is in the no-keystone scenario.

Revision history for this message
Vish Ishaya (vishvananda) wrote :

There is a blueprint for this which I have linked: The wiki explaining the plan is here:
http://wiki.openstack.org/CLIAuth

Changed in nova:
status: New → Confirmed
importance: Undecided → High
Yaguang Tang (heut2008)
Changed in nova:
status: Confirmed → Fix Released
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.