Whats the use of TenantID parameter in /tokens call?

Asked by Adrian Moya

Hi guys, I'm working with the keystone API, and according to the docs, for authentication you should do a post to v2.0/tokens with a message that includes a parameter called tenantId. In the example is set to "1234".

In my tests, this parameter can be ommited and the call success with the same result.

When should I include this parameter and when not to? I tryed different combinations with devstack, and my results are equal with or without the param, but I may be missing something. What's the use of this parameter?

BTW nova api seems to receive a tenantid which doesn't do anything neither, but I think must be realated to this param too.

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Identity (keystone) Edit question
Assignee:
No assignee Edit question
Solved by:
Adrian Moya
Solved:
Last query:
Last reply:
Revision history for this message
Adrian Moya (adrianmoya) said :
#1

I've just hit the case of unauthorized with correct username/pass and an existing (but not associated with the user) tenantID. This gives the param something useful to do.

Revision history for this message
Rupak Ganguly (rupakg) said :
#2

The tenant id gives you a service catalog with services activated for the user with the tenant id. Otherwise, if you do not pass in the tenant id, you will get a global service catalog with only public services.