[Bug 2049723] Re: ubuntu-server ftbfs in jammy with livecd-rootfs 2.765.34

Andreas Hasenack 2049723 at bugs.launchpad.net
Thu Jan 25 20:52:09 UTC 2024


Why is there no mantic task? This code is only used in LTS releases or
what?

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to livecd-rootfs in Ubuntu.
https://bugs.launchpad.net/bugs/2049723

Title:
  ubuntu-server ftbfs in jammy with livecd-rootfs 2.765.34

Status in livecd-rootfs package in Ubuntu:
  Fix Released
Status in livecd-rootfs source package in Jammy:
  Triaged
Status in livecd-rootfs source package in Noble:
  Fix Released

Bug description:
  [Impact]
  ========

  There's a step in the `ubutu-server` `live` image builds which call
  `unminimize`.

  With changes introduced in LP: #2036725 `unminimize` now calls `lxd`
  which on a minimized build/instance will install the lxd snap using the 
  logic in the `lxd` shim from lxd-installer. Previously `unminimize` used `snap` 
  directly to install the `lxd` snap and `ubutu-server` `live` image builds diverted `snap` to allow for calling `unminimize` without the snap install step.

  This change breaks the `ubutu-server` `live` image builds.

  
  [Test Plan]
  ===========

  1. Create an image with the changes proposed
  2. Verify from build logs that unminimize executed successfully and that the lxd snap was not installed at that stage.
  3. Verify that the build was successful

  [Where Problems Could Occur]
  =============================

  One change we do not want is that the lxd snap is not installed at the
  stage of calling `unminimize`. We need to ensure this is not the case.

  [OG Bug Report]
  ===============

  NEEDRESTART-VER: 3.5
  Invoking LXD so that it can be installed by the lxd-installer's script..
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
  FileNotFoundError: [Errno 2] No such file or directory
  /sbin/lxd: 6: exec: /snap/bin/lxd: not found
  E: config/hooks/01-unminimize.chroot_early failed (exit non-zero). You should check for errors.
  P: Begin unmounting filesystems...

  https://launchpad.net/~ubuntu-cdimage/+livefs/ubuntu/jammy/ubuntu-
  server-live/+build/566145

  This is an unminimized image build.

  The change that broke this was introduced for LP: #2036725.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/2049723/+subscriptions




More information about the foundations-bugs mailing list