Seeded snaps broken in the Focal dailies

Bug #1952093 reported by Paride Legovini
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
livecd-rootfs (Ubuntu)
Invalid
Undecided
Unassigned
Focal
Fix Released
Undecided
Unassigned

Bug Description

[impact]
In the recent focal-live-server-amd64 dailies, e.g. in:

Ubuntu-Server 20.04.3 LTS "Focal Fossa" - Release amd64 (20211124)

some snap related errors are printed to the terminal at boot time, and then subiquity doesn't start. Jumping to tty2 and doing a simple

  systemctl status snapd

shows that snapd complains about the state of the core18 snap, and indeed /snap/core18/current/ is empty. Reinstalling core18 and refreshing subiquity from the candidate channel makes it start normally. This looks like a problem in the snap seeding.

This turns out to be because the core18_*.snap file is missing from the live layer, thanks to some over enthusiastic cleanup in a livecd-rootfs hook.

[test case]
build a focal live-server iso with livecd-rootfs. check it boots.

[regression potential]
the fix touches a hook that only runs for live-server builds, so even if buggy it can't really make things worse (as current ISOs are basically inoperable)

Related branches

description: updated
Changed in livecd-rootfs (Ubuntu):
status: New → Invalid
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Paride, 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.36 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: New → Fix Committed
tags: added: verification-needed verification-needed-focal
Revision history for this message
Brian Murray (brian-murray) wrote (last edit ):

I'd tested an install of the Ubuntu Live Server image for 20.04.3 (daily build 20220119) and subiquity did launch and 'systemctl status snapd' did not return any complaints. Additionally, I was able to complete the installation process so I think this is resolved. However, core18 wasn't on the image but core20 is.

Discussing this with mwhudson I didn't realize that the server live image is not built with -proposed enabled so while this might have been fixed in subiquity my test didn't actually test the new livecd-rootfs. I've kicked off a daily build of the liveserver image with -proposed enabled.

Revision history for this message
Brian Murray (brian-murray) wrote :

I tested the daily second daily build (20220119.1) of the Ubuntu Live Server image on an amd64 virtual machine and subiquity started without any issue. Additionally, /snap/core20/ is populated. So I think this change is fine to land in -updates.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Brian built me an ISO using this version of livecd-rootfs and I tested that subiquity started up fine.

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

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

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

  * live-build/ubuntu-server/hooks/032-installer-squashfs.binary: be more
    careful in deleting snaps that snap-preseed has copied up into the live
    installer layer. (LP: #1952093)

 -- Michael Hudson-Doyle <email address hidden> Thu, 02 Dec 2021 12:05:00 +1300

Changed in livecd-rootfs (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) 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
Paride Legovini (paride) wrote :

Thanks Brian for doing the verification.

I'm still not sure on why the images were _not_ broken anymore given that they were not build with -proposed enabled, and the fixed package was only available in -proposed. Maybe something changed in how or which snaps are seeded: as Brian observed core18 is not present anymore. Anyway everything looks sane.

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.