[Bug 2036725] Re: LXD snap not being installed from the right channel when running unminimize
Philip Roche
2036725 at bugs.launchpad.net
Fri Jan 5 10:33:32 UTC 2024
As per https://bugs.launchpad.net/cloud-images/+bug/1996489/comments/18
> After some investigation following upcoming changes to LXD and seed the Jammy proposal WRT snap install @ https://code.launchpad.net/~utkarsh/livecd-rootfs/+git/livecd-rootfs/+merge/452742 is not correct as for LTS we need to install targeting a specific LTS track and channel.
>
> Focal has track/channel set to `4.0/stable/ubuntu-20.04` in seed @ https://ubuntu-archive-team.ubuntu.com/seeds/ubuntu.focal/server
> Groovy has no channel set @ https://git.launchpad.net/~ubuntu-core-dev/ubuntu-seeds/+git/ubuntu/tree/server?h=groovy#n59
> Jammy has track/channel set to `5.0/stable/ubuntu-22.04` in seed @ https://ubuntu-archive-team.ubuntu.com/seeds/ubuntu.jammy/server
> Impish has no channel set @ https://git.launchpad.net/~ubuntu-core-dev/ubuntu-seeds/+git/ubuntu/tree/server?h=impish#n59
>
> As such I propose we block this jammy SRU until this is resolved.
and
> Comment from @sdeziel in Jammy MP https://code.launchpad.net/~utkarsh/livecd-rootfs/+git/livecd-rootfs/+merge/452742 makes a lot of sense for the unminimzine part related to snap installs.
>
>> Since `lxd-installer` will need to be modified to pull the snap from the right channel when we know it, it might be best to rely on `lxd-installer` to do the right thing.
>>
>> As such, I'd propose to simply run the `lxd-installer` prior to purging it.
I will mark this as block-proposed-jammy until resolved.
** Tags added: block-proposed-jammy
--
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/2036725
Title:
LXD snap not being installed from the right channel when running
unminimize
Status in livecd-rootfs package in Ubuntu:
Fix Released
Status in livecd-rootfs source package in Jammy:
Fix Committed
Status in livecd-rootfs source package in Lunar:
Fix Released
Bug description:
[Impact]
========
There's a step in `unminimize` where it installs the LXD snap. The
problem is that it doesn't mention any channel where to install it
from. So often it happens that we have the LXD snap on 20.04 or 22.04
from the latest/stable channel (as that's the default!).
However, we should be installing this from stable/ubuntu-20.04 or
stable/ubuntu-22.04 (or equivalent) channel.
[Test Plan]
===========
$ lxc launch ubuntu-minimal-daily:jammy jtemp --vm
$ lxc shell jtemp
# apt update
# unminimize
# snap list | grep 'lxd' | awk '{print $4}'
You'll see that it's NOT from stable/ubuntu-$VERSION, whereas it
should be. ;)
[Where Problems Could Occur]
=============================
There's very smol room for error especially when the patch only
introduces the following to the snap install call:
--channel="stable/ubuntu-$VERSION_ID"
But things might behave differently IFF someone has tampered their
/etc/os-release OR/AND fiddled with the unminimize script to do a
different thing. :)
[OG Bug Report]
===============
In the past, when running unminimize, we'd directly do:
snap install lxd
(cf: https://git.launchpad.net/livecd-rootfs/tree/live-build/auto/build#n322)
which defaults to the latest/stable channel. However, whilst working
on enhancing unminimize, it was observed that we install this snap
from the stable/ubuntu-<version> channel instead.
This was also noted as a failure when running the CTF tests:
`lxd installed from latest/stable, not stable/ubuntu-23.10`
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/2036725/+subscriptions
More information about the foundations-bugs
mailing list