Ask Your Question
0

conflict occurred attempting to store project

asked 2014-09-16 02:21:22 -0500

Wang Zheng gravatar image

updated 2014-09-16 12:54:54 -0500

mpetason gravatar image

Hi all,

I got some error when configuring keystone, after I executed :

ADMIN_PASSWORD=$OS_PASSWORD SERVICE_PASSWORD=servicepass openstack-keystone-sample-data

The error messages are below:

Conflict occurred attempting to store project. (1062, "Duplicate entry 'default-demo' for key 'domain_id'") (HTTP 409)
Conflict occurred attempting to store user. (1062, "Duplicate entry 'default-admin' for key 'domain_id'") (HTTP 409)
Conflict occurred attempting to store role. (1062, "Duplicate entry 'admin' for key 'name'") (HTTP 409)
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
Conflict occurred attempting to store project. (1062, "Duplicate entry 'default-service' for key 'domain_id'") (HTTP 409)
Conflict occurred attempting to store user. (1062, "Duplicate entry 'default-glance' for key 'domain_id'") (HTTP 409)
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-create --name <user-name> [--tenant <tenant>]
                            [--pass [<pass>]] [--email <email>]
                            [--enabled <true|false>]
keystone user-create: error: argument --tenant/--tenant-id: expected one argument
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-create --name <user-name> [--tenant <tenant>]
                            [--pass [<pass>]] [--email <email>]
                            [--enabled <true|false>]
keystone user-create: error: argument --tenant/--tenant-id: expected one argument
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-create --name <user-name> [--tenant <tenant>]
                            [--pass [<pass>]] [--email <email>]
                            [--enabled <true|false>]
keystone user-create: error: argument --tenant/--tenant-id: expected one argument
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
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
+-------------+---------------------------------------+
|   Property  |                 Value                 |
+-------------+---------------------------------------+
|   adminurl  |  http://localhost:$(admin_port)s/v2.0 |
|      id     |    0be702858f8a4dcfa6ba9b10e93ec15a   |
| internalurl | http://localhost:$(public_port)s/v2.0 |
|  publicurl  | http://localhost:$(public_port)s/v2.0 |
|    region   |               RegionOne               |
|  service_id |    0ce374f2d00b4ecda148e220191a3c95   |
+-------------+---------------------------------------+
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
+-------------+------------------------------------------------------+
|   Property  |                        Value                         |
+-------------+------------------------------------------------------+
|   adminurl  | http://localhost:$(compute_port)s/v1.1/$(tenant_id)s |
|      id     |           8f1acb964c8d476595ac1b890711c3fb           |
| 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 |           e25bcf6cbe404f8e98256d22f6d1db97           |
+-------------+------------------------------------------------------+
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
+-------------+----------------------------------------+
|   Property  |                 Value                  |
+-------------+----------------------------------------+
|   adminurl  | http://localhost:8776/v1/$(tenant_id)s |
|      id     |    1dffb2553fd44f738d18d190eddc1d0c    |
| internalurl | http://localhost:8776/v1/$(tenant_id)s |
|  publicurl  | http://localhost:8776/v1/$(tenant_id)s |
|    region   |               RegionOne                |
|  service_id |    9dce6a4901ef4df9b046245e130bf9dd    |
+-------------+----------------------------------------+
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
+-------------+----------------------------------+
|   Property  |              Value               |
+-------------+----------------------------------+
|   adminurl  |      http://localhost:9292       |
|      id     | d8e682088d2d47eea8ad5341baa96c4c |
| internalurl |      http://localhost:9292       |
|  publicurl  |      http://localhost:9292       |
|    region   |            RegionOne             |
|  service_id | 8d6a0ef419734ea59d1ac39a4cc8198e |
+-------------+----------------------------------+
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
+-------------+--------------------------------------+
|   Property  |                Value                 |
+-------------+--------------------------------------+
|   adminurl  | http://localhost:8773/services/Admin |
|      id     |   981c7de4aa3d43d0b6aeb96fd9584d80   |
| internalurl | http://localhost:8773/services/Cloud |
|  publicurl  | http://localhost:8773/services/Cloud |
|    region   |              RegionOne               |
|  service_id |   0af5d38012164ea1a7c7f721ff6b4790   |
+-------------+--------------------------------------+
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
+-------------+---------------------------------------------+
|   Property  |                    Value                    |
+-------------+---------------------------------------------+
|   adminurl  |           http://localhost:8888/v1          |
|      id     |       70693629f7c84da09a1c78cfd6520c90      |
| internalurl | http://localhost:8888/v1/AUTH_$(tenant_id)s |
|  publicurl  | http://localhost:8888/v1/AUTH_$(tenant_id)s |
|    region   |                  RegionOne                  |
|  service_id ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2014-09-29 02:54:36 -0500

You should connect to mysql and perform the following queries drop the database of keystone and then create again.

drop database keystone; and create database keystone; This will now create a Fresh keystone DB. Now you need to sync db so execute the command keystone-manage db_sync

edit flag offensive delete link more

Comments

@Wang Zheng, Pls consider voting up if you have accepted it as correct answer. Thanks

Syed Awais Ali gravatar imageSyed Awais Ali ( 2014-10-06 14:52:39 -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

1 follower

Stats

Asked: 2014-09-16 02:21:22 -0500

Seen: 4,633 times

Last updated: Sep 29 '14