[Keystone] TypeError: list indices must be integers or slices, not str

Tony Liu tonyliu0592 at hotmail.com
Thu Sep 10 18:06:46 UTC 2020


Any clues to this error?

2020-09-10 11:03:44.913 30 ERROR keystone.server.flask.request_processing.middleware.auth_context Traceback (most recent call last):
2020-09-10 11:03:44.913 30 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 11:03:44.913 30 ERROR keystone.server.flask.request_processing.middleware.auth_context     return method(self, request)
2020-09-10 11:03:44.913 30 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 11:03:44.913 30 ERROR keystone.server.flask.request_processing.middleware.auth_context     resp = super(AuthContextMiddleware, self).process_request(request)
2020-09-10 11:03:44.913 30 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 11:03:44.913 30 ERROR keystone.server.flask.request_processing.middleware.auth_context     allow_expired=allow_expired)
2020-09-10 11:03:44.913 30 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 11:03:44.913 30 ERROR keystone.server.flask.request_processing.middleware.auth_context     data = self.fetch_token(token, **kwargs)
2020-09-10 11:03:44.913 30 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 11:03:44.913 30 ERROR keystone.server.flask.request_processing.middleware.auth_context     token, access_rules_support=ACCESS_RULES_MIN_VERSION)
2020-09-10 11:03:44.913 30 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 11:03:44.913 30 ERROR keystone.server.flask.request_processing.middleware.auth_context     __ret_val = __f(*args, **kwargs)
2020-09-10 11:03:44.913 30 ERROR keystone.server.flask.request_processing.middleware.auth_context   File "/usr/lib/python3.6/site-packages/keystone/token/provider.py", line 146, in validate_token
2020-09-10 11:03:44.913 30 ERROR keystone.server.flask.request_processing.middleware.auth_context     self._is_valid_token(token, window_seconds=window_seconds)
2020-09-10 11:03:44.913 30 ERROR keystone.server.flask.request_processing.middleware.auth_context   File "/usr/lib/python3.6/site-packages/keystone/token/provider.py", line 199, in _is_valid_token
2020-09-10 11:03:44.913 30 ERROR keystone.server.flask.request_processing.middleware.auth_context     self.check_revocation(token)
2020-09-10 11:03:44.913 30 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 11:03:44.913 30 ERROR keystone.server.flask.request_processing.middleware.auth_context     __ret_val = __f(*args, **kwargs)
2020-09-10 11:03:44.913 30 ERROR keystone.server.flask.request_processing.middleware.auth_context   File "/usr/lib/python3.6/site-packages/keystone/token/provider.py", line 137, in check_revocation
2020-09-10 11:03:44.913 30 ERROR keystone.server.flask.request_processing.middleware.auth_context     return self.check_revocation_v3(token)
2020-09-10 11:03:44.913 30 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 11:03:44.913 30 ERROR keystone.server.flask.request_processing.middleware.auth_context     __ret_val = __f(*args, **kwargs)
2020-09-10 11:03:44.913 30 ERROR keystone.server.flask.request_processing.middleware.auth_context   File "/usr/lib/python3.6/site-packages/keystone/token/provider.py", line 133, in check_revocation_v3
2020-09-10 11:03:44.913 30 ERROR keystone.server.flask.request_processing.middleware.auth_context     token_values = self.revoke_api.model.build_token_values(token)
2020-09-10 11:03:44.913 30 ERROR keystone.server.flask.request_processing.middleware.auth_context   File "/usr/lib/python3.6/site-packages/keystone/models/revoke_model.py", line 245, in build_token_values
2020-09-10 11:03:44.913 30 ERROR keystone.server.flask.request_processing.middleware.auth_context     if token.roles is not None:
2020-09-10 11:03:44.913 30 ERROR keystone.server.flask.request_processing.middleware.auth_context   File "/usr/lib/python3.6/site-packages/keystone/models/token_model.py", line 458, in roles
2020-09-10 11:03:44.913 30 ERROR keystone.server.flask.request_processing.middleware.auth_context     roles = self._get_project_roles()
2020-09-10 11:03:44.913 30 ERROR keystone.server.flask.request_processing.middleware.auth_context   File "/usr/lib/python3.6/site-packages/keystone/models/token_model.py", line 423, in _get_project_roles
2020-09-10 11:03:44.913 30 ERROR keystone.server.flask.request_processing.middleware.auth_context     roles.append({'id': r['id'], 'name': r['name']})
2020-09-10 11:03:44.913 30 ERROR keystone.server.flask.request_processing.middleware.auth_context TypeError: list indices must be integers or slices, not str


Thanks!
Tony




More information about the openstack-discuss mailing list