2022-03-14 21:55:10 |
Stéphane Graber |
description |
The "lxd" transitional deb-to-snap package currently offers "3.0", "4.0" and "latest" as track options with "4.0" being the recommended and default one.
Starting with LXD 5.0, it will no longer be possible to upgrade from LXD 3.0 without first going through LXD 4.0. As a result, the deb-to-snap logic in focal should be updated to remove "latest" as an option.
Instead users will have to pick between "3.0" or "4.0" and can then upgrade afterwards by switching snap track.
The impact from this should be minimal as most users have already gone through this process and those who haven't are likely to go with the default option anyway (4.0). |
The "lxd" transitional deb-to-snap package currently offers "3.0", "4.0" and "latest" as track options with "4.0" being the recommended and default one.
Starting with LXD 5.0, it will no longer be possible to upgrade from LXD 3.0 without first going through LXD 4.0. As a result, the deb-to-snap logic in focal should be updated to remove "latest" as an option.
Instead users will have to pick between "3.0" or "4.0" and can then upgrade afterwards by switching snap track.
The impact from this should be minimal as most users have already gone through this process and those who haven't are likely to go with the default option anyway (4.0).
[Impact]
LXD 5.0 (to be released end of March) will break the upgrade path when coming from a release prior to 4.0.0.
The deb-to-snap logic in Ubuntu 20.04 currently offers "latest" as a track for users switching to the snap (from 3.0 deb). This option will start breaking once 5.0 is released and should be removed from the upgrader prior to that.
The users will lose the option to go straight to "latest" during the deb-to-snap process instead being pushed towards "4.0" which they can then upgrade from after the fact using "snap refresh".
The "4.0" track was already the default and used by virtually all users to date, so the change is unlikely to be particularly visible.
[Test plan]
Get an Ubuntu 18.04 system, run "lxd init --auto" to initialize LXD, then upgrade to 20.04 and confirm that the debconf prompt defaults to "4.0" and does not offer "latest" as a track option.
[Where problems could occur]
If this SRU isn't in focal-updates by the time LXD 5.0 releases to latest/stable (first week of April), some users may chose "latest" during the upgrade which will fail and fail the LTS-to-LTS process giving them a hard to recover system. |
|