[Bug 1828500] [NEW] snapd fails always in Optimised Ubuntu Desktop images available in Microsoft Hyper-V gallery

Launchpad Bug Tracker 1828500 at bugs.launchpad.net
Tue Jul 16 12:24:17 UTC 2019


You have been subscribed to a public bug by Ubuntu Foundations Team Bug Bot (crichton):

[Impact]

* Failing to do error checks on `snap-tool info` calls while determining
the bases of snaps can lead to inconsistently-seeded images as reported
in the original bug report below.

* This affects all stable releases which use automatic detection of the
base snap during image builds.

* The changes proposed introduce extra error checking which should
result in a build error, if the `snap-tool info` call fails, thus
preventing distribution of a broken image.

[Test Case]

* It may be tricky to reproduce the exact error on demand. But it should
be clear by looking at the code path in

https://code.launchpad.net/~tobijk/livecd-rootfs/+git/livecd-
rootfs/+merge/370096

that the scenario described below may arise.

* A way to test that the changes have no *negative* impact on
functionality is to run a script such as

    https://pastebin.ubuntu.com/p/wQknctr6ys/

and compare it against the expected result

    https://pastebin.ubuntu.com/p/N8PXRJJV9b/

(In this case both core and core18 should have been seeded.) and

[Regression Potential]

* The regression potential for these changes is low, as they only add
extra error checking but do not change the existing logic.

--- Original Bug Report ---

Alway fails in both 18.04.2 and 19.04
Reporting the bug failed too yesterday.
As a consequence LivePatch and everything else fails that is based on snapd.
This makes system unusable. This is a supported configuration.

https://blog.ubuntu.com/2018/09/17/optimised-ubuntu-desktop-images-available-in-microsoft-hyper-v-gallery
https://blog.ubuntu.com/2019/05/07/19-04-disco-dingo-now-available-as-optimised-desktop-image-for-hyper-v

xx at xenial-Virtual-Machine:~$ sudo snap install vscode
[sudo] password for peterg:
error: too early for operation, device not yet seeded or device model not acknowledged
xx at xenial-Virtual-Machine:~$ journalctl -b -u snapd --full --no-pager
-- Logs begin at Thu 2019-05-09 20:06:58 AEST, end at Fri 2019-05-10 13:20:46 AEST. --
May 10 13:19:59 xenial-Virtual-Machine systemd[1]: Starting Snappy daemon...
May 10 13:20:00 xenial-Virtual-Machine snapd[566]: AppArmor status: apparmor is enabled and all features are available
May 10 13:20:00 xenial-Virtual-Machine snapd[566]: helpers.go:717: cannot retrieve info for snap "gnome-calculator": cannot find installed snap "gnome-calculator" at revision 352: missing file /snap/gnome-calculator/352/meta/snap.yaml
May 10 13:20:00 xenial-Virtual-Machine snapd[566]: daemon.go:379: started snapd/2.38+18.04 (series 16; classic) ubuntu/18.04 (amd64) linux/4.15.0-48-generic.
May 10 13:20:00 xenial-Virtual-Machine systemd[1]: Started Snappy daemon.
May 10 13:20:46 xenial-Virtual-Machine snapd[566]: api.go:1071: Installing snap "vscode" revision unset

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: snapd 2.38+18.04
ProcVersionSignature: Ubuntu 4.15.0-48.51-generic 4.15.18
Uname: Linux 4.15.0-48-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.6
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Fri May 10 13:21:25 2019
ProcEnviron:
 LANGUAGE=en_AU:en
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_AU.UTF-8
 SHELL=/bin/bash
SourcePackage: snapd
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: livecd-rootfs (Ubuntu)
     Importance: Critical
         Status: Confirmed


** Tags: amd64 apport-bug hyper-v microsoft patch rls-bb-incoming rls-dd-incoming xenial-virtual-machine
-- 
snapd fails always in  Optimised Ubuntu Desktop images available in Microsoft Hyper-V gallery
https://bugs.launchpad.net/bugs/1828500
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list