[Bug 1922297] Re: 20.10 to 21.04: snap does not upgrade channel
Brian Murray
1922297 at bugs.launchpad.net
Wed Apr 21 18:03:45 UTC 2021
I tested the latest version of the release-upgrader in -proposed for
Bionic and the gtk-common-themes snap is tracking
latest/stable/ubuntu-18.04.
bdmurray at clean-xenial-amd64:~$ snap list
Name Version Rev Tracking Publisher Notes
core18 20210309 1997 latest/stable canonical✓ base
gnome-3-34-1804 0+git.3556cb3 66 latest/stable/… canonical✓ -
gnome-calculator 3.38.2+git3.1d166209 884 latest/stable/… canonical✓ -
gnome-characters v3.34.0+git30.16311a5 708 latest/stable/… canonical✓ -
gnome-logs 3.36.0 103 latest/stable/… canonical✓ -
gnome-system-monitor 3.38.0-17-g38c1ce1d62 157 latest/stable/… canonical✓ -
gtk-common-themes 0.1-50-gf7627e4 1514 latest/stable/… canonical✓ -
snapd 2.49.2 11588 latest/stable canonical✓ snapd
bdmurray at clean-xenial-amd64:~$ snap info gtk-common-themes
name: gtk-common-themes
summary: All the (common) themes
publisher: Canonical✓
store-url: https://snapcraft.io/gtk-common-themes
contact: https://gitlab.gnome.org/Community/Ubuntu/gtk-common-themes/issues
license: unset
description: |
A snap that exports the GTK and icon themes used on various Linux distros.
snap-id: jZLfBRzf1cYlYysIjD2bwSzNtngY0qit
tracking: latest/stable/ubuntu-18.04
refresh-date: today at 10:56 PDT
channels:
latest/stable: 0.1-50-gf7627e4 2020-11-27 (1514) 67MB -
latest/candidate: 0.1-52-gb92ac40 2021-04-21 (1515) 68MB -
latest/beta: 0.1-52-gb92ac40 2021-04-21 (1515) 68MB -
latest/edge: 0.1 2020-04-17 (1503) 58MB -
installed: 0.1-50-gf7627e4 (1514) 67MB -
bdmurray at clean-xenial-amd64:~$ snap info gnome-3-34-1804
name: gnome-3-34-1804
summary: Shared GNOME 3.34 Ubuntu stack
publisher: Canonical✓
store-url: https://snapcraft.io/gnome-3-34-1804
license: unset
description: |
This snap includes a GNOME 3.34 stack (the base libraries and desktop
integration components) and shares it through the content interface.
snap-id: TIM9dBBJEceEjMpwaB3fiuZ3AdSykgDO
tracking: latest/stable/ubuntu-18.04
...
bdmurray at clean-xenial-amd64:~$ grep "release-upgrader version" /var/log/dist-upgrade/main.log
2021-04-21 10:02:47,348 INFO release-upgrader version '18.04.44' started
--
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:
Fix Committed
Status in ubuntu-release-upgrader source package in Focal:
Fix Committed
Status in ubuntu-release-upgrader source package in Groovy:
Fix Committed
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.04 GCE image
2. snap info google-cloud-sdk --> "latest/stable/ubuntu-20.04"
3. do-release-upgrade
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-20.10"
Ubuntu (18.04, 20.04) Desktop test (regression test)
----------------------------------------------------
1. Create an Ubuntu 20.04 installation (w/ ubuntu-desktop)
2. Run 'do-release-upgrade -p' to upgrade to Groovy
3. Ensure that the gtk-common-themes (and gnome-3-34-1804) snap is now tracking "latest/stable/ubuntu-20.10" via snap-info
With the version from -proposed all installed snaps which track
"latest/stable/ubuntu-20.04" will also be upgraded to
"latest/stable/ubuntu-20.10".
Ubuntu (16.04) Desktop test plan (new feature)
----------------------------------------------
1. Create an Ubuntu 16.04 installation w/ ubuntu-desktop
2. Run 'do-release-upgrade' to upgrade to Ubuntu 18.04
3. Run snap list and verify that no snaps are installed
With the version of the release upgrader in -proposed you will have a
set of snaps installed which are equivalent to the snaps that are
preseeded in Ubuntu 18.04. That list of snaps is:
gnome-3-34-1804, gnome-calculator, gnome-characters, gnome-logs,
gnome-system-monitor, and gtk-common-themes.
[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