keystone returns 'NoneType' object is unsubscriptable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Invalid
|
Undecided
|
Adam Young | ||
python-keystoneclient |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I am trying to install the RDO OpenStack distribution on a RHEL 6.4 system. The install is failing during keystone configuration as follows:
^[[1;35merr: /Stage[
Running this command interactively produces the same error:
# brutus1 /etc/keystone > export OS_SERVICE_
# brutus1 /etc/keystone > export OS_SERVICE_
# brutus1 /etc/keystone > keystone service-list
'NoneType' object is unsubscriptable
The keystone service appears to be running and connected to the mysql database:
# brutus1 /root > ps -ef|grep keystone
keystone 8451 1 0 17:20 ? 00:00:00 /usr/bin/python /usr/bin/
# brutus1 /root > lsof -i|grep keystone
keystone- 8451 keystone 4u IPv4 21614 0t0 TCP *:35357 (LISTEN)
keystone- 8451 keystone 6u IPv4 21616 0t0 TCP *:commplex-main (LISTEN)
keystone- 8451 keystone 8u IPv4 21961 0t0 TCP ebrutus1:
The keystone mysql database appears to have been properly initialized:
mysql> use keystone;
Database changed
mysql> show tables;
+------
| Tables_in_keystone |
+------
| credential |
| domain |
| ec2_credential |
| endpoint |
| group |
| group_domain_
| group_project_
| migrate_version |
| policy |
| project |
| role |
| service |
| token |
| trust |
| trust_role |
| user |
| user_domain_
| user_group_
| user_project_
+------
19 rows in set (0.00 sec)
mysql> select * from service;
Empty set (0.00 sec)
I cranked up the debug level in the keystone log file and here is what I see:
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 INFO [sqlalchemy.
FROM service
2013-09-04 17:37:48 INFO [sqlalchemy.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 DEBUG [keystone.
2013-09-04 17:37:48 INFO [access] 127.0.0.1 - - [05/Sep/
2013-09-04 17:37:48 DEBUG [eventlet.
Next I completely wiped out the RDO installation and reinstalled with the same result.
I reported this to the Openstack mailing list and got back a response from Sean McCully asking me to try curl, which I did successfully as follows:
# brutus1 /root > curl -X POST -H "X-Auth-Token: 49c056f8688540f
{"OS-KSADM:
# brutus1 /root > curl -X GET -H "X-Auth-Token: 49c056f8688540f
{"OS-KSADM:
But access via the keystone client still fails with the same error:
# brutus1 /root > keystone service-list
'NoneType' object is unsubscriptable
Changed in keystone: | |
assignee: | nobody → Adam Young (ayoung) |
You should also report this bug against RDO in RH's Bugzilla. It is likely caused by an out-of-sync version of Keystone Client. You can link to this bug report. We'll keep this bug open for a short while, but it is likely to be closed in the near future as the behavior is not seen upstream.