From 64a4a987357696115bd13b3339a85534c6ce9343 Mon Sep 17 00:00:00 2001 From: Samuel Matzek Date: Mon, 23 Oct 2017 10:10:29 -0500 Subject: [PATCH] Enable longer Keystone token life The devstack plugin sets a 3 hour Keystone token life but Keystone is already running when this configuration change is called so Keystone still runs with the default for the tests. Add a restart of Keystone to enable the longer life. Change-Id: Ie340b1c0b56652fc9ca4c0981468363c1be9fb25 (cherry picked from commit a3514d84208d0244bb3a8aa3fc76092349c40115) --- devstack/plugin.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index e64e8b0db5..dc0f1b877c 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -119,6 +119,9 @@ function configure_keystone_token_life() { KEYSTONE_TOKEN_LIFE=${KEYSTONE_TOKEN_LIFE:-10800} iniset $KEYSTONE_CONF token expiration ${KEYSTONE_TOKEN_LIFE} echo "configure_keystone_token_life: setting keystone token life to ${KEYSTONE_TOKEN_LIFE}" + echo "configure_keystone_token_life: restarting Keystone" + stop_keystone + start_keystone } # configure_nova_kvm() - update the nova hypervisor configuration if possible