Deleting the 'admin' project in dashboard leads to TypeError: argument of type 'NoneType' is not iterable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Invalid
|
High
|
Unassigned |
Bug Description
After deleting the admin project (created by openstack-
Success: Deleted Project: admin
Error: Unable to retrieve project list.
keystone tenant-create --name admin
leads to following in keystone.log.
2012-05-16 20:45:50 DEBUG [keystone.
2012-05-16 20:45:50 DEBUG [keystone.
2012-05-16 20:45:50 DEBUG [keystone.
2012-05-16 20:45:50 DEBUG [keystone.
2012-05-16 20:45:50 DEBUG [keystone.
2012-05-16 20:45:50 DEBUG [keystone.
2012-05-16 20:45:50 DEBUG [keystone.
2012-05-16 20:45:50 DEBUG [keystone.
2012-05-16 20:45:50 DEBUG [keystone.
2012-05-16 20:45:50 DEBUG [keystone.
2012-05-16 20:45:50 DEBUG [keystone.
2012-05-16 20:45:50 DEBUG [keystone.
2012-05-16 20:45:50 DEBUG [keystone.
2012-05-16 20:45:50 DEBUG [routes.middleware] Matched POST /tokens
2012-05-16 20:45:50 DEBUG [routes.middleware] Route path: '{path_info:.*}', defaults: {'controller': <keystone.
2012-05-16 20:45:50 DEBUG [routes.middleware] Match dict: {'controller': <keystone.
2012-05-16 20:45:50 DEBUG [routes.middleware] Matched POST /tokens
2012-05-16 20:45:50 DEBUG [routes.middleware] Route path: '/tokens', defaults: {'action': u'authenticate', 'controller': <keystone.
2012-05-16 20:45:50 DEBUG [routes.middleware] Match dict: {'action': u'authenticate', 'controller': <keystone.
2012-05-16 20:45:50 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [root] TOKEN_REF {'id': '8e7f42dc0a6541
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [eventlet.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [routes.middleware] Matched POST /tenants
2012-05-16 20:45:51 DEBUG [routes.middleware] Route path: '{path_info:.*}', defaults: {'controller': <keystone.
2012-05-16 20:45:51 DEBUG [routes.middleware] Match dict: {'controller': <keystone.
2012-05-16 20:45:51 DEBUG [routes.middleware] Matched POST /tenants
2012-05-16 20:45:51 DEBUG [routes.middleware] Route path: '/tenants', defaults: {'action': u'get_tenants_
2012-05-16 20:45:51 DEBUG [routes.middleware] Match dict: {'action': u'get_tenants_
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 ERROR [root] argument of type 'NoneType' is not iterable
Traceback (most recent call last):
File "/usr/lib/
result = method(context, **params)
File "/usr/lib/
return self._format_
File "/usr/lib/
if 'enabled' not in x:
TypeError: argument of type 'NoneType' is not iterable
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [keystone.
2012-05-16 20:45:51 DEBUG [eventlet.
Changed in keystone: | |
status: | New → Triaged |
importance: | Undecided → Medium |
importance: | Medium → High |
Changed in keystone: | |
assignee: | nobody → Robert Collins (lifeless) |
assignee: | Robert Collins (lifeless) → nobody |
Changed in keystone: | |
milestone: | none → folsom-3 |
status: | Fix Committed → Fix Released |
get_tenants_ for_token is passing None as one of the refs:
tenant_ refs.append( self.identity_ api.get_ tenant(
context= context,
tenant_ id=tenant_ id))
for tenant_id in tenant_ids:
seems to be the proximate cause.
That said, your log trace shows the output from "keystone tenant-create --name demo3", not from" --name admin" AFAICT. Could you clarify please?