Ask Your Question
1

admin creation fails "Conflict occurred attempting to store project"

asked 2014-09-17 05:12:47 -0600

anonymous user

Anonymous

updated 2014-09-18 19:09:55 -0600

smaffulli gravatar image

every time i get this role, admin creation error, or role error

2014-09-17 09:52:03.261 | ++ openstack project create admin
2014-09-17 09:52:03.778 | ERROR: openstack Conflict occurred attempting to store project. (IntegrityError) (1062, "Duplicate entry 'default-admin' for key 'domain_id'") 'INSERT INTO project (id, name, domain_id, description, enabled, extra) VALUES (%s, %s, %s, %s, %s, %s)' ('8b4223b5417141d483754175b83ee9ea', 'admin', 'default', None, 1, '{}') (HTTP 409)
2014-09-17 09:52:03.804 | + ADMIN_TENANT=
2014-09-17 09:52:03.806 | ++ get_field 2
2014-09-17 09:52:03.807 | ++ read data
2014-09-17 09:52:03.808 | ++ grep ' id '
2014-09-17 09:52:03.810 | ++ openstack user create admin --project '' --email admin@example.com --password devstack
2014-09-17 09:52:04.352 | ERROR: openstack Conflict occurred attempting to store user. (IntegrityError) (1062, "Duplicate entry 'default-admin' for key 'domain_id'") 'INSERT INTO user (id, name, domain_id, password, enabled, extra, default_project_id) VALUES (%s, %s, %s, %s, %s, %s, %s)' ('5df5a6a7bcc945b98e2873cba3fc515b', 'admin', 'default', '$6$rounds=40000$RRYh4/2iNnHn3BgJ$z/L0COwdhEJbCVM234z2SGTcFlwiCYKkPUNgoVyjGlhRV8yk8sQEbt30kUZuNu6GKghPl4ulgVWP5P6Av0Sh7.', 1, '{"email": "admin@example.com"}', None) (HTTP 409)
2014-09-17 09:52:04.395 | + ADMIN_USER=
2014-09-17 09:52:04.397 | ++ get_field 2
2014-09-17 09:52:04.398 | ++ grep ' id '
2014-09-17 09:52:04.401 | ++ read data
2014-09-17 09:52:04.402 | ++ openstack role create admin
2014-09-17 09:52:04.823 | ERROR: openstack Conflict occurred attempting to store role. (IntegrityError) (1062, "Duplicate entry 'admin' for key 'name'") 'INSERT INTO role (id, name, extra) VALUES (%s, %s, %s)' ('8a75bc4e73344bc4a92a97f9e049dfbe', 'admin', '{}') (HTTP 409)
2014-09-17 09:52:04.857 | + ADMIN_ROLE=
2014-09-17 09:52:04.858 | + openstack role add --project --user
2014-09-17 09:52:05.303 | usage: openstack role add [-h] [-f {shell,table,value}] [-c COLUMN]
2014-09-17 09:52:05.303 |                           [--max-width <integer>] [--prefix PREFIX] --project
2014-09-17 09:52:05.303 |                           <project> --user <user>
2014-09-17 09:52:05.303 |                           <role>
2014-09-17 09:52:05.304 | openstack role add: error: argument --project: expected one argument
2014-09-17 09:52:05.355 | + exit_trap
2014-09-17 09:52:05.355 | + local r=2
2014-09-17 09:52:05.356 | ++ jobs -p
2014-09-17 09:52:05.357 | + jobs=
2014-09-17 09:52:05.360 | + [[ -n '' ]]
2014-09-17 09:52:05.360 | + exit 2
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2014-09-17 07:33:38 -0600

sushma-korati gravatar image

As the trace says "duplicate entry 'default-admin' for key 'domain_id", that means there is already an entry in db with admin project, try clearing the keystone db and re-run devstack.

edit flag offensive delete link more

Comments

Hola, buen dia

como limpio la base de datos de keystone?

as clean database Keystone?

Papadios gravatar imagePapadios ( 2015-03-17 16:19:45 -0600 )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-17 05:12:47 -0600

Seen: 2,428 times

Last updated: Sep 18 '14