root@cc1:/opt/devstack/devstack/files# keystone tenant-create --name=demo
No handlers could be found for logger "keystoneclient.client"
Unable to communicate with identity service: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 336, in handle_one_response
result = self.application(self.environ, start_response)
File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 203, in __call__
return app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.0.8-py2.7.egg/webob/dec.py", line 147, in __call__
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.0.8-py2.7.egg/webob/dec.py", line 208, in call_func
return self.func(req, *args, **kwargs)
File "/opt/keystone/keystone/common/wsgi.py", line 284, in __call__
response = request.get_response(self.application)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.0.8-py2.7.egg/webob/request.py", line 1053, in get_response
application, catch_exc_info=False)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.0.8-py2.7.egg/webob/request.py", line 1022, in call_application
app_iter = application(self.environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.0.8-py2.7.egg/webob/dec.py", line 147, in __call__
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.0.8-py2.7.egg/webob/dec.py", line 208, in call_func
return self.func(req, *args, **kwargs)
File "/opt/keystone/keystone/common/wsgi.py", line 284, in __call__
response = request.get_response(self.application)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.0.8-py2.7.egg/webob/request.py", line 1053, in get_response
application, catch_exc_info=False)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.0.8-py2.7.egg/webob/request.py", line 1022, in call_application
app_iter = application(self.environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.0.8-py2.7.egg/webob/dec.py", line 147, in __call__
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.0.8-py2.7.egg/webob/dec.py", line 208, in call_func
return self.func(req, *args, **kwargs)
File "/opt/keystone/keystone/common/wsgi.py", line 284, in __call__
response = request.get_response(self.application)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.0.8-py2.7.egg/webob/request.py", line 1053, in get_response
application, catch_exc_info=False)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.0.8-py2.7.egg/webob/request.py", line 1022, in call_application
app_iter = application(self.environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.0.8-py2.7.egg/webob/dec.py", line 147, in __call__
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.0.8-py2.7.egg/webob/dec.py", line 208, in call_func
return self.func(req, *args, **kwargs)
File "/opt/keystone/keystone/common/wsgi.py", line 284, in __call__
response = request.get_response(self.application)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.0.8-py2.7.egg/webob/request.py", line 1053, in get_response
application, catch_exc_info=False)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.0.8-py2.7.egg/webob/request.py", line 1022, in call_application
app_iter = application(self.environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.0.8-py2.7.egg/webob/dec.py", line 147, in __call__
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.0.8-py2.7.egg/webob/dec.py", line 208, in call_func
return self.func(req, *args, **kwargs)
File "/opt/keystone/keystone/common/wsgi.py", line 307, in __call__
resp = req.get_response(self.application)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.0.8-py2.7.egg/webob/request.py", line 1053, in get_response
application, catch_exc_info=False)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.0.8-py2.7.egg/webob/request.py", line 1022, in call_application
app_iter = application(self.environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.0.8-py2.7.egg/webob/dec.py", line 159, in __call__
return resp(environ, start_response)
File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
response = self.app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.0.8-py2.7.egg/webob/dec.py", line 159, in __call__
return resp(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.0.8-py2.7.egg/webob/dec.py", line 159, in __call__
return resp(environ, start_response)
File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
response = self.app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.0.8-py2.7.egg/webob/dec.py", line 159, in __call__
return resp(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.0.8-py2.7.egg/webob/dec.py", line 147, in __call__
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.0.8-py2.7.egg/webob/dec.py", line 208, in call_func
return self.func(req, *args, **kwargs)
File "/opt/keystone/keystone/common/wsgi.py", line 181, in __call__
result = method(context, **params)
File "/opt/keystone/keystone/identity/core.py", line 303, in create_tenant
context, tenant_id, tenant_ref)
File "/opt/keystone/keystone/common/manager.py", line 48, in _wrapper
return f(*args, **kw)
File "/opt/keystone/keystone/identity/backends/sql.py", line 319, in create_tenant
session.flush()
File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1547, in flush
self._flush(objects)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1616, in _flush
flush_context.execute()
File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 328, in execute
rec.execute(self)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 472, in execute
uow
File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/mapper.py", line 2264, in _save_obj
execute(statement, multiparams)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1405, in execute
params)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1538, in _execute_clauseelement
compiled_sql, distilled_params
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1646, in _execute_context
context)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1639, in _execute_context
context)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 330, in do_execute
cursor.execute(statement, parameters)
IntegrityError: (IntegrityError) column name is not unique u'INSERT INTO tenant (id, name, extra) VALUES (?, ?, ?)' ('cfabb987dba6434dbdfecb2e75d86876', u'demo', '{"enabled": true, "description": null}')
. (HTTP 500)
$keystone tenant-create --name=demo
$keystone tenant-create --name=demo
root@cc1: /opt/devstack/ devstack/ files# keystone tenant-create --name=demo .client" python2. 7/dist- packages/ eventlet/ wsgi.py" , line 336, in handle_one_response n(self. environ, start_response) python2. 7/dist- packages/ paste/urlmap. py", line 203, in __call__ lib/python2. 7/dist- packages/ WebOb-1. 0.8-py2. 7.egg/webob/ dec.py" , line 147, in __call__ lib/python2. 7/dist- packages/ WebOb-1. 0.8-py2. 7.egg/webob/ dec.py" , line 208, in call_func keystone/ common/ wsgi.py" , line 284, in __call__ get_response( self.applicatio n) lib/python2. 7/dist- packages/ WebOb-1. 0.8-py2. 7.egg/webob/ request. py", line 1053, in get_response info=False) lib/python2. 7/dist- packages/ WebOb-1. 0.8-py2. 7.egg/webob/ request. py", line 1022, in call_application self.environ, start_response) lib/python2. 7/dist- packages/ WebOb-1. 0.8-py2. 7.egg/webob/ dec.py" , line 147, in __call__ lib/python2. 7/dist- packages/ WebOb-1. 0.8-py2. 7.egg/webob/ dec.py" , line 208, in call_func keystone/ common/ wsgi.py" , line 284, in __call__ get_response( self.applicatio n) lib/python2. 7/dist- packages/ WebOb-1. 0.8-py2. 7.egg/webob/ request. py", line 1053, in get_response info=False) lib/python2. 7/dist- packages/ WebOb-1. 0.8-py2. 7.egg/webob/ request. py", line 1022, in call_application self.environ, start_response) lib/python2. 7/dist- packages/ WebOb-1. 0.8-py2. 7.egg/webob/ dec.py" , line 147, in __call__ lib/python2. 7/dist- packages/ WebOb-1. 0.8-py2. 7.egg/webob/ dec.py" , line 208, in call_func keystone/ common/ wsgi.py" , line 284, in __call__ get_response( self.applicatio n) lib/python2. 7/dist- packages/ WebOb-1. 0.8-py2. 7.egg/webob/ request. py", line 1053, in get_response info=False) lib/python2. 7/dist- packages/ WebOb-1. 0.8-py2. 7.egg/webob/ request. py", line 1022, in call_application self.environ, start_response) lib/python2. 7/dist- packages/ WebOb-1. 0.8-py2. 7.egg/webob/ dec.py" , line 147, in __call__ lib/python2. 7/dist- packages/ WebOb-1. 0.8-py2. 7.egg/webob/ dec.py" , line 208, in call_func keystone/ common/ wsgi.py" , line 284, in __call__ get_response( self.applicatio n) lib/python2. 7/dist- packages/ WebOb-1. 0.8-py2. 7.egg/webob/ request. py", line 1053, in get_response info=False) lib/python2. 7/dist- packages/ WebOb-1. 0.8-py2. 7.egg/webob/ request. py", line 1022, in call_application self.environ, start_response) lib/python2. 7/dist- packages/ WebOb-1. 0.8-py2. 7.egg/webob/ dec.py" , line 147, in __call__ lib/python2. 7/dist- packages/ WebOb-1. 0.8-py2. 7.egg/webob/ dec.py" , line 208, in call_func keystone/ common/ wsgi.py" , line 307, in __call__ response( self.applicatio n) lib/python2. 7/dist- packages/ WebOb-1. 0.8-py2. 7.egg/webob/ request. py", line 1053, in get_response info=False) lib/python2. 7/dist- packages/ WebOb-1. 0.8-py2. 7.egg/webob/ request. py", line 1022, in call_application self.environ, start_response) lib/python2. 7/dist- packages/ WebOb-1. 0.8-py2. 7.egg/webob/ dec.py" , line 159, in __call__ python2. 7/dist- packages/ routes/ middleware. py", line 131, in __call__ lib/python2. 7/dist- packages/ WebOb-1. 0.8-py2. 7.egg/webob/ dec.py" , line 159, in __call__ lib/python2. 7/dist- packages/ WebOb-1. 0.8-py2. 7.egg/webob/ dec.py" , line 159, in __call__ python2. 7/dist- packages/ routes/ middleware. py", line 131, in __call__ lib/python2. 7/dist- packages/ WebOb-1. 0.8-py2. 7.egg/webob/ dec.py" , line 159, in __call__ lib/python2. 7/dist- packages/ WebOb-1. 0.8-py2. 7.egg/webob/ dec.py" , line 147, in __call__ lib/python2. 7/dist- packages/ WebOb-1. 0.8-py2. 7.egg/webob/ dec.py" , line 208, in call_func keystone/ common/ wsgi.py" , line 181, in __call__ keystone/ identity/ core.py" , line 303, in create_tenant keystone/ common/ manager. py", line 48, in _wrapper keystone/ identity/ backends/ sql.py" , line 319, in create_tenant python2. 7/dist- packages/ sqlalchemy/ orm/session. py", line 1547, in flush _flush( objects) python2. 7/dist- packages/ sqlalchemy/ orm/session. py", line 1616, in _flush context. execute( ) python2. 7/dist- packages/ sqlalchemy/ orm/unitofwork. py", line 328, in execute execute( self) python2. 7/dist- packages/ sqlalchemy/ orm/unitofwork. py", line 472, in execute python2. 7/dist- packages/ sqlalchemy/ orm/mapper. py", line 2264, in _save_obj statement, multiparams) python2. 7/dist- packages/ sqlalchemy/ engine/ base.py" , line 1405, in execute python2. 7/dist- packages/ sqlalchemy/ engine/ base.py" , line 1538, in _execute_ clauseelement python2. 7/dist- packages/ sqlalchemy/ engine/ base.py" , line 1646, in _execute_context python2. 7/dist- packages/ sqlalchemy/ engine/ base.py" , line 1639, in _execute_context python2. 7/dist- packages/ sqlalchemy/ engine/ default. py", line 330, in do_execute execute( statement, parameters) 34dbdfecb2e75d8 6876', u'demo', '{"enabled": true, "description": null}')
No handlers could be found for logger "keystoneclient
Unable to communicate with identity service: Traceback (most recent call last):
File "/usr/lib/
result = self.applicatio
File "/usr/lib/
return app(environ, start_response)
File "/usr/local/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/
return self.func(req, *args, **kwargs)
File "/opt/keystone/
response = request.
File "/usr/local/
application, catch_exc_
File "/usr/local/
app_iter = application(
File "/usr/local/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/
return self.func(req, *args, **kwargs)
File "/opt/keystone/
response = request.
File "/usr/local/
application, catch_exc_
File "/usr/local/
app_iter = application(
File "/usr/local/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/
return self.func(req, *args, **kwargs)
File "/opt/keystone/
response = request.
File "/usr/local/
application, catch_exc_
File "/usr/local/
app_iter = application(
File "/usr/local/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/
return self.func(req, *args, **kwargs)
File "/opt/keystone/
response = request.
File "/usr/local/
application, catch_exc_
File "/usr/local/
app_iter = application(
File "/usr/local/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/
return self.func(req, *args, **kwargs)
File "/opt/keystone/
resp = req.get_
File "/usr/local/
application, catch_exc_
File "/usr/local/
app_iter = application(
File "/usr/local/
return resp(environ, start_response)
File "/usr/lib/
response = self.app(environ, start_response)
File "/usr/local/
return resp(environ, start_response)
File "/usr/local/
return resp(environ, start_response)
File "/usr/lib/
response = self.app(environ, start_response)
File "/usr/local/
return resp(environ, start_response)
File "/usr/local/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/
return self.func(req, *args, **kwargs)
File "/opt/keystone/
result = method(context, **params)
File "/opt/keystone/
context, tenant_id, tenant_ref)
File "/opt/keystone/
return f(*args, **kw)
File "/opt/keystone/
session.flush()
File "/usr/lib/
self.
File "/usr/lib/
flush_
File "/usr/lib/
rec.
File "/usr/lib/
uow
File "/usr/lib/
execute(
File "/usr/lib/
params)
File "/usr/lib/
compiled_sql, distilled_params
File "/usr/lib/
context)
File "/usr/lib/
context)
File "/usr/lib/
cursor.
IntegrityError: (IntegrityError) column name is not unique u'INSERT INTO tenant (id, name, extra) VALUES (?, ?, ?)' ('cfabb987dba64
. (HTTP 500)