Skip to content

Commit

Permalink
tests/cluster: always wait for system to be seeded before interacting…
Browse files Browse the repository at this point in the history
… with snapd

Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Nov 26, 2024
1 parent 8740d90 commit 2464c5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/cluster
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ fi

echo "==> Upgrading the cluster"
for i in $(seq "${SIZE}"); do
lxc exec "${PREFIX}-$i" -- snap wait system seed.loaded
lxc exec "${PREFIX}-$i" -- snap refresh
# XXX: there should be no refresh ongoing but we've seen races before so let's collect evidences
lxc exec "${PREFIX}-$i" -- snap changes
lxc exec "${PREFIX}-$i" -- snap switch lxd --channel="$3"
if [ "$i" = "${SIZE}" ]; then
lxc exec "${PREFIX}-$i" -- snap wait system seed.loaded
lxc exec "${PREFIX}-$i" -- timeout 10m snap refresh lxd
fi
done
Expand Down

0 comments on commit 2464c5d

Please sign in to comment.