[Bug 2077344] Re: upgrades should change snap-store and firmware-updater tracking

Nick Rosbrook 2077344 at bugs.launchpad.net
Thu Aug 22 17:07:17 UTC 2024


I have verified the the fix using ubuntu-release-upgrader 1:24.04.22
from noble-proposed:

nr at clean-jammy-amd64:~$ snap info snap-store | grep "^tracking:"
tracking:     latest/stable/ubuntu-22.04
nr at clean-jammy-amd64:~$ snap info firmware-updater | grep "^tracking:"
nr at clean-jammy-amd64:~$ do-release-upgrade --proposed

[...SNIP...]

Processing snap replacements

refreshing snap core22

installing snap firmware-updater

refreshing snap gtk-common-themes

refreshing snap snap-store

refreshing snap snapd-desktop-integration

refreshing snap firefox

removing snap gnome-3-38-2004

[...SNIP...]

System upgrade is complete.

Restart required

To finish the upgrade, a restart is required.
If you select 'y' the system will be restarted.

Continue [yN] N
nr at clean-jammy-amd64:~$ snap info firmware-updater | grep "^tracking:"
tracking:     1/stable/ubuntu-24.04
nr at clean-jammy-amd64:~$ snap info snap-store | grep "^tracking:"
tracking:     2/stable/ubuntu-24.04

Then, another upgrade with snap-store tracking something different
before the upgrade:

nr at clean-jammy-amd64:~$ sudo snap refresh --channel=preview/beta snap-store
[sudo] password for nr:
snap-store (preview/candidate) 0.2.7-alpha from Canonical✓ refreshed
Channel preview/beta for snap-store is closed; temporarily forwarding to preview/candidate.
nr at clean-jammy-amd64:~$ snap info snap-store | grep "^tracking:"
tracking:     preview/beta
nr at clean-jammy-amd64:~$ snap info firmware-updater | grep "^tracking:"
nr at clean-jammy-amd64:~$ do-release-upgrade --proposed

[...SNIP...]

Processing snap replacements

refreshing snap core22

installing snap firmware-updater

refreshing snap gtk-common-themes

refreshing snap snap-store

snap-store is now tracking 2/stable/ubuntu-24.04

If needed, you can revert to your previous revision with:

$ snap revert snap-store

To continue please press [ENTER]


refreshing snap snapd-desktop-integration

refreshing snap firefox

refreshing snap gnome-3-38-2004

[...SNIP...]

System upgrade is complete.

Restart required

To finish the upgrade, a restart is required.
If you select 'y' the system will be restarted.

Continue [yN] N
nr at clean-jammy-amd64:~$ snap info firmware-updater | grep "^tracking:"
tracking:     1/stable/ubuntu-24.04
nr at clean-jammy-amd64:~$ snap info snap-store | grep "^tracking:"
tracking:     2/stable/ubuntu-24.04

This time, as expected, I got a message explaining the snap tracking was
being force-changed.

** Tags removed: verification-needed verification-needed-noble
** Tags added: verification-done verification-done-noble

-- 
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/2077344

Title:
  upgrades should change snap-store and firmware-updater tracking

Status in ubuntu-release-upgrader package in Ubuntu:
  Triaged
Status in ubuntu-release-upgrader source package in Noble:
  Fix Committed

Bug description:
  [Impact]

  We would like 24.04 LTS systems and newer to have snap-store track
  2/stable, and firmware-updater track 1/stable.

  ubuntu-release-upgrader has a "deb2snap" mechanism capable of doing
  this.

  [Test Plan]

  1. On Jammy, see that snap-store and firmware-updater are not tracking
  2/stable and 1/stable, respectively:

  $ snap info snap-store | grep "^tracking:"
  $ snap info firmware-updater | grep "^tracking:"

  Perform an upgrade from Jammy to Noble:

  $ do-release-upgrade -d

  After the upgrade, confirm that snap-store and firmware-updater are
  tracking the new channels:

  $ snap info snap-store | grep "^tracking:"
  $ snap info firmware-updater | grep "^tracking:"

  In this case, since the snap tracking was not previously modified, no
  informational message should be displayed to the user.

  2. Do the same test as before, but before the upgrade, switch snap-
  store to something like beta/stable so that a notification is
  displayed about switching the snap tracking.

  [Where problems could occur]

  The patch is editing deb2snap.json entries. Typos would lead to a
  failure in changing the trackings. We should also be certain that
  these are the correct trackings for these snaps.

  There is also some new logic added to allow "force switching" a snap's
  tracking channel. This logic should only be in effect when a deb2snap
  entry explicitly asks for it. Nonetheless, issues in the
  implementation would effect the deb2snap logic during the upgrade.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2077344/+subscriptions




More information about the foundations-bugs mailing list