Snapd 2.59 prepare-image not fetching assertions on arm64
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
In Progress
|
Undecided
|
Samuele Pedroni |
Bug Description
Somewhere between snapd 2.58.3 and snapd 2.59 there is a regression introduced regarding fetching assertions/
In the following logs I have used these steps to reproduce this issue:
1) create two identical chroots, preseedjawn and preseedjawn2
2) run snap prepare-image from version 2.58.3 on preseedjawn
3) run snap prepare-image from version 2.59 on preseedjawn2
4) compare the contents of the <chroot>
```
ubuntu@raspi:~$ snap info snapd
name: snapd
summary: Daemon and tooling that enable snap packages
publisher: Canonical✓
store-url: https:/
license: GPL-3.0
description: |
Install, configure, refresh and remove snap packages. Snaps are
'universal' packages that work across many different Linux systems,
enabling secure distribution of the latest apps and utilities for
cloud, servers, desktops and the internet of things.
Start with 'snap list' to see installed snaps.
type: snapd
snap-id: PMrrV4ml8uWuEUD
tracking: latest/stable
refresh-date: 2 days ago, at 18:43 UTC
channels:
latest/stable: 2.58.3 2023-03-20 (18600) 45MB -
latest/candidate: 2.58.3 2023-03-07 (18600) 45MB -
latest/beta: 2.59 2023-03-10 (18748) 48MB -
latest/edge: 2.59+git709.
installed: 2.58.3 (18600) 45MB snapd
ubuntu@raspi:~$ sudo /snap/snapd/
Fetching firefox
firefox 2% 7.70MB/s 28.9sFetching bare
Fetching core22
Fetching snapd
Fetching snap-store
Fetching gtk-common-themes
Fetching gnome-42-2204
Fetching snapd-desktop-
ubuntu@raspi:~$ ls preseedjawn/
16,3wdHCAVyZEmY
16,EISPgh06mRh1
16,IrwRHakqtzhF
16,PMrrV4ml8uWu
16,amcUKQILKXHH
16,gjf3IPXoRiip
16,jZLfBRzf1cYl
16,lATO8HzwVvrA
49jadSjo8x8qkrb
62rRwo_
BWDEoaqyr25nF5S
OgeoZuqQpVvSr9e
SI2bNbgfn98zy_
_e4-wu7p76lfZfn
d-JcZF9nD9eBw7b
ecx0ulPGLHJUbE3
generic.account
hpKwDJNvb0bpBjp
model
olZfDYKrkDShlUI
ssqXT1-
ubuntu@raspi:~$ snap info snapd
name: snapd
summary: Daemon and tooling that enable snap packages
publisher: Canonical✓
store-url: https:/
license: GPL-3.0
description: |
Install, configure, refresh and remove snap packages. Snaps are
'universal' packages that work across many different Linux systems,
enabling secure distribution of the latest apps and utilities for
cloud, servers, desktops and the internet of things.
Start with 'snap list' to see installed snaps.
type: snapd
snap-id: PMrrV4ml8uWuEUD
tracking: latest/beta
refresh-date: today at 21:09 UTC
channels:
latest/stable: 2.58.3 2023-03-20 (18600) 45MB -
latest/candidate: 2.58.3 2023-03-07 (18600) 45MB -
latest/beta: 2.59 2023-03-10 (18748) 48MB -
latest/edge: 2.59+git709.
installed: 2.59 (18748) 48MB snapd
ubuntu@raspi:~$ sudo /snap/snapd/
Fetching firefox ({2449})
Fetching bare ({5})
Fetching core22 ({548})
Fetching snapd ({18600})
Fetching snap-store ({937})
Fetching gtk-common-themes ({1535})
Fetching gnome-42-2204 ({66})
Fetching snapd-desktop-
ubuntu@raspi:~$ ls preseedjawn2/
d-JcZF9nD9eBw7b
```
As you can see, with version 2.59 many of the files that should be in assertions are missing. The contents of my model are the genericClassicModel from snapd's asserts/
what's the content of test-classic.model used here?