738931d026
* Recent versions of etcd no longer support the /v3alpha/ endpoint
* It's probably better to skip directly to the /v3/ endpoint
as a default.
* Note that this probably means a new minor version of tooz, while
the behaviour can be worked around in config, this is enough to
break existing systems on upgrade.
* Updated the test to test backwards compatibility.
* Updated the tests to use etcd 3.3.27, unfortunately we need
a newer version of pifpaf that supports 3.4 before the default
api can be used.
* The etcd backend tests have been removed: the deprecated backend
uses the v2 api which is no longer provided - a future commit
should remove the deprecated backend. The etcd3gw backend is the
replacement.
This fix is required in pifpaf, but it's not in any release:
7496e5e1c3
Depends-On: https://review.opendev.org/c/openstack/devstack/+/891353
Change-Id: Ibb5e587f6b1348794b1bf4d6405bc4a32a653c2c
32 lines
725 B
Bash
Executable File
32 lines
725 B
Bash
Executable File
#!/bin/bash
|
|
set -eux
|
|
if [ -z "$(which etcd)" ]; then
|
|
ETCD_VERSION=3.3.27
|
|
case `uname -s` in
|
|
Darwin)
|
|
OS=darwin
|
|
SUFFIX=zip
|
|
;;
|
|
Linux)
|
|
OS=linux
|
|
SUFFIX=tar.gz
|
|
;;
|
|
*)
|
|
echo "Unsupported OS"
|
|
exit 1
|
|
esac
|
|
case `uname -m` in
|
|
x86_64)
|
|
MACHINE=amd64
|
|
;;
|
|
*)
|
|
echo "Unsupported machine"
|
|
exit 1
|
|
esac
|
|
TARBALL_NAME=etcd-v${ETCD_VERSION}-$OS-$MACHINE
|
|
test ! -d "$TARBALL_NAME" && curl -L https://github.com/coreos/etcd/releases/download/v${ETCD_VERSION}/${TARBALL_NAME}.${SUFFIX} | tar xz
|
|
export PATH=$PATH:$TARBALL_NAME
|
|
fi
|
|
|
|
$*
|