<div dir="ltr"><div><div><div>This is what I will submit in the bug report, <br></div><br></div>Would you like to add some clarification ?<br><br></div>Thanks<br><div><div><div><div><br>-----------------------<br>Hi All,<br>
<br><br><br>I have been installing keystone <br><br><br>python-keystone-2012.1.3-3.fc17.noarch<br>python-keystoneclient-2012.1-1.fc17.noarch<br>openstack-keystone-2012.1.3-3.fc17.noarch<br>python-keystone-auth-token-2012.1.3-3.fc17.noarch<br>
<br><br>and I found the following problem in the documentation:<br><br><br><ul><li>keystone user-role-add </li></ul><div style="margin-left:40px">----------------------------------<br>keystone user-role-add --user-id 46b2667a7807483d983e0b4037a1623b --tenant-id eb7e0c10a99446cfa14c244374549e9d --role-id e3d9d157cc95410ea45d23bbbc2e5c10<br>
<br>but the help is<br><br></div><div style="margin-left:40px"><div style="margin-left:40px"><i>[root@localhost ~]# keystone user-role-add help</i><br><i>usage: keystone user-role-add --user <user-id> --role <role-id></i><br>
<i>                              [--tenant_id <tenant-id>]</i><br><i>keystone user-role-add: error: argument --user is required</i><br></div></div><div style="margin-left:40px"><br>so<br>- the paramenter --user-id in the documentation should be --user and<br>
- the paramenter --role-id in the documentation should be --role<br><br><br></div><br><ul><li>keystone user-create</li></ul><div style="margin-left:40px">-------------------------------<br><br><br>look at tenant-id parameter:<br>
<br></div><div style="margin-left:40px"><div style="margin-left:40px">>>>Grant the admin role to the glance user in the service tenant.<br><br>>>>$ keystone user-role-add --user-id 46b2667a7807483d983e0b4037a1623b<br>
>>><b>--tenant-id </b>eb7e0c10a99446cfa14c244374549e9d --role-id<br>>>>e3d9d157cc95410ea45d23bbbc2e5c10<br></div><br><br>but in the in fact<br><br>*[root@localhost ~]#  keystone user-create help<br>usage: keystone user-create --name <user-name> <b>[--tenant_id </b><tenant-id>]<br>
                            [--pass <pass>] [--email <email>]<br>                            [--enabled <true|false>]<br>keystone user-create: error: argument --name is required*<br><br></div><div style="margin-left:40px">
<i>--tenant_id instead of --tenant-id</i><br></div><div style="margin-left:40px"><br>Summer Long notes on openstack mailing list:<br></div><div style="margin-left:40px"><div style="margin-left:40px"><i>>>And I realized that in some places I have tu use --tenant instead of tenant-id or tenant_id<br>
<br>>>Hi Eduard,<br>>>And even more interesting is that both tenant_id and tenant-id work when creating a user. I just tried both, and they work fine. I guess the dev folk >>wanted to cover all bases, but didn't add them into the help.<br>
<br>>>Interestingly, the --pass option is listed as optional, not a requirement, and that one is decidedly not! Don't suppose you'd like to add that one in >>when you raise the software-help bug?<br><br>
>>thanks again for the checks,</i><br></div></div><div style="margin-left:40px"><div style="margin-left:40px">>>Summer<br></div></div><div style="margin-left:40px"><br><br><br><br></div><ul><li>keystone endpoint-create</li>
</ul></div><div><div style="margin-left:40px">--------------------------------------<br>keystone endpoint-create  --region RegionOne  --service-id=cbdac96b404f4ea2ad370e4499a79fba  --publicurl=<a href="http://127.0.0.1:5000/v2.0">http://127.0.0.1:5000/v2.0</a>  --internalurl=<a href="http://127.0.0.1:5000/v2.0">http://127.0.0.1:5000/v2.0</a>  --adminurl=<a href="http://127.0.0.1:35357/v2.0">http://127.0.0.1:35357/v2.0</a><br>
<br>In this case the --service-id is not working for me dispite the help message says --service_id. I had to use --service<br><br><br>My wrong command:<br>-----------------<br><br>[root@localhost ~]# keystone endpoint-create \<br>
>  --region RegionOne \<br>>  <b>--service-id</b>=cbdac96b404f4ea2ad370e4499a79fba \<br>>  --publicurl=<a href="http://127.0.0.1:5000/v2.0">http://127.0.0.1:5000/v2.0</a> \<br>>  --internalurl=<a href="http://127.0.0.1:5000/v2.0">http://127.0.0.1:5000/v2.0</a> \<br>
>  --adminurl=<a href="http://127.0.0.1:35357/v2.0">http://127.0.0.1:35357/v2.0</a><br><div style="margin-left:40px">usage: keystone [--os_username <auth-user-name>]<br>                [--os_password <auth-password>]<br>
                [--os_tenant_name <auth-tenant-name>]<br>                [--os_tenant_id <tenant-id>] [--os_auth_url <auth-url>]<br>                [--os_region_name <region-name>]<br>                [--os_identity_api_version <identity-api-version>]<br>
                [--token <service-token>] [--endpoint <service-endpoint>]<br>                [--username <auth-user-name>] [--password <auth-password>]<br>                [--tenant_name <tenant-name>] [--auth_url <auth-url>]<br>
                [--region_name <region-name>]<br>                <subcommand> ...<br>keystone: error: unrecognized arguments: --service-id=cbdac96b404f4ea2ad370e4499a79fba<br></div><br>my right command:<br>----------------------------<br>
