focal: autopkgtests: d/t/mount fails with 'error: cannot download snap "dragonboard-kernel": no snap revision available as specified'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-image (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Fix Committed
|
Low
|
Mauricio Faria de Oliveira |
Bug Description
[Impact]
The autopkgtests for Focal are failing due to d/t/mount,
because (un)specified snap revisisions aren't available:
error: cannot download snap "dragonboard-
error: cannot download: no snap revision available as specified: "pc", "pc-kernel"
This isn't a big deal, but might report false-negatives
for autopkgtests regressions for dependencies (example:
SRU for, multipath-tools bug 2039719 comment #12), which
takes some time to check and handle.
The fix is to specify the snap revisions used by model
.assertion files, which match those in the last stable
ubuntu-core 16 (16.04.5) image [1], using its .manifest
files:
https:/
[Test Plan]
Check that autopkgtests (specifically, d/t/mount test)
passes for ubuntu-image on Focal.
Expected:
2185s autopkgtest [08:55:55]: @@@@@@@
...
2185s mount PASS
Actual:
4393s autopkgtest [18:40:46]: @@@@@@@
...
4393s mount FAIL non-zero exit status 1
[Regression Potential]
The changes are limited to `d/t/mount` before running `ubuntu-image`,
and providing downloaded snap files to it, so any regressions would
likely manifest in the test (which is already broken) probably with
snap-related error messages.
[Other Info]
The fix is not required / does not apply to Jammy and later, since
the autopkgtests changed there, and `d/t/mount` is no longer available.
...
The focal git branch in LP/GH is well ahead of the Ubuntu Archive,
and no longer matches the `debian/tests` structure with `d/t/mount`,
thus the package is being directly uploaded to Ubuntu without a MR.
...
Autopkgtests results against a PPA with the fix:
[Original Error Log]
2690s autopkgtest [18:12:23]: test mount: [------
2690s ==========> dragonboard-
2690s Warning: for backwards compatibility, `ubuntu-image` falls back to `ubuntu-image snap` if no subcommand is given
2690s DEBUG:ubuntu-
2690s DEBUG:ubuntu-
2690s DEBUG:ubuntu-
2691s WARNING: proceeding to download snaps ignoring validations, this default will change in the future. For now use --validation=
2691s 2023/11/16 18:12:23.373431 store_download.
2691s error: cannot download snap "dragonboard-
2691s ERROR:ubuntu-
2691s ERROR:ubuntu-
2691s Traceback (most recent call last):
2691s File "/tmp/autopkgte
2691s snap(self.
2691s File "/tmp/autopkgte
2691s run(cmd, stdout=None, stderr=None, env=os.environ)
2691s File "/tmp/autopkgte
2691s proc.check_
2691s File "/usr/lib/
2691s raise CalledProcessEr
2691s subprocess.
2691s Traceback (most recent call last):
2691s File "/tmp/autopkgte
2691s with open(image_
2691s FileNotFoundError: [Errno 2] No such file or directory: '/tmp/autopkgte
2691s autopkgtest [18:12:24]: test mount: -------
Changed in ubuntu-image (Ubuntu): | |
status: | New → Invalid |
Changed in ubuntu-image (Ubuntu Focal): | |
status: | New → In Progress |
importance: | Undecided → Low |
assignee: | nobody → Mauricio Faria de Oliveira (mfo) |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Adding the block-proposed- focal tag in case this is accepted.