git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Keystone] KeyError: 'domain_id'


Here is another exception. Any clues?

2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context [req-534d9855-8113-450d-8f9f-d93c0d961d24 113ee63a9ed0466794e24d069efc302c 4c142a681d884010ab36a7ac687d910c - default default] 'domain_id': KeyError: 'domain_id'
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context Traceback (most recent call last):
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context   File "/usr/lib/python3.6/site-packages/keystone/server/flask/request_processing/middleware/auth_context.py", line 103, in _inner
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context     return method(self, request)
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context   File "/usr/lib/python3.6/site-packages/keystone/server/flask/request_processing/middleware/auth_context.py", line 353, in process_request
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context     resp = super(AuthContextMiddleware, self).process_request(request)
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context   File "/usr/lib/python3.6/site-packages/keystonemiddleware/auth_token/__init__.py", line 411, in process_request
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context     allow_expired=allow_expired)
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context   File "/usr/lib/python3.6/site-packages/keystonemiddleware/auth_token/__init__.py", line 445, in _do_fetch_token
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context     data = self.fetch_token(token, **kwargs)
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context   File "/usr/lib/python3.6/site-packages/keystone/server/flask/request_processing/middleware/auth_context.py", line 248, in fetch_token
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context     token, access_rules_support=ACCESS_RULES_MIN_VERSION)
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context   File "/usr/lib/python3.6/site-packages/keystone/common/manager.py", line 115, in wrapped
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context     __ret_val = __f(*args, **kwargs)
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context   File "/usr/lib/python3.6/site-packages/keystone/token/provider.py", line 145, in validate_token
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context     token = self._validate_token(token_id)
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context   File "</usr/lib/python3.6/site-packages/decorator.py:decorator-gen-26>", line 2, in _validate_token
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context   File "/usr/lib/python3.6/site-packages/dogpile/cache/region.py", line 1360, in get_or_create_for_user_func
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context     key, user_func, timeout, should_cache_fn, (arg, kw)
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context   File "/usr/lib/python3.6/site-packages/dogpile/cache/region.py", line 962, in get_or_create
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context     async_creator,
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context   File "/usr/lib/python3.6/site-packages/dogpile/lock.py", line 187, in __enter__
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context     return self._enter()
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context   File "/usr/lib/python3.6/site-packages/dogpile/lock.py", line 94, in _enter
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context     generated = self._enter_create(value, createdtime)
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context   File "/usr/lib/python3.6/site-packages/dogpile/lock.py", line 180, in _enter_create
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context     return self.creator()
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context   File "/usr/lib/python3.6/site-packages/dogpile/cache/region.py", line 916, in gen_value
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context     *creator_args[0], **creator_args[1]
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context   File "/usr/lib/python3.6/site-packages/keystone/token/provider.py", line 179, in _validate_token
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context     token.mint(token_id, issued_at)
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context   File "/usr/lib/python3.6/site-packages/keystone/models/token_model.py", line 580, in mint
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context     self._validate_token_user()
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context   File "/usr/lib/python3.6/site-packages/keystone/models/token_model.py", line 503, in _validate_token_user
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context     if not self.user_domain.get('enabled'):
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context   File "/usr/lib/python3.6/site-packages/keystone/models/token_model.py", line 141, in user_domain
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context     self.user['domain_id']
2020-09-10 10:16:45.050 28 ERROR keystone.server.flask.request_processing.middleware.auth_context KeyError: 'domain_id'


Thanks!
Tony