[Bug 1864252] Re: preseeded snap installs fail in images
Brian Murray
brian at ubuntu.com
Tue Mar 3 14:12:32 UTC 2020
Hello Robert, or anyone else affected,
Accepted livecd-rootfs into eoan-proposed. The package will build now
and be available at https://launchpad.net/ubuntu/+source/livecd-
rootfs/2.620.1 in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested and change the tag from
verification-needed-eoan to verification-done-eoan. If it does not fix
the bug for you, please add a comment stating that, and change the tag
to verification-failed-eoan. In either case, without details of your
testing we will not be able to proceed.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance for helping!
N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.
** Changed in: livecd-rootfs (Ubuntu Eoan)
Status: Confirmed => Fix Committed
** Tags added: verification-needed verification-needed-eoan
** Changed in: livecd-rootfs (Ubuntu Bionic)
Status: Confirmed => Fix Committed
** Tags added: verification-needed-bionic
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1864252
Title:
preseeded snap installs fail in images
Status in livecd-rootfs package in Ubuntu:
Fix Released
Status in livecd-rootfs source package in Xenial:
In Progress
Status in livecd-rootfs source package in Bionic:
Fix Committed
Status in livecd-rootfs source package in Eoan:
Fix Committed
Bug description:
[Impact]
Images built with pre-seeded snaps contain insufficient assertion data
causing boot to fail.
The snaps for seeding are downloaded with a custom snap tool for an
earlier cohort API (now deprecated). The assertions that it pulls are
incomplete. We could update that list and move to the new API but at
this time the snap-tool provides no value compared to use of the snap
CLI (cohort support has moved to the cli as well). The development
overhead of maintaining snap-tool in livecd-rootfs are not warranted.
This patch removes the bespoke snap-tool and relies on the snap CLI
instead.
[Test Case]
* Produce images that include preseeded snaps (in
/var/lib/snapd/seed/*)
* Boot the resulting image and ensure that the snapd.seeded unit is
successful and the snaps (from the correct channels) show up in 'snap
list'
[Regression Potential]
* The interface for these two tools is consistent and the output
should be the same. There's always a chance that snap-tool had quirks
which a move to the snap CLI uncovers, where the result would be
different snaps seeded from before the change. An example would be
channel differences before and after this change. I haven't seen
issues in my testing and I do think it's unlikely, mostly I'm
suspicious of SRUs that don't list any regression potentials.
[Other Info]
* The snap-tool that is being removed is used only in livecd-rootfs through live-build/functions. The replacement with the upstream snap cli is equivalent the 'info' and 'download' commands that are used. The snap-tool code is using deprecated APIs which do not provide the data needed for pre-seeding.
* The attached MP for Xenial is simpler as it never had snap-tool. The Xenial MP is a minor change to give us parity between releases for use of the snap cohort key during download.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1864252/+subscriptions
More information about the Ubuntu-sponsors
mailing list