configuration keystone in Openstack folsom

Asked by Rimeh

 I am getting following errors when I execute "./keystone-data.sh" in Ubuntu 12.04 :///

this error appear:

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

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Rimeh
Solved:
Last query:
Last reply:
Revision history for this message
Jason (zzs) said :
#1

Please check if the values which are in the keystone-data.sh are identical with your configured.
if it does not work, please post the output of the execution with credential info moved.

Revision history for this message
Rimeh (rimehchatti) said :
#2

hi ; i check the values and they are identical with my configured and it doesn't work too :/
I followed this guide in my installation
 https://github.com/obuisson/Guide-Installation-OpenStack-Folsom-Noeud-Unique/blob/master/source/index.rst

the same error appeared again :

No handlers could be found for logger "keystoneclient.client"
Unable to authorize user
usage: keystone user-role-add --user-id <user-id> --role-id <role-id>
                              [--tenant-id <tenant-id>]
keystone user-role-add: error: argument --user-id/--user_id: expected one argument
usage: keystone user-role-add --user-id <user-id> --role-id <role-id>
                              [--tenant-id <tenant-id>]

Revision history for this message
Jason (zzs) said :
#3

Can you modify the ./keystone-data.sh by adding the ' --debug' after the 'keystone' command and try again.
I still belive there is something wrong regarding the configuraion values, such as SERVICE_TOKEN or something else.

Revision history for this message
Rimeh (rimehchatti) said :
#4

I'm sorry for the inconvenience but I'm debutante.. when i run the command "keystone --debug" i have this :

usage: keystone [--os-username <auth-user-name>]
                [--os-password <auth-password>]
                [--os-tenant-name <auth-tenant-name>]
                [--os-tenant-id <tenant-id>] [--os-auth-url <auth-url>]
                [--os-region-name <region-name>]
                [--os-identity-api-version <identity-api-version>]
                [--token <service-token>] [--endpoint <service-endpoint>]
                [--os-cacert <ca-certificate>] [--os-cert <certificate>]
                [--os-key <key>] [--insecure] [--username <auth-user-name>]
                [--password <auth-password>] [--tenant_name <tenant-name>]
                [--auth_url <auth-url>] [--region_name <region-name>]
                <subcommand> ...
keystone: error: too few arguments

and this is my data script :
https://raw.github.com/EmilienM/openstack-folsom-guide/master/scripts/keystone-data.sh

Revision history for this message
Rimeh (rimehchatti) said :
#5

ah thanks for your help my problem is solved successfully; it is in the configuration .. :)