[root@localhost ~]# keystone endpoint-create  --region RegionOne  <b>--service</b>=cbdac96b404f4ea2ad370e4499a79fba  --publicurl=<a href="http://127.0.0.1:5000/v2.0">http://127.0.0.1:5000/v2.0</a>  --internalurl=<a href="http://127.0.0.1:5000/v2.0">http://127.0.0.1:5000/v2.0</a>  --adminurl=<a href="http://127.0.0.1:35357/v2.0">http://127.0.0.1:35357/v2.0</a><br>
</div><div style="margin-left:40px"><div style="margin-left:40px"><i>+-------------+----------------------------------+<br>|   Property  |              Value               |<br>+-------------+----------------------------------+<br>
| adminurl    | <a href="http://127.0.0.1:35357/v2.0">http://127.0.0.1:35357/v2.0</a>      |<br>| id          | 534b395402bf4ff5bf180fa0a7805baf |<br>| internalurl | <a href="http://127.0.0.1:5000/v2.0">http://127.0.0.1:5000/v2.0</a>       |<br>
| publicurl   | <a href="http://127.0.0.1:5000/v2.0">http://127.0.0.1:5000/v2.0</a>       |<br>| region      | RegionOne                        |<br>| service_id  | cbdac96b404f4ea2ad370e4499a79fba |<br>+-------------+----------------------------------+<br>
</i></div><br>keystone help endpoint-create output</div></div><div><div style="margin-left:40px">-----------------------------------------------------<br>[root@localhost ~]#  keystone help endpoint-create<br>usage: keystone endpoint-create [--region <endpoint-region>]<br>
                                [<b>--service_id</b> <service-id>]<br>                                [--publicurl <public-url>]<br>                                [--adminurl <admin-url>]<br>                                [--internalurl <internal-url>]<br>
<br>Create a new endpoint associated with a service<br><br>Optional arguments:<br>  --region <endpoint-region><br>                        Endpoint region<br>  --service_id <service-id><br>                        ID of service associated with Endpoint<br>
  --publicurl <public-url><br>                        Public URL endpoint<br>  --adminurl <admin-url><br>                        Admin URL endpoint<br>  --internalurl <internal-url><br>                        Internal URL endpoint<br>
<br></div><br><ul><li><b>keystone token-get</b></li></ul><div style="margin-left:40px">------------------<br><br>In this case --os-auth-get should be --os_auth_get<br><br>my wrong command:<br>-----------------<br><br><br>
<br>[root@localhost ~]# keystone <b>--os-auth-url</b>=<a href="http://127.0.0.1:35357/v2.0">http://127.0.0.1:35357/v2.0</a> token-get<br>usage: keystone [--os_username <auth-user-name>]<br>                [--os_password <auth-password>]<br>
                [--os_tenant_name <auth-tenant-name>]<br>                [--os_tenant_id <tenant-id>] [--os_auth_url <auth-url>]<br>                [--os_region_name <region-name>]<br>                [--os_identity_api_version <identity-api-version>]<br>
                [--token <service-token>] [--endpoint <service-endpoint>]<br>                [--username <auth-user-name>] [--password <auth-password>]<br>                [--tenant_name <tenant-name>] [--auth_url <auth-url>]<br>
                [--region_name <region-name>]<br>                <subcommand> ...<br>keystone: error: unrecognized arguments: --os-auth-url=<a href="http://127.0.0.1:35357/v2.0">http://127.0.0.1:35357/v2.0</a><br>
<br>my right command:<br>-----------------<br><br>keystone --os_username=admin --os_password=xxxxxxxxxx <b>--os_auth_url</b>=<a href="http://127.0.0.1:35357/v2.0">http://127.0.0.1:35357/v2.0</a> token-get<br></div><br></div>
<div>All this thing can make fail (not tested )  some provided scripts like  <a class="" href="https://github.com/openstack/keystone/blob/master/tools/sample_data.sh" target="_top">https://github.com/openstack/keystone/blob/master/tools/sample_data.sh</a><br>
</div><div><br>
        </div><div><br></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 15 July 2013 13:16, Eduard barrera <span dir="ltr"><<a href="mailto:eduard.barrera@gmail.com" target="_blank">eduard.barrera@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi All,<br><br>I was following this instructions for installing openstack<br><br><a href="http://docs.openstack.org/trunk/openstack-compute/install/yum/content/setting-up-tenants-users-and-roles-manually.html" target="_blank">http://docs.openstack.org/trunk/openstack-compute/install/yum/content/setting-up-tenants-users-and-roles-manually.html</a><br>

<br></div>and I found something strange. Where it says:<br><br><pre style="margin-left:40px">keystone user-role-add --user-id 46b2667a7807483d983e0b4037a1623b --tenant-id eb7e0c10a99446cfa14c244374549e9d --role-id e3d9d157cc95410ea45d23bbbc2e5c10
</pre>but the help is <br><br><div style="margin-left:40px"><i>[root@localhost ~]# keystone user-role-add help</i><br><i>usage: keystone user-role-add --user <user-id> --role <role-id></i><br><i>                              [--tenant_id <tenant-id>]</i><br>

<i>keystone user-role-add: error: argument --user is required</i><br></div><br></div>so<br></div><div>- the paramenter --user-id in the documentation should be --user and<br>- the paramenter --role-id in the documentation should be --role<br>

<br></div>software installed is:<br><div><div><br></div><div>python-keystone-2012.1.3-3.fc17.noarch<br>python-keystoneclient-2012.1-1.fc17.noarch<br>openstack-keystone-2012.1.3-3.fc17.noarch<br>python-keystone-auth-token-2012.1.3-3.fc17.noarch<br>

<br><br></div><div>Hope this is useful and let me know if I can do something else or further information is required!<br><br></div><div>Cheers,<br></div><div>Eduard<br></div></div></div>
</blockquote></div><br></div>