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': } 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 = 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 = 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 = ', 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': } 2012-03-20 16:16:25    DEBUG [routes.middleware] Match dict: {'controller': , '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': } 2012-03-20 16:16:25    DEBUG [routes.middleware] Match dict: {'action': u'delete_tenant', 'tenant_id': u'foo', 'controller': } 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