Ask Your Question
0

Keystone user-role-add gives error "Could not find user, admin"

asked 2014-11-13 03:54:09 -0500

Rajani gravatar image

updated 2014-11-13 11:12:29 -0500

Hi,

I am following 'http://docs.openstack.org/icehouse/install-guide/install/apt/content/' document to install Openstack icehouse version on Ubuntu 14.04.
Installed Keystone successfully. Created 'admin' User, role and tenant. No error logs observed.
But when I execute the command $keystone user-role-add --user=admin --tenant=admin --role=admin, I see below errors in /var/log/keystone/keystone-all.log.
2014-11-13 20:32:00.942 880 WARNING keystone.common.wsgi [-] Could not find user, admin.
2014-11-13 20:32:00.972 880 WARNING keystone.common.wsgi [-] Could not find role, admin.
2014-11-13 20:32:00.985 880 WARNING keystone.common.wsgi [-] Could not find project, admin.

I verified that the user, role and project are existing with user-list etc. Re-checked by logging to mysql as well.
Then I tried the same command a second time and same error yet again, apart from the conflict error. 
2014-11-13 20:35:00.860 880 WARNING keystone.common.wsgi [-] Could not find user, admin.
2014-11-13 20:35:00.971 880 WARNING keystone.common.wsgi [-] Could not find role, admin.
2014-11-13 20:35:00.984 880 WARNING keystone.common.wsgi [-] Could not find project, admin.
2014-11-13 20:35:01.013 880 WARNING keystone.common.wsgi [-] Conflict occurred attempting to store role grant. User 79f2b8ee76534cc6aaa879214948ca49 already has role a008b00ef4164e608434ad32adf33ae2 in tenant bb96f1bbbe48349f227902c9d492a2

Is this normal? Since it says that the User already has the role in Tenant, Can I consider the command user-role-add to be successful and go ahead with next part of installation?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-11-14 04:06:01 -0500

Check user, tenant, role is present or not using. keystone user-list keystone tenant-list keystone role-list

edit flag offensive delete link more
0

answered 2014-11-13 07:51:47 -0500

rajiv-kumar gravatar image

If you assign role to a user in a tenant using their id then you would not get this error. For assign a user a role, you can use keystone user-role-add --user-id USER_ID --tenant-id TENANT_ID --role-id ROLE_ID

If you continue with the same error then you will be having problem in creating a user from dashboard in a tenant. This bug problem has been their for a long period of time.

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: 2014-11-13 03:51:21 -0500

Seen: 2,344 times

Last updated: Nov 14 '14