** Description changed: + [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. + 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@xenial-Virtual-Machine:~$ sudo snap install vscode - [sudo] password for peterg: + [sudo] password for peterg: error: too early for operation, device not yet seeded or device model not acknowledged xx@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 + 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)
** Patch added: "Backport for Bionic" https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1828500/+attachment/5277325/+files/bionic.debdiff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1828500 Title: snapd fails always in Optimised Ubuntu Desktop images available in Microsoft Hyper-V gallery To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1828500/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs