Build buildd images

Bug #1815251 reported by Colin Watson on 2019-02-08
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
livecd-rootfs (Ubuntu)
High
Colin Watson
Xenial
High
Colin Watson
Bionic
High
Colin Watson

Bug Description

I've been working for some time on having livecd-rootfs be able to build buildd chroots. This has a few immediate advantages: it makes the process of building those chroots more transparent and reproducible, reduces the pressure on the single person currently responsible for managing chroots across all architectures, and allows for a less frustrating chroot update process since I added a facility to Launchpad last year for updating chroots from a livefs build which will be a fast API operation rather than something requiring uploading several hundred megabytes to Launchpad and frequently timing out. I expect that in the future it can also allow us to have separate chroots for e.g. -updates at relatively low cost, which will make builds for stable series substantially faster as they won't need to apply a large and growing set of upgrades at the start of nearly every build.

We also have a more recent requirement to build LXD images in order that we can converge with the images used by snapcraft, and so that we can use them directly in Launchpad livefs and snap builds rather than having to convert chroots on the fly. Fortunately it's quite easy to convert buildd chroots into images usable by LXD, and for now I've simply translated the approach currently used in launchpad-buildd to do the conversion on the fly.

Particularly in order to assist with snapcraft convergence but also so that we can improve build performance for the heavily-used LTS series, I'd like to backport this support to xenial and bionic. Most of it has been in disco for a while now, with some recent tweaks.

[Test Case] We'll want to run livefs builds in Launchpad with appropriate configuration, similar to https://launchpad.net/~ubuntu-cdimage/+livefs/ubuntu/disco/buildd, and probably then test on dogfood or similar before unleashing them on production.

[Regression Potential] The patch is substantially just adding another subproject type so I'm not too concerned, but of course we should check that a couple of other build types still work.

Related branches

Colin Watson (cjwatson) on 2019-02-08
Changed in livecd-rootfs (Ubuntu):
status: New → Fix Released
importance: Undecided → High
assignee: nobody → Colin Watson (cjwatson)
Changed in livecd-rootfs (Ubuntu Xenial):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Colin Watson (cjwatson)
Changed in livecd-rootfs (Ubuntu Bionic):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Colin Watson (cjwatson)

Hello Colin, 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.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 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.

Changed in livecd-rootfs (Ubuntu Bionic):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-bionic
Adam Conrad (adconrad) wrote :

Hello Colin, 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.43 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 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
Adam Conrad (adconrad) wrote :

Hello Colin, 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.19 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 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.

Adam Conrad (adconrad) wrote :

Hello Colin, 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.44 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 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.

Colin Watson (cjwatson) wrote :

This looks reasonable. For bionic, dogfood doesn't have that yet so for the time being I could only test that non-buildd livefs builds still work. For xenial, I was able to set the result of an amd64 build as the base LXD image for xenial-updates on dogfood and use it to build a snap.

tags: added: verification-done verification-done-bionic verification-done-xenial
removed: verification-needed verification-needed-bionic verification-needed-xenial

The verification of the Stable Release Update for livecd-rootfs has completed successfully and the package has now been 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.

Launchpad Janitor (janitor) wrote :

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

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

  * Make sure buildd images have a /usr/sbin/policy-rc.d symlink
    (LP: #1815251).

 -- Colin Watson <email address hidden> Mon, 18 Feb 2019 16:05:32 +0000

Changed in livecd-rootfs (Ubuntu Xenial):
status: Fix Committed → Fix Released
Launchpad Janitor (janitor) wrote :

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

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

  * Make sure buildd images have a /usr/sbin/policy-rc.d symlink
    (LP: #1815251).

 -- Colin Watson <email address hidden> Mon, 18 Feb 2019 16:03:46 +0000

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

Other bug subscribers