I spend a bit of quality time with this bug today and it seems there is (also?) a kernel dimension to it. I ran the following:
"""
$ git status
On branch tests-use-core18-from-gce
Your branch is up to date with 'sergiocazzolato/tests-use-core18-from-gce'.
$ git diff
diff --git a/overlord/devicestate/devicestate.go b/overlord/devicestate/devicestate.go
index d40b32bcbd..77ec3fc0a8 100644
--- a/overlord/devicestate/devicestate.go
+++ b/overlord/devicestate/devicestate.go
@@ -117,6 +117,8 @@ func canAutoRefresh(st *state.State) (bool, error) {
if !seeded { return false, nil
}
+ // HACK
+ return false, nil
// Try to ensure we have an accurate time before doing any
// refreshy stuff. Note that this call will not block.
diff --git a/spread.yaml b/spread.yaml
index 0aef5dea7c..68cbdc09b7 100644
--- a/spread.yaml
+++ b/spread.yaml
@@ -37,7 +37,7 @@ environment:
MANAGED_DEVICE: "false"
# a global setting for LXD channel to use in the tests
LXD_SNAP_CHANNEL: "latest/edge"
- UBUNTU_IMAGE_SNAP_CHANNEL: "latest/candidate"
+ UBUNTU_IMAGE_SNAP_CHANNEL: "beta/1.11"
CORE_CHANNEL: '$(HOST: echo "${SPREAD_CORE_CHANNEL:-edge}")'
BASE_CHANNEL: '$(HOST: echo "${SPREAD_BASE_CHANNEL:-edge}")'
KERNEL_CHANNEL: '$(HOST: echo "${SPREAD_KERNEL_CHANNEL:-edge}")'
diff --git a/tests/lib/prepare.sh b/tests/lib/prepare.sh
index e6b984c4d0..215d0611be 100755
--- a/tests/lib/prepare.sh
+++ b/tests/lib/prepare.sh
@@ -973,8 +973,8 @@ EOF
fi
/snap/bin/ubuntu-image snap \
"""
which essentially moves the image to a 2 month older 4.14 kernel. With that I could not reproduce the error for three subsequent runs of 2 repeats.
However when I disabled this code and use the current "18/edge" pc-kernel (or stable, it's the same revision) then I can trigger the bug right away.
I spend a bit of quality time with this bug today and it seems there is (also?) a kernel dimension to it. I ran the following: core18- from-gce o/tests- use-core18- from-gce' . devicestate/ devicestate. go b/overlord/ devicestate/ devicestate. go .77ec3fc0a8 100644 devicestate/ devicestate. go devicestate/ devicestate. go
return false, nil
"""
$ git status
On branch tests-use-
Your branch is up to date with 'sergiocazzolat
$ git diff
diff --git a/overlord/
index d40b32bcbd.
--- a/overlord/
+++ b/overlord/
@@ -117,6 +117,8 @@ func canAutoRefresh(st *state.State) (bool, error) {
if !seeded {
}
+ // HACK
+ return false, nil
// Try to ensure we have an accurate time before doing any .68cbdc09b7 100644 DEVICE: "false" SNAP_CHANNEL: "latest/edge" IMAGE_SNAP_ CHANNEL: "latest/candidate" IMAGE_SNAP_ CHANNEL: "beta/1.11" CORE_CHANNEL: -edge}" )' BASE_CHANNEL: -edge}" )' CHANNEL: '$(HOST: echo "${SPREAD_ KERNEL_ CHANNEL: -edge}" )' lib/prepare. sh b/tests/ lib/prepare. sh .215d0611be 100755 lib/prepare. sh lib/prepare. sh
// refreshy stuff. Note that this call will not block.
diff --git a/spread.yaml b/spread.yaml
index 0aef5dea7c.
--- a/spread.yaml
+++ b/spread.yaml
@@ -37,7 +37,7 @@ environment:
MANAGED_
# a global setting for LXD channel to use in the tests
LXD_
- UBUNTU_
+ UBUNTU_
CORE_CHANNEL: '$(HOST: echo "${SPREAD_
BASE_CHANNEL: '$(HOST: echo "${SPREAD_
KERNEL_
diff --git a/tests/
index e6b984c4d0.
--- a/tests/
+++ b/tests/
@@ -973,8 +973,8 @@ EOF
fi
if os.query is-core18; then /storage. googleapis. com/snapd- spread- tests/snaps/ core18_ 20211102_ amd64.snap AL="$EXTRA_ FUNDAMENTAL --snap $PWD/core18.snap" /people. canonical. com/~mvo/ tmp/pYVQrBcKmBa 0mZ4CCN7ExT6jH8 rY1hza_ 831.snap AL="$EXTRA_ FUNDAMENTAL --snap $PWD/pc- kernel. snap"
- curl -s -o core18.snap https:/
- EXTRA_FUNDAMENT
+ curl --insecure -o pc-kernel.snap https:/
+ EXTRA_FUNDAMENT
fi
/snap/ bin/ubuntu- image snap \
"""
which essentially moves the image to a 2 month older 4.14 kernel. With that I could not reproduce the error for three subsequent runs of 2 repeats.
However when I disabled this code and use the current "18/edge" pc-kernel (or stable, it's the same revision) then I can trigger the bug right away.