Buildd images do not launch on macOS under multipass due to missing unpacked kernels and initrd

Bug #1910557 reported by David Krauser
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
livecd-rootfs (Ubuntu)
Fix Released
Undecided
Unassigned
Xenial
Fix Released
Undecided
Unassigned
Bionic
Fix Released
Undecided
Unassigned
Focal
Fix Released
Undecided
Unassigned
Groovy
Fix Released
Undecided
Unassigned
Hirsute
Fix Released
Undecided
Unassigned

Bug Description

livecd-rootfs v2.700 in hirsute introduced a fix to produce unpacked artifacts for use by multipass on macOS hosts. These hosts require direct access to a kernel and initrd to boot the buildd images.

See: https://git.launchpad.net/livecd-rootfs/commit/?id=065c82314464fa78337d5122e1d4826a7d6edbb0

This change needs to be backported to all suites.

[Impact]

 * Without this change, users are unable to use the buildd images with multipass on macOS hosts. Snapcraft utilizes multipass to build snaps, so this blocks macOS users from building snaps.

As a workaround, the CPC team is manually extracting these artifacts and publishing them to cloud-images.ubuntu.com. This is not ideal for the long-term, and could result in breakage in the event that the CPC team forgets to manually publish these artifacts.

[Test Case]

 * After this change lands, a user should be able to build images with the ubuntu-base project and buildd subproject, and the resulting build should produce extracted kernel and initrd artifacts.

[Where problems could occur]

 * These changes are minor, but a mistake could result in broken buildd image hooks (where the build fails) or broken buildd image artifacts (where the images don't work as expected).
* Since all buildd images are manually tested by the launchpad team, multipass team, and snapcraft team before they enter production, the risk of introducing breakage for end users is low.

Related branches

Changed in livecd-rootfs (Ubuntu Hirsute):
status: New → Fix Released
Changed in livecd-rootfs (Ubuntu Groovy):
status: New → In Progress
Changed in livecd-rootfs (Ubuntu Focal):
status: New → In Progress
Changed in livecd-rootfs (Ubuntu Bionic):
status: New → In Progress
Changed in livecd-rootfs (Ubuntu Xenial):
status: New → In Progress
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Please test proposed package

Hello David, or anyone else affected,

Accepted livecd-rootfs into groovy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/livecd-rootfs/2.694.3 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, what testing has been performed on the package and change the tag from verification-needed-groovy to verification-done-groovy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-groovy. 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 Groovy):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-groovy
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Hello David, or anyone else affected,

Accepted livecd-rootfs into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/livecd-rootfs/2.664.17 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, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. 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 Focal):
status: In Progress → Fix Committed
tags: added: verification-needed-focal
Changed in livecd-rootfs (Ubuntu Bionic):
status: In Progress → Fix Committed
tags: added: verification-needed-bionic
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Hello David, or anyone else affected,

Accepted livecd-rootfs into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/livecd-rootfs/2.525.51 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, what testing has been performed on the package and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. 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.

Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Hello David, or anyone else affected,

Accepted livecd-rootfs into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/livecd-rootfs/2.408.66 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, what testing has been performed on the package and change the tag from verification-needed-xenial to verification-done-xenial. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-xenial. 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 Xenial):
status: In Progress → Fix Committed
tags: added: verification-needed-xenial
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Comparing
https://launchpad.net/~cloud-images/+livefs/ubuntu/groovy/cpc-buildd/+build/259723

with

https://launchpad.net/~xnox/+livefs/ubuntu/groovy/any/+build/259731

we can see that:

livecd.ubuntu-base.disk-linux-virtual.img (316.7 MiB)
livecd.ubuntu-base.disk-linux-virtual.manifest (7.8 KiB)
livecd.ubuntu-base.ext4 (497.0 MiB)
livecd.ubuntu-base.initrd-generic (16.1 MiB)
livecd.ubuntu-base.lxd.manifest (4.8 KiB)
livecd.ubuntu-base.lxd.tar.gz (146.2 MiB)
livecd.ubuntu-base.manifest (5.3 KiB)
livecd.ubuntu-base.rootfs.manifest (4.8 KiB)
livecd.ubuntu-base.rootfs.tar.gz (147.2 MiB)
livecd.ubuntu-base.vmlinuz-generic (13.1 MiB)

.manifest files got produced, and split initrd-generic and vmzlinuz-generic were produced too.

tags: added: verification-done-groovy
removed: verification-needed-groovy
Revision history for this message
Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (livecd-rootfs/2.408.66)

