← Back to team overview

openstack team mailing list archive

Re: Error while executing sample_data.sh script

 

I agree with Atul, if you go through documentation you will find where to
change the passwords required by keystone commands.

Cheers :)
On Mar 1, 2013 12:22 PM, "Atul Jha" <Atul.Jha@xxxxxxxxxxx> wrote:

>  Ashutosh,
>
> my suggestion would be go through the documentation try to understandwhat each keystone command is doing. Just running a script and mailing to
> list for everything is not a good idea.
>
> Spend sometime with document, understand key concepts. just a suggestion.
>
>  ------------------------------
> *From:* openstack-bounces+atul.jha=csscorp.com@xxxxxxxxxxxxxxxxxxx[openstack-bounces+atul.jha=
> csscorp.com@xxxxxxxxxxxxxxxxxxx] on behalf of Ashutosh Narayan [
> aashutoshnarayan@xxxxxxxxx]
> *Sent:* Friday, March 01, 2013 12:14 PM
> *To:* OpenStack
> *Subject:* [Openstack] Error while executing sample_data.sh script
>
>   Hi folks,
>
>  When I run the sample_data.sh script mentioned at the link<http://docs.openstack.org/folsom/openstack-compute/install/yum/content/scripted-keystone-setup.html> I
> get the following errors :
>
>  Conflict occurred attempting to store user. (IntegrityError) (1062,
> "Duplicate entry 'admin' for key 'name'") (HTTP 409)
> Conflict occurred attempting to store role. (IntegrityError) (1062,
> "Duplicate entry 'admin' for key 'name'") (HTTP 409)
> 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
> Conflict occurred attempting to store tenant. (IntegrityError) (1062,
> "Duplicate entry 'service' for key 'name'") (HTTP 409)
> Conflict occurred attempting to store user. (IntegrityError) (1062,
> "Duplicate entry 'glance' for key 'name'") (HTTP 409)
> 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-create --name <user-name> [--tenant-id <tenant-id>]
>                             [--pass <pass>] [--email <email>]
>                             [--enabled <true|false>]
> 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>]
> keystone user-role-add: error: argument --user-id/--user_id: expected one
> argument
> usage: keystone user-create --name <user-name> [--tenant-id <tenant-id>]
>                             [--pass <pass>] [--email <email>]
>                             [--enabled <true|false>]
> 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>]
> keystone user-role-add: error: argument --user-id/--user_id: expected one
> argument
> usage: keystone user-create --name <user-name> [--tenant-id <tenant-id>]
>                             [--pass <pass>] [--email <email>]
>                             [--enabled <true|false>]
> 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>]
> keystone user-role-add: error: argument --user-id/--user_id: expected one
> argument
> +-------------+---------------------------------------+
> |   Property  |                 Value                 |
> +-------------+---------------------------------------+
> |   adminurl  |  http://localhost:$(admin_port)s/v2.0 |
> |      id     |    626ff3533c7e452e8850a94e4d30309f   |
> | internalurl | http://localhost:$(public_port)s/v2.0 |
> |  publicurl  | http://localhost:$(public_port)s/v2.0 |
> |    region   |               RegionOne               |
> |  service_id |    1fe65f54d1714d369f7b8975de89d41d   |
> +-------------+---------------------------------------+
> +-------------+------------------------------------------------------+
> |   Property  |                        Value                         |
> +-------------+------------------------------------------------------+
> |   adminurl  | http://localhost:$(compute_port)s/v1.1/$(tenant_id)s |
> |      id     |           64206e8f1b6148a0b63870c5fd333887           |
> | internalurl | http://localhost:$(compute_port)s/v1.1/$(tenant_id)s |
> |  publicurl  | http://localhost:$(compute_port)s/v1.1/$(tenant_id)s |
> |    region   |                      RegionOne                       |
> |  service_id |           1c4096b5d6874d9cb9a51757ea86bbb0           |
> +-------------+------------------------------------------------------+
> +-------------+----------------------------------------+
> |   Property  |                 Value                  |
> +-------------+----------------------------------------+
> |   adminurl  | http://localhost:8776/v1/$(tenant_id)s |
> |      id     |    8d2f5fb8fad341a19a88f1f092906425    |
> | internalurl | http://localhost:8776/v1/$(tenant_id)s |
> |  publicurl  | http://localhost:8776/v1/$(tenant_id)s |
> |    region   |               RegionOne                |
> |  service_id |    c50cce67fb7f44f888558112381240bf    |
> +-------------+----------------------------------------+
> +-------------+----------------------------------+
> |   Property  |              Value               |
> +-------------+----------------------------------+
> |   adminurl  |      http://localhost:9292       |
> |      id     | 00e787b8451d4fab8ba60aac52595973 |
> | internalurl |      http://localhost:9292       |
> |  publicurl  |      http://localhost:9292       |
> |    region   |            RegionOne             |
> |  service_id | 6c7dc42db1e04179ac94224ae4bd3b8f |
> +-------------+----------------------------------+
> +-------------+--------------------------------------+
> |   Property  |                Value                 |
> +-------------+--------------------------------------+
> |   adminurl  | http://localhost:8773/services/Admin |
> |      id     |   03122808c74a464d88843590321b68b0   |
> | internalurl | http://localhost:8773/services/Cloud |
> |  publicurl  | http://localhost:8773/services/Cloud |
> |    region   |              RegionOne               |
> |  service_id |   16999e4dea034186ba8dbb5c1b468098   |
> +-------------+--------------------------------------+
> +-------------+---------------------------------------------+
> |   Property  |                    Value                    |
> +-------------+---------------------------------------------+
> |   adminurl  |           http://localhost:8888/v1          |
> |      id     |       ed608665392c4f018d5c04b5a2e9eb61      |
> | internalurl | http://localhost:8888/v1/AUTH_$(tenant_id)s |
> |  publicurl  | http://localhost:8888/v1/AUTH_$(tenant_id)s |
> |    region   |                  RegionOne                  |
> |  service_id |       11d44fabe1d14c3d861a86456220d1ef      |
> +-------------+---------------------------------------------+
> 'Client' object has no attribute 'auth_tenant_id'
>
>  Where am I going wrong ? I have changed the admin password to what I
> set when following the previous documents.
> Do I need to modify anything apart from this in the script ?
>
>  Thank you,
> --
> Ashutosh Narayan
>
> http://ashutoshn.wordpress.com/
>
>   http://www.csscorp.com/common/email-disclaimer.php
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References