keystone user-role-add - Usage error

asked 2013-12-12 07:00:06 -0500 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.

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


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

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


For Grizzly and i did mention my HostId and correct port number in my code snippet for keystone gravatar ( 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. gravatar ( 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

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


so while running the script i should write ./ user-role-add --user ceilometer --role admin --tenant admin instead of ./ gravatar ( 2013-12-13 03:23:18 -0500 )edit

Could you show me your script

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

Get to know Ask OpenStack

Resources for moderators

Question Tools



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

Seen: 1,986 times

Last updated: Dec 13 '13