[Bug 1866159] Re: SRU: Use a snap cohort key for consistent parallel builds in Xenial
Robert C Jennings
1866159 at bugs.launchpad.net
Thu Mar 19 11:04:16 UTC 2020
This has been verified using 2.408.58 in xenial-proposed.
I have built the qcow2 image target of the ubuntu-cpc project with and
without a cohort key.
I added the following to the qcow2 binary hook:
. /build/config/binary
mkdir qcowmp
mount_disk_image binary/boot/disk-uefi.ext4 qcowmp
snap_preseed qcowmp/ lxd
umount_disk_image qcowmp
rmdir qcowmp
Booting the resulting livecd.ubuntu-cpc.uefi1.img which came out of the
builds with/without the snap cohort key shows that both boot and
'systemctl is-system-running' gets to 'running' (no failed units). The
output of 'snap list' shows lxd and core as expected and 'snap info
--verbose' run against each of the snaps in either image confirms that
the cohort key did not persist into the resulting image as expected.
Based on this testing I will mark the bug as verification-done.
** Tags removed: verification-needed verification-needed-xenial
** Tags added: verification-done verification-done-xenial
--
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/1866159
Title:
SRU: Use a snap cohort key for consistent parallel builds in Xenial
Status in livecd-rootfs package in Ubuntu:
Fix Released
Status in livecd-rootfs source package in Xenial:
Fix Committed
Bug description:
[Impact]
We have snap cohort key support in bionic and later since bug
#1864252. Adding cohort support in Xenial gives us the ability to
create images in parallel LP builds with consistent results across all
suites.
[Test Case]
* Build an image which contains snaps with and without a cohort key
specified and inspect the image to ensure that the expected snaps are
preseeded.
* Ensure that the snaps in the image are not attached to the cohort
key once installed on first boot with 'snap info --verbose $snap_name'
[Regression Potential]
* For images built without a cohort key specified we could fail the
snap download command, and the build, if this were not tested (it has
been)
[Other Info]
* none
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1866159/+subscriptions
More information about the foundations-bugs
mailing list