buildd daily kinetic, lunar, and mantic image missing systemd-resolved

Bug #2007419 reported by Callahan Kovacs
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
cloud-images
In Progress
Undecided
Simon Poirier
livecd-rootfs (Ubuntu)
Confirmed
Undecided
Unassigned
Lunar
Confirmed
Undecided
Unassigned

Bug Description

[ Impact ]

 * There was a regression in the buildd images when systemd-resolved was moved
   out of systemd to a separate package, as the buildd recipes did not include
   systemd-resolved. Those images don't include a resolvconf anymore.

 * This affects buildd images only in the context where they are booted
   standalone (e.g. kvm, multipass). buildd containers which get network
   configuration injected (like launchpad) are not affected.

 * This fix adds the systemd-resolved package explicitly, making the resolver
   available on buildd images like pre-kinetic.

[ Test Plan ]

 * Build image with project=ubuntu-base subproject=buildd image_target=all

 * Boot qcow2 buildd image. run `apt-get update`

 * Apt should be able to resolve mirrors and update fine.

[ Where problems could occur ]

 * If the context in which buildd images are used injects a resolv.conf
   without unlinking the systemd-resolved stub, the resolver might revert
   the injected config to the systemd-resolved stub on restart.

[ Original Description ]

Hello,

I'm trying to use the buildd daily images [1]. However, I'm having an issue with `systemd-resolved` not being installed on buildd's daily kinetic and lunar images.

From what I can gather, systemd-resolved:
1. exists in all other buildd daily images and buildd release images
2. exists in the other cloud images [2]
3. was separated from the systemd package in kinetic and lunar [3]

It's a bit of a catch-22, because without `systemd-resolved` or literally `/usr/bin/resolvectl`, I can't run `apt install systemd-resolved` in my LXD environment.

Can someone please advise? Was this package excluded on purpose?

Sources:
[1] https://cloud-images.ubuntu.com/buildd/daily/
[2] https://cloud-images.ubuntu.com/
[3] https://packages.ubuntu.com/search?keywords=systemd-resolved&searchon=names&exact=1&suite=all&section=all

Related branches

Callahan Kovacs (mr-cal)
description: updated
Revision history for this message
John Chittum (jchittum) wrote :

starting in kinetic, systemd-resolved was separated into its own package. as i look in the livecd-rootfs code for buildd, i'm a little confused as to its package set -- i don't see an identified seed, just a copy from the existing chroot and the addition of a couple packages. which is awkward because the initial chroot is _also_ builds.

as i keep digging through, nothing is installing `systemd-resolved`, which makes me think it's missing in the initial package definitions of buildd. it's not listed as an a package to install during the config step:

https://git.launchpad.net/livecd-rootfs/tree/live-build/auto/config#n1006

this isn't affecting launchpad-buildd because of their specific networking setup. since systemd packaged resolved with it before kinetic, it feels safe to me to add in the split out package to the list in live-build/auto/config

I'm checking with cjwatson on that assertion though, as we don't want to introduce issues for launchpad.

Revision history for this message
Callahan Kovacs (mr-cal) wrote :

Thanks for looking into it further and the quick response!

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

Any updates on this?

Revision history for this message
John Chittum (jchittum) wrote :

not yet. making changes to buildd can be a bit of dangerous business. it could affect the launchpad build system, which means breaking all builds. it should be safe, but i'm not even sure how we can test the assertion right now (and Colin is very busy with another $BIG_THING)

internally, i've proposed a group of us getting together again about the best path forward for snapcraft. i personally have some worries about `buildd` being used outside of launchpad builds, since it was originally very specifically designed for that purpose. i know we talked about big package diffs between minimal and buildd, but also buildd has a lot of very specific configuration that, if changed, could break launchpad.

Changed in cloud-images:
status: New → Confirmed
Revision history for this message
John Chittum (jchittum) wrote :

that being said, i've added `livecd-rootfs`, as that is where any of the buildd changes must occur. it is an open source package, so anyone can open an MP. I also can't drive the merge and package release of `livecd-rootfs`. we'll need to work with a core-dev for that part.

Revision history for this message
Steve Langasek (vorlon) wrote :

I do think this is an oversight that systemd-resolved is not included in the buildd image after the split, that just happened to work in Launchpad. I am +1 for getting the package added back via livecd-rootfs.

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in livecd-rootfs (Ubuntu):
status: New → Confirmed
Revision history for this message
Callahan Kovacs (mr-cal) wrote :

Hey @jchittum, any update or timeline on this? Thanks

summary: - buildd daily kinetic and lunar image missing systemd-resolved
+ buildd daily kinetic, lunar, and mantic image missing systemd-resolved
Revision history for this message
John Chittum (jchittum) wrote :

Sorry, really busy summer. We've prioritized this fix for the next pulse, so hopefully we'll have this in and tested in the next 3-4 weeks.

Simon Poirier (simpoir)
Changed in cloud-images:
assignee: nobody → Simon Poirier (simpoir)
status: Confirmed → In Progress
Simon Poirier (simpoir)
Changed in livecd-rootfs (Ubuntu Lunar):
status: New → Confirmed
Simon Poirier (simpoir)
description: updated
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.