From 8ef7434770846e81aa04009838bd1df69cc29ac8 Mon Sep 17 00:00:00 2001 From: SamYaple Date: Sat, 13 Feb 2016 16:46:58 +0000 Subject: [PATCH] Fix keystone initial auth mechanism A recent change in keystone [1] has deprecated the token auth mechanism that we used. We reintroduce it temporarily while a more permanant solution is worked on. [1] https://github.com/openstack/keystone/commit/5286b4a297b5a94895a311a9e564aa87cb54dbfd Change-Id: I4d585733a9abd201c1b0680e6196dd2a36db3c7e Closes-Bug: #1545292 --- docker/keystone/Dockerfile.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker/keystone/Dockerfile.j2 b/docker/keystone/Dockerfile.j2 index fa36801bcc..b00b72a5f1 100644 --- a/docker/keystone/Dockerfile.j2 +++ b/docker/keystone/Dockerfile.j2 @@ -61,6 +61,11 @@ RUN ln -s keystone-source/* keystone \ {% endif %} +# NOTE(SamYaple): This is to reintroduce a deprecated option as a quick-fix +# until the correct new procedure is implemented. +# TODO(SamYaple): Replace this with `keystone-manage bootstrap` +RUN sed -i 's|token_auth json_body|token_auth admin_token_auth json_body|g' /etc/keystone/keystone-paste.ini + RUN chown -R keystone: /var/www/cgi-bin/keystone \ && chmod 755 /var/www/cgi-bin/keystone/*