Ask Your Question

How to update a user`s tenant_id

asked 2012-03-20 13:34:34 -0500

koolhead17 gravatar image

Hi, I created a user with providing wrong/non-existing tenant_id and keystone accepted it.

Is it a Bug?

Command i used is :-

keystone user-create --name=admin --tenant_id bfca3bfe0358484cbbec6ebb0764ef62 --pass=secret --enabled true

I need to update my user by providing it with correct tenant id.

I used command :-

keystone user-update --name=admin --tenant_name demo 71d36d2c83f34bfd9a6bdf9b26ab24ac

I got error for passing wrong parameters.

but when i passed parameters for changing e-mail address

keystone user-update --name=admin 71d36d2c83f34bfd9a6bdf9b26ab24ac

User has been updated.

It works.

What am i missing?

Am using keystone 2012.1~rc1~20120 on ubuntu 12.04

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2012-04-05 06:21:35 -0500

koolhead17 gravatar image

Thanks Joe T, that solved my question.

edit flag offensive delete link more

answered 2012-04-04 18:40:13 -0500

joe-topjian-v gravatar image


I have opened a bug report that is somewhat related to this question: Bug #973642.

Regarding managing a user's tenant membership, I would recommend not using the tenant_id argument when creating the user. Instead, create the user and then user user-role-add command to apply a role to a user in a tenant. This will add a user to the tenant's membership.

Thanks, Joe

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2012-03-20 13:34:34 -0500

Seen: 107 times

Last updated: Apr 05 '12