Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

admin creation

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

admin creation

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

2

admin creationcreation fails "Conflict occurred attempting to store project"

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