Replace deprecated configure_auth_token_middleware

It was deprecated some years ago by [1].

[1] https://review.opendev.org/628651

Change-Id: Iecc1c0fbd46e1771103fa93f6cd195fa7292cfca
This commit is contained in:
Takashi Kajinami 2024-11-15 11:05:09 +09:00
parent cd56b91dc6
commit b974de98ad
2 changed files with 1 additions and 6 deletions

View File

@ -64,10 +64,6 @@ function mkdir_chown_stack {
# configure_mistral - Set config files, create data dirs, etc
function configure_mistral {
# create and clean up auth cache dir
mkdir_chown_stack "$MISTRAL_AUTH_CACHE_DIR"
rm -f "$MISTRAL_AUTH_CACHE_DIR"/*
mkdir_chown_stack "$MISTRAL_CONF_DIR"
# Generate Mistral configuration file and configure common parameters.
@ -81,7 +77,7 @@ function configure_mistral {
#-------------------------
# Setup keystone_authtoken section
configure_auth_token_middleware $MISTRAL_CONF_FILE mistral $MISTRAL_AUTH_CACHE_DIR
configure_keystone_authtoken_middleware $MISTRAL_CONF_FILE mistral
iniset $MISTRAL_CONF_FILE keystone_authtoken www_authenticate_uri $KEYSTONE_AUTH_URI_V3
# Setup RabbitMQ credentials

View File

@ -37,7 +37,6 @@ MISTRAL_DASHBOARD_DIR=${DEST}/mistral-dashboard
MISTRAL_CONF_DIR=${MISTRAL_CONF_DIR:-/etc/mistral}
MISTRAL_CONF_FILE=${MISTRAL_CONF_DIR}/mistral.conf
MISTRAL_DEBUG=${MISTRAL_DEBUG:-True}
MISTRAL_AUTH_CACHE_DIR=${MISTRAL_AUTH_CACHE_DIR:-/var/cache/mistral}
MISTRAL_SERVICE_HOST=${MISTRAL_SERVICE_HOST:-$SERVICE_HOST}
MISTRAL_SERVICE_PORT=${MISTRAL_SERVICE_PORT:-8989}