How to cleanly remove a user

asked 2012-03-22 18:07:37 -0600

joe-topjian-v gravatar image

Hello,

How can a user cleanly be removed from Keystone? Maybe I am missing a step - and I apologize if so - but I'm running into the following issue:

keystone tenant-create --name=ProjectX keystone user-create --name=Foo --pass=password keystone user-role-add --user=$USER_ID --tenant_id=$TENANT_ID --role=$ADMIN_ROLE_ID

In the SQL database, I can now see entries under the user, tenant, user_tenant_membership, and metadata tables.

Now, if I do

keystone user-delete $USER_ID

The entry is removed from the user table, but no other tables.

If I do

keystone user-role-remove --user=$USER_ID --tenant_id=$TENANT_ID --role=$ADMIN_ROLE_ID

The entry is removed from user_tenant_membership, but not the metadata table.

keystone user-delete $USER_ID

removes the user from the user table, but still not metadata.

If I add the user to more than one role, the user will stay in the user_tenant_membership table until all roles have been removed, but there is still an entry in metadata.

Is this a bug or am I missing a step for cleanly removing a user?

Thanks, Joe

edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted
0

answered 2012-03-23 18:38:30 -0600

heckj gravatar image

Joe - this is likely a bug, I'm creating a bug report from this question.

edit flag offensive delete link more
0

answered 2012-03-23 21:40:07 -0600

joe-topjian-v gravatar image

Perfect - thanks!

edit flag offensive delete link more
0

answered 2012-03-23 21:40:13 -0600

joe-topjian-v gravatar image

Thanks Joseph Heck, that solved my question.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-03-22 18:07:37 -0600

Seen: 105 times

Last updated: Mar 23 '12