All autopkgtests for the newly accepted livecd-rootfs (2.408.66) for xenial have finished running.
The following regressions have been reported in tests triggered by the package:

ubuntu-image/1.10+16.04ubuntu1 (arm64, i386, s390x, amd64, ppc64el)

Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUpdates policy regarding autopkgtest regressions [1].

https://people.canonical.com/~ubuntu-archive/proposed-migration/xenial/update_excuses.html#livecd-rootfs

[1] https://wiki.ubuntu.com/StableReleaseUpdates#Autopkgtest_Regressions

Thank you!

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Looking at https://launchpad.net/~xnox/+livefs/ubuntu/focal/any/+build/259747

we can see that:

livecd.ubuntu-base.disk-linux-virtual.img (293.2 MiB)
livecd.ubuntu-base.disk-linux-virtual.manifest (7.9 KiB)
livecd.ubuntu-base.ext4 (450.0 MiB)
livecd.ubuntu-base.initrd-generic (16.0 MiB)
livecd.ubuntu-base.lxd.manifest (4.5 KiB)
livecd.ubuntu-base.lxd.tar.gz (126.7 MiB)
livecd.ubuntu-base.manifest (5.0 KiB)
livecd.ubuntu-base.rootfs.manifest (4.5 KiB)
livecd.ubuntu-base.rootfs.tar.gz (127.6 MiB)
livecd.ubuntu-base.vmlinuz-generic (11.1 MiB)

.manifest files got produced, and split initrd-generic and vmzlinuz-generic were produced too.

tags: added: verification-done-focal
removed: verification-needed-focal
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Looking at https://launchpad.net/~xnox/+livefs/ubuntu/bionic/any/+build/259748

we can see that:

livecd.ubuntu-base.disk-linux-virtual.img (272.1 MiB)
livecd.ubuntu-base.disk-linux-virtual.manifest (8.0 KiB)
livecd.ubuntu-base.ext4 (414.0 MiB)
livecd.ubuntu-base.initrd-generic (13.7 MiB)
livecd.ubuntu-base.lxd.manifest (4.4 KiB)
livecd.ubuntu-base.lxd.tar.gz (118.9 MiB)
livecd.ubuntu-base.manifest (4.9 KiB)
livecd.ubuntu-base.rootfs.manifest (4.4 KiB)
livecd.ubuntu-base.rootfs.tar.gz (119.7 MiB)
livecd.ubuntu-base.vmlinuz-generic (8.0 MiB)

.manifest files got produced, and split initrd-generic and vmzlinuz-generic were produced too.

tags: added: verification-done-bionic
removed: verification-needed-bionic
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Please test proposed package

Hello David, or anyone else affected,

Accepted livecd-rootfs into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/livecd-rootfs/2.408.67 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, what testing has been performed on the package and change the tag from verification-needed-xenial to verification-done-xenial. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-xenial. 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.

Revision history for this message
Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (livecd-rootfs/2.408.67)

All autopkgtests for the newly accepted livecd-rootfs (2.408.67) for xenial have finished running.
The following regressions have been reported in tests triggered by the package:

ubuntu-image/1.10+16.04ubuntu1 (s390x, ppc64el, amd64, arm64, i386)

Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUpdates policy regarding autopkgtest regressions [1].

https://people.canonical.com/~ubuntu-archive/proposed-migration/xenial/update_excuses.html#livecd-rootfs

[1] https://wiki.ubuntu.com/StableReleaseUpdates#Autopkgtest_Regressions

Thank you!

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

https://launchpad.net/~xnox/+livefs/ubuntu/xenial/any/+build/259926

Get:89 http://ftpmaster.internal/ubuntu xenial-proposed/main amd64 livecd-rootfs amd64 2.408.67 [73.6 kB]

livecd.ubuntu-base.disk-linux-virtual.img (250.4 MiB)
livecd.ubuntu-base.disk-linux-virtual.manifest (8.4 KiB)
livecd.ubuntu-base.ext4 (388.0 MiB)
livecd.ubuntu-base.initrd-generic (10.5 MiB)
livecd.ubuntu-base.lxd.manifest (5.1 KiB)
livecd.ubuntu-base.lxd.tar.gz (118.0 MiB)
livecd.ubuntu-base.manifest (5.6 KiB)
livecd.ubuntu-base.rootfs.manifest (5.1 KiB)
livecd.ubuntu-base.rootfs.tar.gz (118.8 MiB)
livecd.ubuntu-base.vmlinuz-generic (6.9 MiB)

