can't install via stack.sh - keystone crashes

Bug #1100555 reported by Michael Beumer
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
devstack
Invalid
Undecided
Unassigned

Bug Description

Hello,

i have a problem. I think there is a bug in the github master from devstack. For about a week, devstack crashes by the installation.
I use Ubuntu 12.10. I also testet it on a complete new VM without a localrc config.

I don't know how to fix it. It seems that there is a problem with the "keystone user-role-add" command.

This is the Log from the stack.sh process.

2013-01-11 14:06:08 + [[ tls-proxy == \n\o\v\a ]]
2013-01-11 14:06:08 + [[ tls-proxy == \c\i\n\d\e\r ]]
2013-01-11 14:06:08 + [[ tls-proxy == \c\e\i\l\o\m\e\t\e\r ]]
2013-01-11 14:06:08 + [[ tls-proxy == \g\l\a\n\c\e ]]
2013-01-11 14:06:08 + [[ tls-proxy == \q\u\a\n\t\u\m ]]
2013-01-11 14:06:08 + return 1
2013-01-11 14:06:08 + SERVICE_ENDPOINT=http://10.60.70.90:35357/v2.0
2013-01-11 14:06:08 + is_service_enabled tls-proxy
2013-01-11 14:06:08 + services=tls-proxy
2013-01-11 14:06:08 + for service in '${services}'
2013-01-11 14:06:08 + [[ ,g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-net,n-cond,cinder,c-sch,c-api,c-vol,n-sch,n-novnc,n-xvnc,n-cauth,horizon,rabbit,tempest,mysql, =~ ,tls-proxy, ]]
2013-01-11 14:06:08 + [[ tls-proxy == \n\o\v\a ]]
2013-01-11 14:06:08 + [[ tls-proxy == \c\i\n\d\e\r ]]
2013-01-11 14:06:08 + [[ tls-proxy == \c\e\i\l\o\m\e\t\e\r ]]
2013-01-11 14:06:08 + [[ tls-proxy == \g\l\a\n\c\e ]]
2013-01-11 14:06:08 + [[ tls-proxy == \q\u\a\n\t\u\m ]]
2013-01-11 14:06:08 + return 1
2013-01-11 14:06:08 + export OS_SERVICE_TOKEN=winfoopen
2013-01-11 14:06:08 + OS_SERVICE_TOKEN=winfoopen
2013-01-11 14:06:08 + export OS_SERVICE_ENDPOINT=http://10.60.70.90:35357/v2.0
2013-01-11 14:06:08 + OS_SERVICE_ENDPOINT=http://10.60.70.90:35357/v2.0
2013-01-11 14:06:08 + create_keystone_accounts
2013-01-11 14:06:08 ++ keystone tenant-create --name admin
2013-01-11 14:06:08 ++ grep ' id '
2013-01-11 14:06:08 ++ get_field 2
2013-01-11 14:06:08 ++ read data
2013-01-11 14:07:11 'NoneType' object has no attribute '__getitem__'
2013-01-11 14:07:11 + ADMIN_TENANT=
2013-01-11 14:07:11 ++ keystone user-create --name admin --pass winfoopen --email <email address hidden>
2013-01-11 14:07:11 ++ grep ' id '
2013-01-11 14:07:11 ++ get_field 2
2013-01-11 14:07:11 ++ read data
2013-01-11 14:08:15 'NoneType' object has no attribute '__getitem__'
2013-01-11 14:08:15 + ADMIN_USER=
2013-01-11 14:08:15 ++ keystone role-create --name admin
2013-01-11 14:08:15 ++ grep ' id '
2013-01-11 14:08:15 ++ get_field 2
2013-01-11 14:08:15 ++ read data
2013-01-11 14:09:18 'NoneType' object has no attribute '__getitem__'
2013-01-11 14:09:18 + ADMIN_ROLE=
2013-01-11 14:09:18 + keystone user-role-add --user_id --role_id --tenant_id
2013-01-11 14:09:18 usage: keystone user-role-add --user-id <user-id> --role-id <role-id>
2013-01-11 14:09:18 [--tenant-id <tenant-id>]
2013-01-11 14:09:18 keystone user-role-add: error: argument --user-id/--user_id: expected one argument
2013-01-11 14:09:18 ++ keystone tenant-create --name service
2013-01-11 14:09:18 ++ grep ' id '
2013-01-11 14:09:18 ++ get_field 2
2013-01-11 14:09:18 ++ read data
2013-01-11 14:10:22 'NoneType' object has no attribute '__getitem__'
2013-01-11 14:10:22 + SERVICE_TENANT=
2013-01-11 14:10:22 ++ keystone role-create --name=Member
2013-01-11 14:10:22 ++ grep ' id '
2013-01-11 14:10:22 ++ get_field 2
2013-01-11 14:10:22 ++ read data
2013-01-11 14:11:25 'NoneType' object has no attribute '__getitem__'
2013-01-11 14:11:25 + MEMBER_ROLE=
2013-01-11 14:11:25 ++ keystone role-create --name=anotherrole
2013-01-11 14:11:25 ++ grep ' id '
2013-01-11 14:11:25 ++ get_field 2
2013-01-11 14:11:25 ++ read data
2013-01-11 14:12:28 'NoneType' object has no attribute '__getitem__'
2013-01-11 14:12:28 + ANOTHER_ROLE=
2013-01-11 14:12:28 ++ keystone tenant-create --name=invisible_to_admin
2013-01-11 14:12:28 ++ grep ' id '
2013-01-11 14:12:28 ++ get_field 2
2013-01-11 14:12:28 ++ read data
2013-01-11 14:13:32 'NoneType' object has no attribute '__getitem__'
2013-01-11 14:13:32 + INVIS_TENANT=
2013-01-11 14:13:32 ++ keystone tenant-create --name=demo
2013-01-11 14:13:32 ++ grep ' id '
2013-01-11 14:13:32 ++ get_field 2
2013-01-11 14:13:32 ++ read data
2013-01-11 14:14:35 'NoneType' object has no attribute '__getitem__'
2013-01-11 14:14:35 + DEMO_TENANT=
2013-01-11 14:14:35 ++ keystone user-create --name demo --pass winfoopen --email <email address hidden>
2013-01-11 14:14:35 ++ grep ' id '
2013-01-11 14:14:35 ++ get_field 2
2013-01-11 14:14:35 ++ read data
2013-01-11 14:15:38 'NoneType' object has no attribute '__getitem__'
2013-01-11 14:15:38 + DEMO_USER=
2013-01-11 14:15:38 + keystone user-role-add --user_id --role_id --tenant_id
2013-01-11 14:15:39 usage: keystone user-role-add --user-id <user-id> --role-id <role-id>
2013-01-11 14:15:39 [--tenant-id <tenant-id>]
2013-01-11 14:15:39 keystone user-role-add: error: argument --user-id/--user_id: expected one argument
2013-01-11 14:15:39 + keystone user-role-add --user_id --role_id --tenant_id
2013-01-11 14:15:39 usage: keystone user-role-add --user-id <user-id> --role-id <role-id>
2013-01-11 14:15:39 [--tenant-id <tenant-id>]
2013-01-11 14:15:39 keystone user-role-add: error: argument --user-id/--user_id: expected one argument
2013-01-11 14:15:39 + keystone user-role-add --user_id --role_id --tenant_id
2013-01-11 14:15:39 usage: keystone user-role-add --user-id <user-id> --role-id <role-id>
2013-01-11 14:15:39 [--tenant-id <tenant-id>]
2013-01-11 14:15:39 keystone user-role-add: error: argument --user-id/--user_id: expected one argument
2013-01-11 14:15:39 + keystone user-role-add --user_id --role_id --tenant_id
2013-01-11 14:15:39 usage: keystone user-role-add --user-id <user-id> --role-id <role-id>
2013-01-11 14:15:39 [--tenant-id <tenant-id>]
2013-01-11 14:15:39 keystone user-role-add: error: argument --user-id/--user_id: expected one argument
2013-01-11 14:15:39 + [[ sql = \s\q\l ]]
2013-01-11 14:15:39 ++ keystone service-create --name keystone --type identity --description 'Keystone Identity Service'
2013-01-11 14:15:39 ++ grep ' id '
2013-01-11 14:15:39 ++ get_field 2
2013-01-11 14:15:39 ++ read data
2013-01-11 14:16:43 'NoneType' object has no attribute '__getitem__'
2013-01-11 14:16:43 + KEYSTONE_SERVICE=
2013-01-11 14:16:43 + keystone endpoint-create --region RegionOne --service_id --publicurl http://10.60.70.90:5000/v2.0 --adminurl http://10.60.70.90:35357/v2.0 --internalurl http://10.60.70.90:5000/v2.0
2013-01-11 14:16:43 usage: keystone endpoint-create [--region <endpoint-region>] --service-id
2013-01-11 14:16:43 <service-id> [--publicurl <public-url>]
2013-01-11 14:16:43 [--adminurl <admin-url>]
2013-01-11 14:16:43 [--internalurl <internal-url>]
2013-01-11 14:16:43 keystone endpoint-create: error: argument --service-id/--service_id: expected one argument
2013-01-11 14:16:43 ++ failed
winfo@ubuntu-openstack:~/devstack$ 2013-01-11 14:16:43 ++ local r=2
2013-01-11 14:16:43 +++ jobs -p
2013-01-11 14:16:43 ++ kill
2013-01-11 14:16:43 ++ set +o xtrace
2013-01-11 14:16:43 stack.sh failed: full log in /opt/stack/logs/stack.sh.log.2013-01-11-140448
winfo@ubuntu-openstack:~/devstack$

