分享

keystone创建Identity 实例服务出现HTTP500错误

oniji 发表于 2016-4-27 11:09:57 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 1 17987
新安装的服务器,在执行下面语句后出现了错误,请问是怎么回事啊
openstack service create \
  --name keystone --description "OpenStack Identity" identity


2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi [req-115802eb-0b52-4131-be27-5be079cfa5d5 - - - - -] (sqlite3.OperationalError) no such table: token [SQL: u'SELECT token.id AS token_id, token.expires AS token_expires, token.extra AS token_extra, token.valid AS token_valid, token.user_id AS token_user_id, token.trust_id AS token_trust_id \nFROM token \nWHERE token.id = ?'] [parameters: ('5dfb3bb12e0699a7ffe4',)]
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi Traceback (most recent call last):
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/keystone/common/wsgi.py", line 452, in __call__
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     response = self.process_request(request)
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/keystone/middleware/core.py", line 305, in process_request
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     auth_context = self._build_auth_context(request)
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/keystone/middleware/core.py", line 193, in _build_auth_context
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     token_data=self.token_provider_api.validate_token(token_id))
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/keystone/token/provider.py", line 188, in validate_token
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     token = self._validate_token(unique_id)
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/dogpile/cache/region.py", line 1013, in decorate
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     should_cache_fn)
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/dogpile/cache/region.py", line 640, in get_or_create
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     async_creator) as value:
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/dogpile/core/dogpile.py", line 158, in __enter__
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     return self._enter()
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/dogpile/core/dogpile.py", line 98, in _enter
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     generated = self._enter_create(createdtime)
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/dogpile/core/dogpile.py", line 149, in _enter_create
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     created = self.creator()
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/dogpile/cache/region.py", line 612, in gen_value
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     created_value = creator()
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/dogpile/cache/region.py", line 1009, in creator
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     return fn(*arg, **kw)
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/keystone/token/provider.py", line 259, in _validate_token
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     token_ref = self._persistence.get_token(token_id)
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/keystone/token/persistence/core.py", line 64, in get_token
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     token_ref = self._get_token(unique_id)
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/dogpile/cache/region.py", line 1013, in decorate
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     should_cache_fn)
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/dogpile/cache/region.py", line 640, in get_or_create
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     async_creator) as value:
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/dogpile/core/dogpile.py", line 158, in __enter__
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     return self._enter()
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/dogpile/core/dogpile.py", line 98, in _enter
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     generated = self._enter_create(createdtime)
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/dogpile/core/dogpile.py", line 149, in _enter_create
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     created = self.creator()
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/dogpile/cache/region.py", line 612, in gen_value
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     created_value = creator()
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/dogpile/cache/region.py", line 1009, in creator
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     return fn(*arg, **kw)
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/keystone/token/persistence/core.py", line 75, in _get_token
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     return self.driver.get_token(token_id)
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/keystone/token/persistence/backends/sql.py", line 92, in get_token
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     token_ref = session.query(TokenModel).get(token_id)
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 819, in get
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     return self._get_impl(ident, loading.load_on_ident)
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 852, in _get_impl
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     return fallback_fn(self, key)
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/loading.py", line 219, in load_on_ident
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     return q.one()
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2473, in one
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     ret = list(self)
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2516, in __iter__
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     return self._execute_and_instances(context)
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2531, in _execute_and_instances
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     result = conn.execute(querycontext.statement, self._params)
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 914, in execute
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     return meth(self, multiparams, params)
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py", line 323, in _execute_on_connection
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     return connection._execute_clauseelement(self, multiparams, params)
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1010, in _execute_clauseelement
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     compiled_sql, distilled_params
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1146, in _execute_context
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     context)
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1337, in _handle_dbapi_exception
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     util.raise_from_cause(newraise, exc_info)
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 199, in raise_from_cause
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     reraise(type(exception), exception, tb=exc_tb)
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1139, in _execute_context
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     context)
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 450, in do_execute
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi     cursor.execute(statement, parameters)
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi OperationalError: (sqlite3.OperationalError) no such table: token [SQL: u'SELECT token.id AS token_id, token.expires AS token_expires, token.extra AS token_extra, token.valid AS token_valid, token.user_id AS token_user_id, token.trust_id AS token_trust_id \nFROM token \nWHERE token.id = ?'] [parameters: ('5dfb3bb12e0699a7ffe4',)]
2016-04-27 10:58:39.799 14006 ERROR keystone.common.wsgi

已有(1)人评论

跳转到指定楼层
when30 发表于 2016-4-27 13:23:38
admin token有问题了。
楼主需要确保token,及配置的token是正确的
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条