Ask Your Question
0

keystone user-role-add - Usage error

asked 2013-12-12 07:00:06 -0500

mantri.arjun@hotmail.com gravatar image

updated 2014-01-22 15:12:42 -0500

Evgeny gravatar image

Got the following error when executing the keystone script file as present here. https://raw.github.com/mseknibilel/OpenStack-Grizzly-Install-Guide/master/KeystoneScripts/keystone_basic.sh

usage: keystone user-role-add --user <user> --role <role> [--tenant <tenant>] keystone user-role-add: error: argument --user/--user-id/--user_id: expected one argument usage: keystone user-role-add --user <user> --role <role> [--tenant <tenant>]</tenant></role></user></tenant></role></user>

please help needed.

edit retag flag offensive close merge delete

Comments

I think you should change the title of this question to another one more "friendly". Thank you.

Marcos F. Lobo gravatar imageMarcos F. Lobo ( 2013-12-12 09:30:19 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2013-12-12 07:11:19 -0500

dheeru gravatar image

Which installation you are trying ? Is it Havana or Grizzly ? Enclosed script works for grizzly. Did you set the appropriate environment variables for this script to take the values ?

edit flag offensive delete link more

Comments

For Grizzly and i did mention my HostId and correct port number in my code snippet for keystone

mantri.arjun@hotmail.com gravatar imagemantri.arjun@hotmail.com ( 2013-12-12 12:53:08 -0500 )edit

It is not a issue with that. keystone user-role-add has to be run with arguments. This command is failing with above error. It may be due to wrong argument or wrong command option.

dheeru gravatar imagedheeru ( 2013-12-12 23:57:12 -0500 )edit

sorry @dheeru but i am tyro to this and hence don't know what relevant argument i should provide for it. Could you please let me know the solution for the same written above as in what all should be included. And also one more thing i am using the Github script provided in the link above.

mantri.arjun@hotmail.com gravatar imagemantri.arjun@hotmail.com ( 2013-12-13 01:37:36 -0500 )edit

I have sent you modified script. Can you check that and revert quickly ?

dheeru gravatar imagedheeru ( 2013-12-13 04:24:28 -0500 )edit
0

answered 2013-12-13 03:13:10 -0500

nethawk gravatar image

You can use this command like this: keystone user-role-add --user ceilometer --role admin --tenant admin

edit flag offensive delete link more

Comments

so while running the script i should write ./keystone_basic.sh user-role-add --user ceilometer --role admin --tenant admin instead of ./keystone_basic.sh

mantri.arjun@hotmail.com gravatar imagemantri.arjun@hotmail.com ( 2013-12-13 03:23:18 -0500 )edit

Could you show me your script keystone_basic.sh?

nethawk gravatar imagenethawk ( 2013-12-13 03:34:55 -0500 )edit

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

2 followers

Stats

Asked: 2013-12-12 07:00:06 -0500

Seen: 1,922 times

Last updated: Dec 13 '13