[Bug 1922297] Re: 20.10 to 21.04: snap does not upgrade channel
Launchpad Bug Tracker
1922297 at bugs.launchpad.net
Tue Apr 13 14:54:18 UTC 2021
This bug was fixed in the package ubuntu-release-upgrader - 1:21.04.8
---------------
ubuntu-release-upgrader (1:21.04.8) hirsute; urgency=medium
* DistUpgrade/DistUpgradeQuirks.py: Modify the deb-to-snap quirk to also
upgrade preseeded snaps to latest/stable/ubuntu-$version for their new
release. (LP: #1922297)
* tests/test_quirks.py: update the snap tests for the above changes.
* Run pre-build.sh.
-- Brian Murray <brian at ubuntu.com> Mon, 12 Apr 2021 15:33:41 -0700
** Changed in: ubuntu-release-upgrader (Ubuntu Hirsute)
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1922297
Title:
20.10 to 21.04: snap does not upgrade channel
Status in ubuntu-release-upgrader package in Ubuntu:
Fix Released
Status in ubuntu-release-upgrader source package in Bionic:
New
Status in ubuntu-release-upgrader source package in Focal:
New
Status in ubuntu-release-upgrader source package in Groovy:
New
Status in ubuntu-release-upgrader source package in Hirsute:
Fix Released
Bug description:
[Impact]
Snaps tracking a stable/ubuntu-$version (other than gnome-3-34-1804
and gtk-common-themes) are not upgraded during the release upgrade
process.
Per LP: #1827951 and LP: #1748581, it would appear that if a snap is
tracking a release channel (e.g. latest/stable/ubuntu-20.10), during a
do-release-upgrade the snap channel should update to the new release.
Testing of a Google cloud image, from 20.10 to 21.04 the google-cloud-
sdk does not get updated.
# Expected result
After a do-release-upgrade, the snap channel for google-cloud-sdk
should be updated from "latest/stable/ubuntu-20.10" to
"latest/stable/ubuntu-21.04".
# Actual result
After install, the snap continues to track
"latest/stable/ubuntu-20.10".
[Test Plan]
GCE image test
1. Boot 20.10 GCE image
2. snap info google-cloud-sdk --> "latest/stable/ubuntu-20.10"
3. do-release-upgrade -d
4. accept defaults and reboot
5. snap info google-cloud-sdk --> "latest/stable/ubuntu-20.10"
With the version from -proposed the snap will be tracking
"latest/stable/ubuntu-21.04"
Ubuntu Desktop test (regression test)
1. Create an Ubuntu 20.10 installation (w/ ubuntu-desktop)
2. Run 'do-release-upgrade -d' to upgrade to Hirsute
3. Ensure that the gtk-common-themes (and gnome-3-34-1804) snap is now tracking "latest/stable/ubuntu-21.04" via snap-info
With the version from -proposed the snaps will also be upgraded to
"latest/stable/ubuntu-21.04".
[Where Problems could occur]
This could regress the upgrading of snaps for Ubuntu desktop images but we've identified that and created a regression test for that scenario.
# Logs
main.log https://paste.ubuntu.com/p/kbSvM5JMzP/
screenlog.0 https://paste.ubuntu.com/p/h5kvtcX5Z6/
apt-term.log https://paste.ubuntu.com/p/gNJVzbtT4Z/
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1922297/+subscriptions
More information about the foundations-bugs
mailing list