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 a3514d8420)
This commit is contained in:
Samuel Matzek 2017-10-23 10:10:29 -05:00
parent e6d4b4b3fe
commit 64a4a98735
1 changed files with 3 additions and 0 deletions

View File

@ -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