From ba953bec389b7aa2a805dd13b8d07d19b7196166 Mon Sep 17 00:00:00 2001 From: Morgan Fainberg Date: Tue, 8 Aug 2017 14:53:20 -0700 Subject: [PATCH] Make an error state message more explicit Make the error state message more explicit when the admin_token_auth middleware is still in the paste-ini. This is an error, the operator must remove the elements from their keystone paste ini or the deletion of the code (in Queens release) will result keystone to fail to run. This is an error in the config. If the operator is using the default paste-ini form keystone, this error should not occur in Pike. If the paste-ini is managed via CMS (e.g. Ansible) it is likely the config must be changed. Change-Id: Id40a7161574c879aa5c948b94173308a03d4c240 --- keystone/middleware/core.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/keystone/middleware/core.py b/keystone/middleware/core.py index d259a9845b..12c929cc60 100644 --- a/keystone/middleware/core.py +++ b/keystone/middleware/core.py @@ -68,7 +68,10 @@ class AdminTokenAuthMiddleware(wsgi.Middleware): '[pipeline:api_v3], [pipeline:admin_api], and ' '[pipeline:public_api] sections of your paste ini ' 'file. The [filter:admin_token_auth] block will also ' - 'need to be removed from your paste ini file. ') + 'need to be removed from your paste ini file. Failure ' + 'to remove these elements from your paste ini file will ' + 'result in keystone to no longer start/run when the ' + '`admin_token_auth` is removed in the Queens release.') class JsonBodyMiddleware(wsgi.Middleware):