Ask Your Question
0

How to update a user`s tenant_id

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

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 --email=admin@example.com --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 --email=admin@foobar.com 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
0

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

koolhead17 gravatar image

Thanks Joe T, that solved my question.

edit flag offensive delete link more
0

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

joe-topjian-v gravatar image

Hello,

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 41 times

Last updated: Apr 05 '12