← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1864252] Re: preseeded snap installs fail in images

 

I have to reopen a Focal task for this bug as the problem is happening
again with the live-server ISOs with serial 20200309: the snapd seeding
never completes (see screenshot). The latest Bionic image boots fine.
The Focal live-server images with serial 20200306 were working fine too.
This affects multiple architectures.

** Also affects: livecd-rootfs (Ubuntu Focal)
   Importance: High
     Assignee: Robert C Jennings (rcj)
       Status: Fix Released

** Changed in: livecd-rootfs (Ubuntu Focal)
       Status: Fix Released => New

** Attachment added: "Screenshot_utah-93418-focal-live-server-amd64_2020-03-10_14:25:17.png"
   https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1864252/+attachment/5335349/+files/Screenshot_utah-93418-focal-live-server-amd64_2020-03-10_14%3A25%3A17.png

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1864252

Title:
  preseeded snap installs fail in images

Status in livecd-rootfs package in Ubuntu:
  New
Status in livecd-rootfs source package in Xenial:
  Invalid
Status in livecd-rootfs source package in Bionic:
  Fix Released
Status in livecd-rootfs source package in Eoan:
  Fix Released
Status in livecd-rootfs source package in Focal:
  New

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/*)

   * Produce an image which does not include snaps by default from the
  ubuntu package seed (ubuntu-cpc:minimized does this) but add a snap in
  a binary hook.  Ensure the base snap for the specified snap is
  installed.

   * 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