generated manifests. all is good.

tags: added: verification-done verification-done-xenial
removed: verification-needed verification-needed-xenial
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package livecd-rootfs - 2.694.3

---------------
livecd-rootfs (2.694.3) groovy; urgency=medium

  [ David Krauser ]
  * buildd: produce kernel and initrd as separate artifacts LP: #1910557
  * buildd: call update-initramfs for all installed kernels
    We only have one kernel installed, so we don't need to
    specify an explicit version. LP: #1910557

  [ Dimitri John Ledkov ]
  * esp: install grub in ubuntu bootloader id path, instead of removable.
    (LP: #1912830)
  * esp: perform fsck. (LP: #1912835)
  * Perform fsck on all rootfs. (LP: #1912835)
  * functions: stop removing systemd-detect-virt unconditionally in undivert_grub
    (LP: #1902260)

livecd-rootfs (2.694.2) groovy; urgency=medium

  [ Cody Shepherd ]
  * Create manifests for buildd tarball images (LP: #1914445)

 -- Dimitri John Ledkov <email address hidden> Tue, 09 Feb 2021 00:40:38 +0000

Changed in livecd-rootfs (Ubuntu Groovy):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for livecd-rootfs has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package livecd-rootfs - 2.664.17

---------------
livecd-rootfs (2.664.17) focal; urgency=medium

  [ David Krauser ]
  * buildd: produce kernel and initrd as separate artifacts LP: #1910557
  * buildd: call update-initramfs for all installed kernels
    We only have one kernel installed, so we don't need to
    specify an explicit version. LP: #1910557

  [ Dimitri John Ledkov ]
  * esp: install grub in ubuntu bootloader id path, instead of removable.
    (LP: #1912830)
  * esp: perform fsck. (LP: #1912835)
  * Perform fsck on all rootfs. (LP: #1912835)
  * functions: stop removing systemd-detect-virt unconditionally in undivert_grub
    (LP: #1902260)

livecd-rootfs (2.664.16) focal; urgency=medium

  [ Cody Shepherd ]
  * Produce manifests for buildd tarball images (LP: #1914445)

 -- Dimitri John Ledkov <email address hidden> Tue, 09 Feb 2021 00:52:00 +0000

Changed in livecd-rootfs (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package livecd-rootfs - 2.525.51

---------------
livecd-rootfs (2.525.51) bionic; urgency=medium

  [ David Krauser ]
  * buildd: produce kernel and initrd as separate artifacts LP: #1910557
  * buildd: call update-initramfs for all installed kernels
    We only have one kernel installed, so we don't need to
    specify an explicit version. LP: #1910557

  [ Dimitri John Ledkov ]
  * esp: install grub in ubuntu bootloader id path, instead of removable.
    (LP: #1912830)
  * esp: perform fsck. (LP: #1912835)
  * Perform fsck on all rootfs. (LP: #1912835)
  * functions: stop removing systemd-detect-virt unconditionally in undivert_grub
    (LP: #1902260)

livecd-rootfs (2.525.50) bionic; urgency=medium

  [ Cody Shepherd ]
  * Create manifests for buildd tarball images (LP: #1914445)

 -- Dimitri John Ledkov <email address hidden> Tue, 09 Feb 2021 00:59:37 +0000

Changed in livecd-rootfs (Ubuntu Bionic):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package livecd-rootfs - 2.408.67

---------------
livecd-rootfs (2.408.67) xenial; urgency=medium

  * Revert "esp: install grub in ubuntu bootloader id path, instead of
    removable." as xenial's grub doesn't support shim fallback mode.

livecd-rootfs (2.408.66) xenial; urgency=medium

  [ David Krauser ]
  * buildd: produce kernel and initrd as separate artifacts LP: #1910557
  * buildd: call update-initramfs for all installed kernels
    We only have one kernel installed, so we don't need to
    specify an explicit version. LP: #1910557

  [ Dimitri John Ledkov ]
  * esp: install grub in ubuntu bootloader id path, instead of removable.
  * esp: perform fsck. (LP: #1912835)
  * Perform fsck on all rootfs. (LP: #1912835)
  * functions: stop removing systemd-detect-virt unconditionally in undivert_grub
    (LP: #1902260)

 -- Dimitri John Ledkov <email address hidden> Wed, 10 Feb 2021 13:00:48 +0000

Changed in livecd-rootfs (Ubuntu Xenial):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.