mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-20 10:02:13 +01:00
oem/ami: update tests for etcd2
The v1 API has been removed, so use v2 instead. The 10-second sleep was added because the fleet tests were failing without it. My guess is that etcd needed some time to warm up before we flooded it with requests.
This commit is contained in:
parent
798d9087fb
commit
d8e808c061
@ -156,6 +156,9 @@ for host in ${ips[@]}; do
|
||||
done
|
||||
echo "OK ($instances)"
|
||||
|
||||
echo "Letting etcd settle..."
|
||||
sleep 10
|
||||
|
||||
echo "Running coretest..."
|
||||
for host in ${ips[@]}; do
|
||||
if ! ssh -i "$key_file" -l core -o StrictHostKeyChecking=no "$host" \
|
||||
@ -168,7 +171,7 @@ done
|
||||
echo "OK"
|
||||
|
||||
echo -n "Testing etcd... "
|
||||
test_key="v1/keys/test"
|
||||
test_key="v2/keys/test"
|
||||
token=$(uuidgen)
|
||||
# XXX: the sleep *should never* be required, this is a bug in etcd
|
||||
sleep 5
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user