Add api_version for etcd3 coordination URL

Since upgrade of etcd3 (see [1]), the v3aplha endpoint has been
deprecated but tooz commit (see [2]) is not yet released.
Until then, we should force the api_version=v3 to make sure the
coordination between engine is working correctly.

Closes-Bug: #2040048

Signed-off-by: Arnaud Morin <arnaud.morin@ovhcloud.com>
Change-Id: Ieade7a30a192910fc3870b173017efd481f0b18f
This commit is contained in:
Arnaud Morin 2023-10-24 15:14:53 +02:00 committed by Arnaud M
parent ae0289e029
commit e343ccb078

View File

@ -109,7 +109,7 @@ function configure_mistral {
if [[ ! -z "$MISTRAL_COORDINATION_URL" ]]; then if [[ ! -z "$MISTRAL_COORDINATION_URL" ]]; then
iniset $MISTRAL_CONF_FILE coordination backend_url "$MISTRAL_COORDINATION_URL" iniset $MISTRAL_CONF_FILE coordination backend_url "$MISTRAL_COORDINATION_URL"
elif is_service_enabled etcd3; then elif is_service_enabled etcd3; then
iniset $MISTRAL_CONF_FILE coordination backend_url "etcd3+http://${SERVICE_HOST}:$ETCD_PORT" iniset $MISTRAL_CONF_FILE coordination backend_url "etcd3+http://${SERVICE_HOST}:$ETCD_PORT?api_version=v3"
fi fi
} }