Core18 retagged version?

Am I going crazy or snap is retagging versions? I have a cluster which should be identical, but I see differences in snap contents.

$ diff -u <(cat /etc/systemd/system/snap-core18-2066.mount) <(ssh qbs02 cat /etc/systemd/system/snap-core18-2066.mount)
--- /dev/fd/63  2021-05-19 10:59:01.871806632 +0200
+++ /dev/fd/62  2021-05-19 10:59:01.871806632 +0200
@@ -1,12 +1,13 @@
 [Unit]
 Description=Mount unit for core18, revision 2066
 Before=snapd.service
+After=zfs-mount.service

 [Mount]
 What=/var/lib/snapd/snaps/core18_2066.snap
 Where=/snap/core18/2066
 Type=squashfs
-Options=nodev,ro,x-gdu.hide
+Options=nodev,ro,x-gdu.hide,x-gvfs-hide
 LazyUnmount=yes

     [Install]
    support@qbs01:~$ snap list core18
    Name    Version   Rev   Tracking       Publisher   Notes
    core18  20210507  2066  latest/stable  canonicalāœ“  base
    support@qbs01:~$ ssh qbs02 snap list core18
    agent key RSA SHA256:L+klV2/9WilhBj2GzlfWYfdDJTSx2IJQpZ8VFd0oglo returned incorrect signature type
    Name    Version   Rev   Tracking       Publisher   Notes
    core18  20210507  2066  latest/stable  canonical*  base
    support@qbs01:~$

better try snap info core18|grep ^installed ā€¦ base snaps (and i think kernels too) are using phased updates so there can be some discrepancy in the info output if one machine already got the file but the other did not ā€¦

The mount units are generated by snapd, so the two systems probably have different versions of the snapd or core snaps installed. The change in question appears to be from these PRs:


they donā€™t:

support@qbs01:~$ snap list
Name    Version   Rev    Tracking       Publisher   Notes
core    16-2.50   11081  latest/stable  canonicalāœ“  core
core18  20210507  2066   latest/stable  canonicalāœ“  base
lxd     4.14      20400  latest/stable  canonicalāœ“  -
support@qbs01:~$ ssh qbs02 snap list
Name    Version   Rev    Tracking       Publisher   Notes
core    16-2.50   11081  latest/stable  canonical*  core
core18  20210507  2066   latest/stable  canonical*  base
lxd     4.14      20400  latest/stable  canonical*  -

snap info core18 is also identical

support@qbs01:~$ snap info core18
name:      core18
summary:   Runtime environment based on Ubuntu 18.04
publisher: Canonicalāœ“
store-url: https://snapcraft.io/core18
license:   unset
description: |
  The base snap based on the Ubuntu 18.04 release.
type:         base
snap-id:      CSO04Jhav2yK0uz97cr0ipQRyqg0qQL6
tracking:     latest/stable
refresh-date: yesterday at 10:34 CEST
channels:
  latest/stable:    20210507 2021-05-19 (2066) 58MB -
  latest/candidate: 20210507 2021-05-14 (2066) 58MB -
  latest/beta:      20210507 2021-05-12 (2066) 58MB -
  latest/edge:      20210507 2021-05-07 (2066) 58MB -
installed:          20210507            (2066) 58MB base
support@qbs01:~$ ssh qbs02 snap info core18
agent key RSA SHA256:L+klV2/9WilhBj2GzlfWYfdDJTSx2IJQpZ8VFd0oglo returned incorrect signature type
name:      core18
summary:   Runtime environment based on Ubuntu 18.04
publisher: Canonical*
store-url: https://snapcraft.io/core18
license:   unset
description: |
  The base snap based on the Ubuntu 18.04 release.
type:         base
snap-id:      CSO04Jhav2yK0uz97cr0ipQRyqg0qQL6
tracking:     latest/stable
refresh-date: today at 09:25 CEST
channels:
  latest/stable:    20210507 2021-05-19 (2066) 58MB -
  latest/candidate: 20210507 2021-05-14 (2066) 58MB -
  latest/beta:      20210507 2021-05-12 (2066) 58MB -
  latest/edge:      20210507 2021-05-07 (2066) 58MB -
installed:          20210507            (2066) 58MB base

Out of interest, are the refresh-date values in snap info for the core and core18 snaps ordered the same way on the two machines?

If the mount unit wasnā€™t rewritten after upgrading snapd, then perhaps the difference is down to whether core18 was updated before or after core.

Yeah, looks like they are installed in different order. Isnā€™t this a bug then, especially since I have very little control when will what be installed?

support@qbs01:~$ snap info --abs-time core core18 | fgrep refresh-date
refresh-date: 2021-05-18T10:34:36+02:00
refresh-date: 2021-05-18T10:34:24+02:00
support@qbs01:~$ ssh qbs02 snap info --abs-time core core18 | fgrep refresh-date
refresh-date: 2021-05-16T11:45:44+02:00
refresh-date: 2021-05-19T09:25:28+02:00
1 Like

definietly

opened https://bugs.launchpad.net/snapcraft/+bug/1928982