Revision history for this message
Michael Beumer (mi-beumer) wrote :
Revision history for this message
Michael Beumer (mi-beumer) wrote :

I still can't find a solution. I think it has to do with keystone or keystone client

Revision history for this message
Michael Beumer (mi-beumer) wrote :
Dean Troyer (dtroyer)
Changed in devstack:
status: New → Invalid
Revision history for this message
Patrick Laurin (plaurin84) wrote :
Download full text (8.1 KiB)

I reproduce this bug if I install Ceilometer.

- Deploy Devstack on a VM (qemu) on Ubuntu 12.04 or 13.04,
- do ./stack and ./unstack without any problems,
- Install Ceilometer using the steps from OpenStack "Installing and Running the Development Version" (Ceilometer)

- do ./stack and ./unstack once without any problems, but cannot do ./stack any more, I get a similar traceback as above.

2013-09-25 10:15:05 + create_keystone_accounts
2013-09-25 10:15:05 ++ keystone tenant-create --name admin
2013-09-25 10:15:05 ++ get_field 2
2013-09-25 10:15:05 ++ grep ' id '
2013-09-25 10:15:05 ++ read data
2013-09-25 10:15:05 An unexpected error prevented the server from fulfilling your request. (ProgrammingError) (1146, "Table 'keystone.project' doesn't exist") 'INSERT INTO project (id, name, domain_id, description, enabled, extra) VALUES (%s, %s, %s, %s, %s, %s)' ('d4c6c4cc7568450c99a00a6ade91d2e5', 'admin', 'default', None, 1, '{}') (HTTP 500)
2013-09-25 10:15:05 + ADMIN_TENANT=
2013-09-25 10:15:05 ++ keystone user-create --name admin --pass AAAaaa111 --email <email address hidden>
2013-09-25 10:15:05 ++ grep ' id '
2013-09-25 10:15:05 ++ get_field 2
2013-09-25 10:15:05 ++ read data
2013-09-25 10:15:06 An unexpected error prevented the server from fulfilling your request. (ProgrammingError) (1146, "Table 'keystone.domain' doesn't exist") 'SELECT domain.id AS domain_id, domain.name AS domain_name, domain.enabled AS domain_enabled, domain.extra AS domain_extra \nFROM domain \nWHERE domain.id = %s' ('default',) (HTTP 500)
2013-09-25 10:15:06 + ADMIN_USER=
2013-09-25 10:15:06 ++ keystone role-create --name admin
2013-09-25 10:15:06 ++ get_field 2
2013-09-25 10:15:06 ++ grep ' id '
2013-09-25 10:15:06 ++ read data
2013-09-25 10:15:06 An unexpected error prevented the server from fulfilling your request. (ProgrammingError) (1146, "Table 'keystone.role' doesn't exist") 'INSERT INTO role (id, name, extra) VALUES (%s, %s, %s)' ('ed1535f651d84b399309a8c32560ba74', 'admin', '{}') (HTTP 500)
2013-09-25 10:15:06 + ADMIN_ROLE=
2013-09-25 10:15:06 + keystone user-role-add --user-id --role-id --tenant-id
2013-09-25 10:15:06 usage: keystone user-role-add --user <user> --role <role> [--tenant <tenant>]
2013-09-25 10:15:06 keystone user-role-add: error: argument --user/--user-id/--user_id: expected one argument
2013-09-25 10:15:06 ++ keystone tenant-create --name service
2013-09-25 10:15:06 ++ get_field 2
2013-09-25 10:15:06 ++ grep ' id '
2013-09-25 10:15:06 ++ read data
2013-09-25 10:15:07 An unexpected error prevented the server from fulfilling your request. (ProgrammingError) (1146, "Table 'keystone.project' doesn't exist") 'INSERT INTO project (id, name, domain_id, description, enabled, extra) VALUES (%s, %s, %s, %s, %s, %s)' ('30864a01eee143e8a757efad797f18a2', 'service', 'default', None, 1, '{}') (HTTP 500)
2013-09-25 10:15:07 + SERVICE_TENANT=
2013-09-25 10:15:07 ++ keystone role-create --name=Member
2013-09-25 10:15:07 ++ grep ' id '
2013-09-25 10:15:07 ++ get_field 2
2013-09-25 10:15:07 ++ read data
2013-09-25 10:15:07 An unexpected error prevented the server from fulfilling your request. (ProgrammingError) (1146, "Table 'keystone.role' doesn't exist") 'INSERT INTO...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.