From 2464c5d353d0996833cb3232927e954a58b12c66 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Tue, 26 Nov 2024 12:47:42 -0500 Subject: [PATCH] tests/cluster: always wait for system to be seeded before interacting with snapd Signed-off-by: Simon Deziel --- tests/cluster | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cluster b/tests/cluster index 1e6262bf..e0acfee0 100755 --- a/tests/cluster +++ b/tests/cluster @@ -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