THis stack trace was generated when trying to run the following command (which requires a ID not a name)
'keystone tenant-delete admin'
Stack trace has changed slightly:
2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] ******************** REQUEST ENVIRON ******************** 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] SCRIPT_NAME = /v2.0 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] webob.adhoc_attrs = {'response': <Response at 0x40af590 200 OK>} 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] REQUEST_METHOD = DELETE 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] PATH_INFO = /tenants/foo 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] SERVER_PROTOCOL = HTTP/1.0 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] HTTP_X_AUTH_TOKEN = ADMIN 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] HTTP_USER_AGENT = python-keystoneclient 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] eventlet.posthooks = [] 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] SERVER_NAME = 192.168.240.19 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] REMOTE_ADDR = 192.168.240.19 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] eventlet.input = <eventlet.wsgi.Input object at 0x3e37950> 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] wsgi.url_scheme = http 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] SERVER_PORT = 35357 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] wsgi.input = <eventlet.wsgi.Input object at 0x3e37950> 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] HTTP_HOST = 192.168.240.19:35357 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] wsgi.multithread = True 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] wsgi.version = (1, 0) 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] openstack.context = {'token_id': 'ADMIN', 'is_admin': True} 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] GATEWAY_INTERFACE = CGI/1.1 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] wsgi.run_once = False 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] wsgi.errors = <open file '<stderr>', mode 'w' at 0x7fef12133270> 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] wsgi.multiprocess = False 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] CONTENT_TYPE = text/plain 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] HTTP_ACCEPT_ENCODING = gzip, deflate 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] ******************** REQUEST BODY ******************** 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] 2012-03-20 16:16:25 DEBUG [routes.middleware] Matched DELETE /tenants/foo 2012-03-20 16:16:25 DEBUG [routes.middleware] Route path: '{path_info:.*}', defaults: {'controller': <keystone.contrib.admin_crud.core.CrudExtension object at 0x3ca90d0>} 2012-03-20 16:16:25 DEBUG [routes.middleware] Match dict: {'controller': <keystone.contrib.admin_crud.core.CrudExtension object at 0x3ca90d0>, 'path_info': '/tenants/foo'} 2012-03-20 16:16:25 DEBUG [routes.middleware] Matched DELETE /tenants/foo 2012-03-20 16:16:25 DEBUG [routes.middleware] Route path: '/tenants/{tenant_id}', defaults: {'action': u'delete_tenant', 'controller': <keystone.identity.core.TenantController object at 0x3ca2850>} 2012-03-20 16:16:25 DEBUG [routes.middleware] Match dict: {'action': u'delete_tenant', 'tenant_id': u'foo', 'controller': <keystone.identity.core.TenantController object at 0x3ca2850>} 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] arg_dict: {'tenant_id': u'foo'} 2012-03-20 16:16:25 ERROR [root] Class '__builtin__.NoneType' is not mapped Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/keystone-2012.1-py2.7.egg/keystone/common/wsgi.py", line 184, in __call__ result = method(context, **params) File "/usr/local/lib/python2.7/dist-packages/keystone-2012.1-py2.7.egg/keystone/identity/core.py", line 312, in delete_tenant self.identity_api.delete_tenant(context, tenant_id) File "/usr/local/lib/python2.7/dist-packages/keystone-2012.1-py2.7.egg/keystone/common/manager.py", line 48, in _wrapper return f(*args, **kw) File "/usr/local/lib/python2.7/dist-packages/keystone-2012.1-py2.7.egg/keystone/identity/backends/sql.py", line 359, in delete_tenant session.delete(tenant_ref) File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.7.5-py2.7-linux-x86_64.egg/sqlalchemy/orm/session.py", line 1250, in delete raise exc.UnmappedInstanceError(instance) UnmappedInstanceError: Class '__builtin__.NoneType' is not mapped 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] ******************** RESPONSE HEADERS ******************** 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] Content-Type = application/json 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] Vary = X-Auth-Token 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] Content-Length = 186 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] ******************** RESPONSE BODY ******************** 2012-03-20 16:16:25 DEBUG [keystone.common.wsgi] {"error": {"message": "An unexpected error prevented the server from fulfilling your request. Class '__builtin__.NoneType' is not mapped", "code": 500, "title": "Internal Server Error"}} 2012-03-20 16:16:25 DEBUG [eventlet.wsgi.server] 192.168.240.19 - - [20/Mar/2012 16:16:25] "DELETE /v2.0//tenants/foo HTTP/1.1" 500 334 0.025677
THis stack trace was generated when trying to run the following command (which requires a ID not a name)
'keystone tenant-delete admin'
Stack trace has changed slightly:
2012-03-20 16:16:25 DEBUG [keystone. common. wsgi] ******* ******* ****** REQUEST ENVIRON ******* ******* ****** common. wsgi] SCRIPT_NAME = /v2.0 common. wsgi] webob.adhoc_attrs = {'response': <Response at 0x40af590 200 OK>} common. wsgi] REQUEST_METHOD = DELETE common. wsgi] PATH_INFO = /tenants/foo common. wsgi] SERVER_PROTOCOL = HTTP/1.0 common. wsgi] HTTP_X_AUTH_TOKEN = ADMIN common. wsgi] HTTP_USER_AGENT = python- keystoneclient common. wsgi] eventlet.posthooks = [] common. wsgi] SERVER_NAME = 192.168.240.19 common. wsgi] REMOTE_ADDR = 192.168.240.19 common. wsgi] eventlet.input = <eventlet. wsgi.Input object at 0x3e37950> common. wsgi] wsgi.url_scheme = http common. wsgi] SERVER_PORT = 35357 common. wsgi] wsgi.input = <eventlet. wsgi.Input object at 0x3e37950> common. wsgi] HTTP_HOST = 192.168. 240.19: 35357 common. wsgi] wsgi.multithread = True common. wsgi] wsgi.version = (1, 0) common. wsgi] openstack.context = {'token_id': 'ADMIN', 'is_admin': True} common. wsgi] GATEWAY_INTERFACE = CGI/1.1 common. wsgi] wsgi.run_once = False common. wsgi] wsgi.errors = <open file '<stderr>', mode 'w' at 0x7fef12133270> common. wsgi] wsgi.multiprocess = False common. wsgi] CONTENT_TYPE = text/plain common. wsgi] HTTP_ACCEPT_ ENCODING = gzip, deflate common. wsgi] common. wsgi] ******* ******* ****** REQUEST BODY ******* ******* ****** common. wsgi] contrib. admin_crud. core.CrudExtens ion object at 0x3ca90d0>} contrib. admin_crud. core.CrudExtens ion object at 0x3ca90d0>, 'path_info': '/tenants/foo'} {tenant_ id}', defaults: {'action': u'delete_tenant', 'controller': <keystone. identity. core.TenantCont roller object at 0x3ca2850>} identity. core.TenantCont roller object at 0x3ca2850>} common. wsgi] arg_dict: {'tenant_id': u'foo'} _.NoneType' is not mapped lib/python2. 7/dist- packages/ keystone- 2012.1- py2.7.egg/ keystone/ common/ wsgi.py" , line 184, in __call__ lib/python2. 7/dist- packages/ keystone- 2012.1- py2.7.egg/ keystone/ identity/ core.py" , line 312, in delete_tenant identity_ api.delete_ tenant( context, tenant_id) lib/python2. 7/dist- packages/ keystone- 2012.1- py2.7.egg/ keystone/ common/ manager. py", line 48, in _wrapper lib/python2. 7/dist- packages/ keystone- 2012.1- py2.7.egg/ keystone/ identity/ backends/ sql.py" , line 359, in delete_tenant delete( tenant_ ref) lib/python2. 7/dist- packages/ SQLAlchemy- 0.7.5-py2. 7-linux- x86_64. egg/sqlalchemy/ orm/session. py", line 1250, in delete tanceError( instance) eError: Class '__builtin_ _.NoneType' is not mapped common. wsgi] ******* ******* ****** RESPONSE HEADERS ******* ******* ****** common. wsgi] Content-Type = application/json common. wsgi] Vary = X-Auth-Token common. wsgi] Content-Length = 186 common. wsgi] common. wsgi] ******* ******* ****** RESPONSE BODY ******* ******* ****** common. wsgi] {"error": {"message": "An unexpected error prevented the server from fulfilling your request. Class '__builtin_ _.NoneType' is not mapped", "code": 500, "title": "Internal Server Error"}} wsgi.server] 192.168.240.19 - - [20/Mar/2012 16:16:25] "DELETE /v2.0//tenants/foo HTTP/1.1" 500 334 0.025677
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [routes.middleware] Matched DELETE /tenants/foo
2012-03-20 16:16:25 DEBUG [routes.middleware] Route path: '{path_info:.*}', defaults: {'controller': <keystone.
2012-03-20 16:16:25 DEBUG [routes.middleware] Match dict: {'controller': <keystone.
2012-03-20 16:16:25 DEBUG [routes.middleware] Matched DELETE /tenants/foo
2012-03-20 16:16:25 DEBUG [routes.middleware] Route path: '/tenants/
2012-03-20 16:16:25 DEBUG [routes.middleware] Match dict: {'action': u'delete_tenant', 'tenant_id': u'foo', 'controller': <keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 ERROR [root] Class '__builtin_
Traceback (most recent call last):
File "/usr/local/
result = method(context, **params)
File "/usr/local/
self.
File "/usr/local/
return f(*args, **kw)
File "/usr/local/
session.
File "/usr/local/
raise exc.UnmappedIns
UnmappedInstanc
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [keystone.
2012-03-20 16:16:25 DEBUG [eventlet.