Nested LXD is broken with snapd 2.71+ubuntu22.04
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| snapd |
Fix Committed
|
Undecided
|
Maciej Borzecki | ||
| apparmor (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
| snapd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
| Jammy |
Fix Released
|
Undecided
|
Unassigned | ||
| Noble |
Fix Released
|
Undecided
|
Unassigned | ||
| Plucky |
Fix Released
|
Undecided
|
Unassigned | ||
| Questing |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
[SRU] 2.73: https:/
[ Impact ]
Lastest snapd breaks LXD nested in a LXD container due to the daemon.activate script in lxd failing during install because of recent apparmor behavior changes
that means snap-confine apparmor profile prevents access to passed fd associated with standard out used by the script.
Only jammy is affected (go < 1.21)
See https:/
[ Test Plan ]
1. Reproduce with snapd deb < 2.73
- Use hwe kernel, 6.14.0-33-generic
- install lxd: snap install --channel=
- Expect: snap.lxd.
2. Prove fixed with snapd deb 2.73
- Use hwe kernel, 6.14.0-33-generic
- install lxd: snap install --channel=
- Expect: snap.lxd.
---original---
The new snapd deb in -proposed for Ubuntu 22.04 breaks running LXD nested in a LXD container resulting in
root@j0:~# sudo snap install --channel=
error: cannot perform the following tasks:
- Start snap "lxd" (35624) services (systemctl command [start snap.lxd.
Job for snap.lxd.
See "systemctl status snap.lxd.
Can be reproduced with
$ multipass launch noble --name test -d 10G
test$ snap install --channel=
test$ sudo lxd init --auto
test$ lxc launch ubuntu:j j0 -c security.
test$ lxc shell j0
j0$ sudo snap remove --purge lxd
j0$ cat <<EOF >/etc/apt/
# Enable Ubuntu proposed archive
deb http://
EOF
j0$ apt update ; apt upgrade
j0$ snap install --channel=
We only see this on noble with kernel 6.14 when running Ubuntu 22.04 containers. Running the host with jammy and older kernels does not show the same problem.
| description: | updated |
| Thomas Parrott (tomparrott) wrote : | #1 |
| Zygmunt Krynicki (zyga) wrote : | #2 |
This is possibly a duplicate of https:/
| Maciej Borzecki (maciek-borzecki) wrote : | #3 |
Does not seem to be a duplicate of LP#2127224
I've attempted to reproduce the problem.
It did not fail with 6.8 kernel, confirmed to be using snapd from the deb.
It did fail with the hwe kernel, 6.14.0-33-generic. Confirmed to be using snapd from the deb. LXD installation fails:
```
root@j0:~# snap install --channel=
error: cannot perform the following tasks:
- Start snap "lxd" (35624) services (systemctl command [start snap.lxd.
Job for snap.lxd.
See "systemctl status snap.lxd.
```
but attempting to install and run the hello snap works:
```
root@j0:~# snap install hello
hello 2.10 from Canonical✓ installed
root@j0:~# hello
Hello, world!
root@j0:~# su - ubuntu
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
ubuntu@j0:~$ hello
Hello, world!
ubuntu@j0:~$
```
snapd version:
```
root@j0:~# snap version
snap 2.71+ubuntu22.04
snapd 2.71+ubuntu22.04
series 16
ubuntu 22.04
kernel 6.14.0-33-generic
```
Next I tried again with snapd 2.71 from the snap:
```
root@j0:~# dpkg -l snapd
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii snapd 2.68.5+
root@j0:~# snap version
snap 2.71
snapd 2.71
series 16
ubuntu 22.04
kernel 6.14.0-33-generic
```
and I was able to install lxd.
There is however a difference in apparmor version used. The deb will use:
```
+++-===
ii apparmor 3.0.4-2ubuntu2.4 amd64 user-space parser utility for AppArmor
```
while snapd from a snap will use a bundled version:
```
root@j0:~# /snap/snapd/
AppArmor parser version 4.0.2
Copyright (C) 1999-2008 Novell Inc.
Copyright 2009-2018 Canonical Ltd.
```
| Maciej Borzecki (maciek-borzecki) wrote : | #4 |
Whit help from JJ the problem was identified as an issue with inheriting fds from systemd-journald. It showed up in dmesg like so:
[ 1544.966292] audit: type=1400 audit(176008787
[ 1544.966298] audit: type=1400 audit(176008787
[ 1544.966300] audit: type=1400 audit(176008787
Explicitlly allowing access to the stdout inhertied from systemd seems to 'fix' the problem. Specifically this line added to snap-confine deb apparmor profile makes it work again:
/run/
| Maciej Borzecki (maciek-borzecki) wrote : | #5 |
Tracked internally: https:/
PR: https:/
| Changed in snapd: | |
| status: | New → In Progress |
| assignee: | nobody → Maciej Borzecki (maciek-borzecki) |
| Maciej Borzecki (maciek-borzecki) wrote : | #6 |
We've spent more time looking at what is failing. Specifically, we've updated the snapd snap to 2.72, so the configuration at the end was:
- snapd deb 2.71+ubuntu22.04
- snapd snap 2.72
- 6.14.0-33-generic
Attempting to enable/install lxd snap was failing the same way.
We used forkstat and were able to identify that the sandbox setup actually completed, so the failure was really occurring in the daemon.activate script in lxd.
Next we patched the daemon.activate script to enable bash tracing and log data $SNAP_COMMON/log file. The script traces stopped at this:
root@j0:~# cat /var/snap/
+ export BASH_XTRACEFD
+ '[' -d /sys/kernel/
++ cat /proc/self/
+ label='
+ '[' 'snap.lxd.activate (enforce)' '!=' unconfined ']'
+ '[' -n 'snap.lxd.activate (enforce)' ']'
+ aa-exec --help
+ exec aa-exec -p unconfined -- /snap/lxd/
+ exec
+ BASH_XTRACEFD=15
+ export BASH_XTRACEFD
+ '[' -d /sys/kernel/
++ cat /proc/self/
+ label=unconfined
+ '[' unconfined '!=' unconfined ']'
++ realpath /snap/lxd/36020/..
+ export SNAP_CURRENT=
+ SNAP_CURRENT=
++ readlink -f /snap/lxd/
+ LIB_ARCH=
+ export ARCH=x86_
+ ARCH=x86_
+ export LD_LIBRARY_
+ LD_LIBRARY_
+ export PATH=/snap/
+ PATH=/snap/
+ export LXD_DIR=
+ LXD_DIR=
+ echo '=> Starting LXD activation'
root@j0:~# cat /var/snap/
The script is running with set -xeu. Since echo is the last line in the log, it suggests that it failed and was a direct cause of the service to exit with an error. Our understanding, given previous explanation from JJ, is that since inheritance was denied, the fd table entry for stdout was replaced with fd corresponding to the special /sys/kernel/
We next patched the AppArmor profile of snap-confine from the snapd snap, to allow access to the journal socket by adding `/run/systemd/
| Maciej Borzecki (maciek-borzecki) wrote : | #7 |
I've landed the snapd fix for an apparmor profile of snap-confine. However, AFAIU the investigation and fixing confinues for the apparmor/kernel side of things.
| Changed in snapd: | |
| status: | In Progress → Fix Committed |
| Aleksandr Mikhalitsyn (mihalicyn) wrote : | #8 |
Let me share the findings from my investigation.
First of all, it's important to note that there are two variables that affect the bug's reproducibility.
The first variable is the way snapd is installed — either via a Debian package or as a snap.
Details:
snapd-test:~# snap version
snap 2.71+ubuntu22.04
snapd 2.71+ubuntu22.04
series 16
ubuntu 22.04
kernel 6.14.11+
Problem is NOT reproducible:
snapd-test-ok:~# snap version
snap 2.71
snapd 2.71
series 16
ubuntu 22.04
kernel 6.14.11+
Together with Zygmunt Krynicki and Maciek Borzecki, we discovered that when everything works correctly, we have:
=======
Oct 10 16:28:28 test snapd[2976]: apparmor.go:977: DEBUG: apparmor_parser --version
Oct 10 16:28:28 test snapd[2976]: AppArmor parser version 4.0.2
Oct 10 16:28:28 test snapd[2976]: Copyright (C) 1999-2008 Novell Inc.
root@test:~# snap debug execution apparmor
apparmor-parser: /snap/snapd/
apparmor-
internal: true
=======
When things start to fail, we have instead:
=======
Oct 10 16:30:29 test snapd[2419]: apparmor.go:977: DEBUG: apparmor_parser --version
Oct 10 16:30:29 test snapd[2419]: AppArmor parser version 3.0.4
Oct 10 16:30:29 test snapd[2419]: Copyright (C) 1999-2008 Novell Inc.
Oct 10 16:30:29 test snapd[2419]: Copyright 2009-2018 Canonical Ltd.
root@test:~# snap debug execution apparmor
apparmor-parser: /usr/sbin/
apparmor-
internal: false
=======
The second variable is the kernel version.
I was able to reproduce the problem on the 6.14.0-33-generic kernel, while everything works perfectly on 6.8.0-85-generic.
My first conclusion was that something changed between 6.8.0-85-generic and 6.14.0-33-generic, altering AppArmor's behavior and triggering the issue.
And I found what it was — the change in the __aa_path_perm function:
From git diff Ubuntu-6.8.0-85.85 Ubuntu-
-int __aa_path_
+int __aa_path_
{
- struct aa_ruleset *rules = list_first_
- typeof(*rules), list);
+ struct aa_ruleset *rules = profile-
int e = 0;
if (profile_
- ((flags & PATH_SOCK_COND) && !RULE_MEDIATES_
+ ((flags & PATH_SOCK_COND) && !RULE_MEDIATES_
RULE_MEDIATES_AF() checked whether the ruleset mediates the UNIX socket family:
1. RULE_MEDIAT...
| tags: | added: sec-7710 |
| Launchpad Janitor (janitor) wrote : | #9 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in apparmor (Ubuntu): | |
| status: | New → Confirmed |
| Thomas Parrott (tomparrott) wrote : | #10 |
If you can install the snapd snap then using 2.72 inside the container works around the issue and allows LXD to start (because its built with a newer version of Go that re-opens the stdout file handle that apparmor closes to /dev/null).
```
snapd 2.72 25577 latest/stable canonical✓ snapd,in-cohort
```
| Nobuto Murata (nobuto) wrote (last edit ): | #11 |
> If you can install the snapd snap then using 2.72 inside the container works around the issue and allows LXD to start (because its built with a newer version of Go that re-opens the stdout file handle that apparmor closes to /dev/null).
This doesn't quite work as a workaround in some cases. For example, jammy LXD container images seed the LXD snap and it fails to install as part of snapd.seeded.
And if snapd.seeded.
# snap install snapd
error: too early for operation, device not yet seeded or device model not acknowledged
# systemctl list-jobs
JOB UNIT TYPE STATE
139 cloud-init.target start waiting
145 cloud-final.service start waiting
105 snapd.autoimpor
140 cloud-config.
1 graphical.target start waiting
2 multi-user.target start waiting
146 snapd.seeded.
107 systemd-
8 jobs listed.
| Nobuto Murata (nobuto) wrote : | #12 |
This is my reproducer fwiw from the duplicate bug, LP: #2130710. It's NOT nested LXD but two LXD containers with images with different dates respectively in a KVM machine. The only differences I can think of between two images are the deb versions of snapd and systemd. But somehow, the second image doesn't install the seeded snapd.
# plucky to use v6.14 kernel
lxc launch --vm -e ubuntu:plucky test-vm-plucky -c limits.cpu=2 -c limits.memory=2GiB
sleep 30
lxc exec test-vm-plucky -- bash -xc '
snap install lxd --channel 5.21/stable
lxd init --auto
# 3afbdbe6e57b: jammy 20251002, 6dcf029719ba: jammy 20251015
for image in 3afbdbe6e57b 6dcf029719ba; do
lxc launch -e ubuntu-daily:$image c-jammy-$image \
-c user.user-
bootcmd: [\"echo CLOUD-INIT BOOTCMD RUN ✅\"]
runcmd: [\"echo CLOUD-INIT RUNCMD RUN ✅\"]
"
lxc exec c-jammy-$image -- bash -xc "
timeout 30 cloud-init status --wait
grep ✅ /var/log/
strings /snap/snapd/
strings /usr/lib/
cat /var/lib/
snap version
snap list
"
done
diff -U0 <(lxc exec c-jammy-
'
[output]
Launching test-vm-plucky
+ snap install lxd --channel 5.21/stable
2025-11-
Warning: /snap/bin was not found in your $PATH. If you've not restarted your session since you
installed snapd, try doing that. Please see https:/
details.
lxd (5.21/stable) 5.21.4-7b6bd68 from Canonical✓ installed
+ lxd init --auto
+ for image in 3afbdbe6e57b 6dcf029719ba
+ lxc launch -e ubuntu-
bootcmd: ["echo CLOUD-INIT BOOTCMD RUN ✅"]
runcmd: ["echo CLOUD-INIT RUNCMD RUN ✅"]
'
Launching c-jammy-
+ lxc exec c-jammy-
timeout 30 cloud-init status --wait
grep ✅ /var/log/
strings /snap/snapd/
strings /usr/lib/
cat /var/lib/
snap version
snap list
'
+ timeout 30 cloud-init status --wait
.......
+ grep ✅ /var/log/
CLOUD-INIT BOOTCMD RUN ✅
CLOUD-INIT RUNCMD RUN ✅
+ grep 'go1\.'
+ strings /snap/snapd/
go1.23.10
go1.23.10
go1.23.10
go1.23.10
+ strings /usr/lib/
+ grep 'go1\.'
go1.18.1
go1.18.1
+ systemctl list-jobs
No jobs running.
+ cat /var/lib/
snaps:
-
name: core20
channel: stable
file: core20_2669.snap
-
name: snapd
channel: stable
file: snapd_25202.snap
-
name: lxd
channel: 5.0/stable/
file: lxd_35819....
| Nobuto Murata (nobuto) wrote : | #13 |
Can we do a SRU of https:/
In the latest LXD image for jammy, the preinstalled snapd deb is 2.71+ubuntu22.04 and seeded snapd is 2.71 so the deb version is used and it hits to this issue.
$ curl -s https:/
snapd 2.71+ubuntu22.04
snap:snapd stable 25202
The latest daily image is fine since the preinstalled snapd deb is 2.71+ubuntu22.04 but the seeded snap is 2.72 so the snap version is used and can avoid this issue.
$ curl -s https:/
snapd 2.71+ubuntu22.04
snap:snapd stable 25577
So when the next image gets released to the released stream, the issue is not going to be triggered. However, there is another SRU ongoing for 2.72 https:/
| Ernest Lotter (ernestl) wrote : | #14 |
The next snap release 2.73 will contain the fix. We will start the release process on 10 Nov, and iam to have it release by around mid December. There is a chance that it will only be ready in early Jan.
| Nobuto Murata (nobuto) wrote : | #15 |
While waiting for the SRU, another trick possible would be to release 2.73 or 2.72.1 to the snap store so images to have pre installed snapd deb 2.72 and something newer as preseeded snapd snap. So we can workaround the issue.
| Nobuto Murata (nobuto) wrote (last edit ): | #16 |
The status as of today (2025-11-14):
[released]
$ lxc launch ubuntu:jammy -e test-jammy-released
$ lxc config show test-jammy-released | yq '.config.
"ubuntu 22.04 LTS amd64 (release) (20251031)"
$ lxc exec test-jammy-released -- systemctl is-system-running
running
-> WORKS
$ curl -s https:/
snapd 2.71+ubuntu22.04
snap:snapd stable 25577
-> snap:snapd 2.72 > deb:snapd 2.71
[daily]
$ lxc launch ubuntu-daily:jammy -e test-jammy-daily
$ lxc config show test-jammy-daily | yq '.config.
"ubuntu 22.04 LTS amd64 (daily) (20251113)"
$ lxc exec test-jammy-daily -- systemctl is-system-running
starting
-> DOES NOT WORK. Stuck in starting due to snapd.seeded.
$ curl -s https:/
snapd 2.72+ubuntu22.04
snap:snapd stable 25577
-> snap:snapd 2.72, deb:snapd 2.72 (after the SRU, LP: #2124239)
So the next image in the released stream will be broken again unless the snapd in the snap store changes.
| Ernest Lotter (ernestl) wrote : | #17 |
| Changed in snapd: | |
| milestone: | none → 2.74 |
| milestone: | 2.74 → 2.73 |
| Launchpad Janitor (janitor) wrote : | #18 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in snapd (Ubuntu): | |
| status: | New → Confirmed |
| description: | updated |
| description: | updated |
| Ernest Lotter (ernestl) wrote : | #19 |
Hi @Simon Fels,
Would you mind verifying snapd 2.73 deb package on resolute-proposed?
| Nobuto Murata (nobuto) wrote : | #20 |
One of the must-have conditions to trigger the issue was "snapd deb is built with go < 1.21 (jammy one is built with go 1.18)" so that's why noble or any newer images weren't affected. So the snapd binary in resolute is not affected by the issue by nature.
| Timo Aaltonen (tjaalton) wrote : Please test proposed package | #21 |
Hello Simon, or anyone else affected,
Accepted snapd into questing-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-
Further information regarding the verification process can be found at https:/
N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.
| Changed in snapd (Ubuntu Questing): | |
| status: | New → Fix Committed |
| tags: | added: verification-needed verification-needed-questing |
| Timo Aaltonen (tjaalton) wrote : | #22 |
Hello Simon, or anyone else affected,
Accepted snapd into plucky-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-
Further information regarding the verification process can be found at https:/
N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.
| Changed in snapd (Ubuntu Plucky): | |
| status: | New → Fix Committed |
| tags: | added: verification-needed-plucky |
| Timo Aaltonen (tjaalton) wrote : | #23 |
Hello Simon, or anyone else affected,
Accepted snapd into noble-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-
Further information regarding the verification process can be found at https:/
N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.
| Changed in snapd (Ubuntu Noble): | |
| status: | New → Fix Committed |
| tags: | added: verification-needed-noble |
| Changed in snapd (Ubuntu Jammy): | |
| status: | New → Fix Committed |
| tags: | added: verification-needed-jammy |
| Timo Aaltonen (tjaalton) wrote : | #24 |
Hello Simon, or anyone else affected,
Accepted snapd into jammy-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-
Further information regarding the verification process can be found at https:/
N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.
| Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (snapd/2.73+ubuntu24.04) | #25 |
All autopkgtests for the newly accepted snapd (2.73+ubuntu24.04) for noble have finished running.
The following regressions have been reported in tests triggered by the package:
docker.
livecd-
Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUp
https:/
[1] https:/
Thank you!
| Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (snapd/2.73+ubuntu25.04) | #26 |
All autopkgtests for the newly accepted snapd (2.73+ubuntu25.04) for plucky have finished running.
The following regressions have been reported in tests triggered by the package:
docker.
livecd-
systemd/
Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUp
https:/
[1] https:/
Thank you!
| Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (snapd/2.73+ubuntu25.10) | #27 |
All autopkgtests for the newly accepted snapd (2.73+ubuntu25.10) for questing have finished running.
The following regressions have been reported in tests triggered by the package:
linux-realtime/
livecd-
systemd/
Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUp
https:/
[1] https:/
Thank you!
| Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (snapd/2.73+ubuntu22.04) | #28 |
All autopkgtests for the newly accepted snapd (2.73+ubuntu22.04) for jammy have finished running.
The following regressions have been reported in tests triggered by the package:
docker.
livecd-
systemd/
Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUp
https:/
[1] https:/
Thank you!
| description: | updated |
| description: | updated |
| tags: | added: verification-done-resolute |
| Ernest Lotter (ernestl) wrote : | #29 |
Verification of noble, questing, plucky, resolute:
=======
Not required since its not affected (go >= 2.21).
| tags: |
added: verification-done-noble verification-done-plucky verification-done-questing removed: verification-needed-noble verification-needed-plucky verification-needed-questing |
| Ernest Lotter (ernestl) wrote : | #30 |
Nobuto Murata or Simon Fels,
Would you mind verifying the fix for snapd 2.73 deb on jammy?
| Simon Fels (morphis) wrote : | #31 |
I've used my initial steps of the problem when we've found it on noble:
$ multipass launch noble --name test -d 10G
test$ sudo apt install -y linux-image-
test$ sudo reboot
test$ snap install --channel=
test$ sudo lxd init --auto
test$ lxc launch ubuntu:j j0 -c security.
test$ lxc shell j0
j0$ sudo snap remove --purge lxd
j0$ cat <<EOF >/etc/apt/
# Enable Ubuntu proposed archive
deb http://
EOF
j0$ apt update ; apt upgrade
j0$ snap install --channel=
Updating the snapd to 2.73+ubuntu22.04 from proposed works and fixes the following broken state snapd is in after the initial start of the container with snapd 2.72
root@j0:~# snap changes
ID Status Spawn Ready Summary
1 Error 6 days ago, at 10:50 UTC today at 08:26 UTC Initialize system state
2 Done today at 08:26 UTC today at 08:26 UTC Initialize device
root@j0:~# snap tasks 1
Status Spawn Ready Summary
Done 6 days ago, at 10:50 UTC today at 08:26 UTC Ensure prerequisites for "snapd" are available
...
.......
Setup snap "snapd" (25577) security profiles
2025-12-
2025-12-
2025-12-
2025-12-
.......
Make snap "snapd" (25577) available to the system
2025-12-
.......
Copy snap "lxd" data
2025-12-
.......
Start snap "lxd" (36558) services
2025-12-
Job for snap.lxd.
See "systemctl status snap.lxd.
After the upgrade to snapd 2.73 we get
root@j0:~# snap changes
ID Status Spawn Ready Summary
1 Error 6 days ago, at 10:50 UTC today at 08:26 UTC Initialize system state
2 Done today at 08:26 UTC today at 08:26 UTC Initialize device
3 Done today at 08:28 UTC today at 08:28 UTC Initialize system state
and the system is successfully initialized. LXD is functional after the installation and nested containers can be created.
| tags: |
added: verification-needed-plucky verification-needed-questing verification-needed-resolute removed: verification-done-plucky verification-done-questing verification-done-resolute |
| Launchpad Janitor (janitor) wrote : | #32 |
This bug was fixed in the package snapd - 2.73+ubuntu26.04.1
---------------
snapd (2.73+ubuntu26.
* New upstream release, LP: #2132084
- FDE: do not save incomplete FDE state when resealing was skipped
- FDE: warn of inconsistent primary or policy counter
- Confdb: document confdb in snapctl help messages
- Confdb: only confdb hooks wait if snaps are disabled
- Confdb: relax confdb change conflict checks
- Confdb: remove empty parent when removing last leaf
- Confdb: support parsing field filters
- Confdb: wrap confdb write values under "values" key
- dm-verity for essential snaps: add new naming convention for
verity files
- dm-verity for essential snaps: add snap integrity discovery
- dm-verity for essential snaps: fix verity salt calculation
- Assertions: add hardware identity assertion
- Assertions: add integrity stanza in snap resources revisions
- Assertions: add request message assertion required for remote
device management
- Assertions: add response-message assertion for secure remote
device management
- Assertions: expose WithStackedBack
- Packaging: cross-distro | install upstream NEWS file into relevant
snapd package doc directory
- Packaging: cross-distro | tweak how the blocks injecting
$
- Packaging: remove deprecated snap-gdb-shim and all references now
that snap run --gdb is unsupported and replaced by --gdbserver
- Preseed: call systemd-tmpfiles instead handle-
uc26
- Preseed: do not remove the /snap dir but rather all its contents
during reset
- snap-confine: attach name derived from security tag to BPF maps
and programs
- snap-confine: ensure permitted capabilities match expectation
- snap-confine: fix cached snap-confine profile cleanup to report
the correct error instead of masking backend setup failures
- snap-confine: Improve validation of user controlled paths
- snap-confine: tighten snap cgroup checks to ensure a snap cannot
start another snap in the same cgroup, preventing incorrect
device-filter installation
- core-initrd: add 26.04 ubuntu-
- core-initrd: add missing order dependency for setting default
system files
- core-initrd: avoid scanning loop and mmc boot partitions as the
boot disk won't be any of these
- core-initrd: make cpio a Depends and remove from Build-Depends
- core-initrd: start plymouth sooner and reload when gadget is
available
- Cross-distro: modify syscheck to account for differences in
openSUSE 16.0+
- Validation sets: use in-flight validation sets when calling
'snapctl install' from hook
- Prompting: enable prompting for the camera interface
- Prompting: remove polkit authentication when modifying/deleting
prompting rules
- LP: #2127189 Prompting: do not record notices for unchanged rules
on snapd startup
- AppArmor: add free and pidof to the template
- AppArmor: adjust interfaces/pr...
| Changed in snapd (Ubuntu): | |
| status: | Confirmed → Fix Released |
| Ernest Lotter (ernestl) wrote (last edit ): | #33 |
Verification for jammy
=======
multipass launch noble --name test -d 10G
test$ sudo apt install -y linux-image-
test$ sudo reboot
uname -a
Linux j0 6.8.0-90-generic #91~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 20 15:20:45 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
test$ snap install --channel=
test$ sudo lxd init --auto
test$ lxc launch ubuntu:j j0 -c security.
test$ lxc shell j0
j0$ sudo snap remove --purge lxd
j0$ snap install --channel=
CANNOT REPRODUCE THE ISSUE ON JAMMY
Tried using snapd 2.72+ubuntu22.04 and 2.73+ubuntu22.04 and the error was not encountered:
snap changes
ID Status Spawn Ready Summary
1 Done 21 days ago, at 10:51 UTC today at 06:28 UTC Initialize system state
2 Done today at 06:28 UTC today at 06:28 UTC Initialize device
3 Done today at 06:28 UTC today at 06:28 UTC Remove "lxd" snap
4 Done today at 06:31 UTC today at 06:32 UTC Install "lxd" snap from "5.21/stable" channel
5 Done today at 06:34 UTC today at 06:34 UTC Remove "lxd" snap
6 Done today at 06:35 UTC today at 06:35 UTC Install "lxd" snap from "5.21/stable" channel
7 Done today at 06:46 UTC today at 06:46 UTC Regenerate security profiles
8 Done today at 06:46 UTC today at 06:47 UTC Remove "lxd" snap
9 Done today at 06:47 UTC today at 06:47 UTC Install "lxd" snap from "5.21/stable" channel
10 Done today at 06:51 UTC today at 06:51 UTC Remove "lxd" snap
11 Done today at 06:52 UTC today at 06:52 UTC Install "lxd" snap from "5.21/stable" channel
| Ernest Lotter (ernestl) wrote (last edit ): | #34 |
Verification for Plucky
=======
multipass launch plucky --name test -d 10G
test$ sudo apt install -y linux-image-
test$ sudo reboot
test$ snap install --channel=
test$ sudo lxd init --auto
test$ lxc launch ubuntu:j j0 -c security.
test$ lxc shell j0
Reproduce with snapd deb < 2.73
-------
(update to snapd 2.73 to fix initialization issue and revert to 2.72)
j0$ sudo snap remove --purge lxd
j0$ sudo snap install --channel=
root@j0:~# sudo snap install --channel=
error: cannot perform the following tasks:
- Start snap "lxd" (36971) services (systemctl command [start snap.lxd.
Job for snap.lxd.
See "systemctl status snap.lxd.
Prove fixed with snapd deb 2.73
-------
j0$ sudo apt install snapd=2.
sudo snap install --channel=
lxd (5.21/stable) 5.21.4-9eb1368 from Canonical✓ installed
root@j0:~# snap changes
ID Status Spawn Ready Summary
1 Error 21 days ago, at 10:51 UTC today at 07:30 UTC Initialize system state
2 Done today at 07:30 UTC today at 07:30 UTC Initialize device
3 Done today at 07:32 UTC today at 07:32 UTC Initialize system state
4 Done today at 07:35 UTC today at 07:35 UTC Remove "lxd" snap
5 Error today at 07:35 UTC today at 07:36 UTC Install "lxd" snap from "5.21/stable" channel
6 Done today at 07:38 UTC today at 07:39 UTC Install "lxd" snap from "5.21/stable" channel
Change 6 shows the successfull installation.
| Ernest Lotter (ernestl) wrote (last edit ): | #35 |
Verification for Questing
=======
multipass launch questing --name test -d 10G
(linux-
snap install --channel=
test$ sudo lxd init --auto
test$ lxc launch ubuntu:j j0 -c security.
test$ lxc shell j0
Reproduce with snapd deb < 2.73
-------
root@j0:~# snap version
snap 2.72+ubuntu22.04
snapd 2.72+ubuntu22.04
series 16
ubuntu 22.04
kernel 6.17.0-8-generic
architecture amd64
j0$ sudo snap remove --purge lxd
j0$ sudo snap install --channel=
error: cannot perform the following tasks:
- Start snap "lxd" (36971) services (systemctl command [start snap.lxd.
Job for snap.lxd.
See "systemctl status snap.lxd.
Prove fixed with snapd deb 2.73
-------
root@j0:~# snap version
snap 2.73+ubuntu22.04
snapd 2.73+ubuntu22.04
series 16
ubuntu 22.04
kernel 6.17.0-8-generic
architecture amd64
snap install --channel=
lxd (5.21/stable) 5.21.4-9eb1368 from Canonical✓ installed
snap changes
ID Status Spawn Ready Summary
1 Error 21 days ago, at 10:51 UTC today at 08:02 UTC Initialize system state
2 Done today at 08:02 UTC today at 08:02 UTC Initialize device
3 Error today at 08:07 UTC today at 08:08 UTC Initialize system state
4 Error today at 08:08 UTC today at 08:08 UTC Initialize system state
5 Error today at 08:08 UTC today at 08:08 UTC Initialize system state
6 Error today at 08:08 UTC today at 08:08 UTC Initialize system state
7 Done today at 08:08 UTC today at 08:09 UTC Initialize system state
8 Done today at 08:10 UTC today at 08:11 UTC Remove "lxd" snap
9 Done today at 08:11 UTC today at 08:12 UTC Install "lxd" snap from "5.21/stable" channel
10 Done today at 08:17 UTC today at 08:17 UTC Remove "lxd" snap
11 Error today at 08:18 UTC today at 08:18 UTC Install "lxd" snap from "5.21/stable" channel
12 Done today at 08:21 UTC today at 08:21 UTC Install "lxd" snap from "5.21/stable" channel
Change 12 shows the successfull installation.
| tags: |
added: verification-done-jammy verification-done-plucky verification-done-questing removed: verification-needed verification-needed-jammy verification-needed-plucky verification-needed-questing verification-needed-resolute |
| Launchpad Janitor (janitor) wrote : | #36 |
This bug was fixed in the package snapd - 2.73+ubuntu25.10
---------------
snapd (2.73+ubuntu25.10) questing; urgency=medium
* New upstream release, LP: #2132084
- FDE: do not save incomplete FDE state when resealing was skipped
- FDE: warn of inconsistent primary or policy counter
- Confdb: document confdb in snapctl help messages
- Confdb: only confdb hooks wait if snaps are disabled
- Confdb: relax confdb change conflict checks
- Confdb: remove empty parent when removing last leaf
- Confdb: support parsing field filters
- Confdb: wrap confdb write values under "values" key
- dm-verity for essential snaps: add new naming convention for
verity files
- dm-verity for essential snaps: add snap integrity discovery
- dm-verity for essential snaps: fix verity salt calculation
- Assertions: add hardware identity assertion
- Assertions: add integrity stanza in snap resources revisions
- Assertions: add request message assertion required for remote
device management
- Assertions: add response-message assertion for secure remote
device management
- Assertions: expose WithStackedBack
- Packaging: cross-distro | install upstream NEWS file into relevant
snapd package doc directory
- Packaging: cross-distro | tweak how the blocks injecting
$
- Packaging: remove deprecated snap-gdb-shim and all references now
that snap run --gdb is unsupported and replaced by --gdbserver
- Preseed: call systemd-tmpfiles instead handle-
uc26
- Preseed: do not remove the /snap dir but rather all its contents
during reset
- snap-confine: attach name derived from security tag to BPF maps
and programs
- snap-confine: ensure permitted capabilities match expectation
- snap-confine: fix cached snap-confine profile cleanup to report
the correct error instead of masking backend setup failures
- snap-confine: Improve validation of user controlled paths
- snap-confine: tighten snap cgroup checks to ensure a snap cannot
start another snap in the same cgroup, preventing incorrect
device-filter installation
- core-initrd: add 26.04 ubuntu-
- core-initrd: add missing order dependency for setting default
system files
- core-initrd: avoid scanning loop and mmc boot partitions as the
boot disk won't be any of these
- core-initrd: make cpio a Depends and remove from Build-Depends
- core-initrd: start plymouth sooner and reload when gadget is
available
- Cross-distro: modify syscheck to account for differences in
openSUSE 16.0+
- Validation sets: use in-flight validation sets when calling
'snapctl install' from hook
- Prompting: enable prompting for the camera interface
- Prompting: remove polkit authentication when modifying/deleting
prompting rules
- LP: #2127189 Prompting: do not record notices for unchanged rules
on snapd startup
- AppArmor: add free and pidof to the template
- AppArmor: adjust interfaces/
| Changed in snapd (Ubuntu Questing): | |
| status: | Fix Committed → Fix Released |
| Andreas Hasenack (ahasenack) wrote : Update Released | #37 |
The verification of the Stable Release Update for snapd has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.
| Launchpad Janitor (janitor) wrote : | #38 |
This bug was fixed in the package snapd - 2.73+ubuntu25.04
---------------
snapd (2.73+ubuntu25.04) plucky; urgency=medium
* New upstream release, LP: #2132084
- FDE: do not save incomplete FDE state when resealing was skipped
- FDE: warn of inconsistent primary or policy counter
- Confdb: document confdb in snapctl help messages
- Confdb: only confdb hooks wait if snaps are disabled
- Confdb: relax confdb change conflict checks
- Confdb: remove empty parent when removing last leaf
- Confdb: support parsing field filters
- Confdb: wrap confdb write values under "values" key
- dm-verity for essential snaps: add new naming convention for
verity files
- dm-verity for essential snaps: add snap integrity discovery
- dm-verity for essential snaps: fix verity salt calculation
- Assertions: add hardware identity assertion
- Assertions: add integrity stanza in snap resources revisions
- Assertions: add request message assertion required for remote
device management
- Assertions: add response-message assertion for secure remote
device management
- Assertions: expose WithStackedBack
- Packaging: cross-distro | install upstream NEWS file into relevant
snapd package doc directory
- Packaging: cross-distro | tweak how the blocks injecting
$
- Packaging: remove deprecated snap-gdb-shim and all references now
that snap run --gdb is unsupported and replaced by --gdbserver
- Preseed: call systemd-tmpfiles instead handle-
uc26
- Preseed: do not remove the /snap dir but rather all its contents
during reset
- snap-confine: attach name derived from security tag to BPF maps
and programs
- snap-confine: ensure permitted capabilities match expectation
- snap-confine: fix cached snap-confine profile cleanup to report
the correct error instead of masking backend setup failures
- snap-confine: Improve validation of user controlled paths
- snap-confine: tighten snap cgroup checks to ensure a snap cannot
start another snap in the same cgroup, preventing incorrect
device-filter installation
- core-initrd: add 26.04 ubuntu-
- core-initrd: add missing order dependency for setting default
system files
- core-initrd: avoid scanning loop and mmc boot partitions as the
boot disk won't be any of these
- core-initrd: make cpio a Depends and remove from Build-Depends
- core-initrd: start plymouth sooner and reload when gadget is
available
- Cross-distro: modify syscheck to account for differences in
openSUSE 16.0+
- Validation sets: use in-flight validation sets when calling
'snapctl install' from hook
- Prompting: enable prompting for the camera interface
- Prompting: remove polkit authentication when modifying/deleting
prompting rules
- LP: #2127189 Prompting: do not record notices for unchanged rules
on snapd startup
- AppArmor: add free and pidof to the template
- AppArmor: adjust interfaces/
| Changed in snapd (Ubuntu Plucky): | |
| status: | Fix Committed → Fix Released |
| Launchpad Janitor (janitor) wrote : | #39 |
This bug was fixed in the package snapd - 2.73+ubuntu24.04
---------------
snapd (2.73+ubuntu24.04) noble; urgency=medium
* New upstream release, LP: #2132084
- FDE: do not save incomplete FDE state when resealing was skipped
- FDE: warn of inconsistent primary or policy counter
- Confdb: document confdb in snapctl help messages
- Confdb: only confdb hooks wait if snaps are disabled
- Confdb: relax confdb change conflict checks
- Confdb: remove empty parent when removing last leaf
- Confdb: support parsing field filters
- Confdb: wrap confdb write values under "values" key
- dm-verity for essential snaps: add new naming convention for
verity files
- dm-verity for essential snaps: add snap integrity discovery
- dm-verity for essential snaps: fix verity salt calculation
- Assertions: add hardware identity assertion
- Assertions: add integrity stanza in snap resources revisions
- Assertions: add request message assertion required for remote
device management
- Assertions: add response-message assertion for secure remote
device management
- Assertions: expose WithStackedBack
- Packaging: cross-distro | install upstream NEWS file into relevant
snapd package doc directory
- Packaging: cross-distro | tweak how the blocks injecting
$
- Packaging: remove deprecated snap-gdb-shim and all references now
that snap run --gdb is unsupported and replaced by --gdbserver
- Preseed: call systemd-tmpfiles instead handle-
uc26
- Preseed: do not remove the /snap dir but rather all its contents
during reset
- snap-confine: attach name derived from security tag to BPF maps
and programs
- snap-confine: ensure permitted capabilities match expectation
- snap-confine: fix cached snap-confine profile cleanup to report
the correct error instead of masking backend setup failures
- snap-confine: Improve validation of user controlled paths
- snap-confine: tighten snap cgroup checks to ensure a snap cannot
start another snap in the same cgroup, preventing incorrect
device-filter installation
- core-initrd: add 26.04 ubuntu-
- core-initrd: add missing order dependency for setting default
system files
- core-initrd: avoid scanning loop and mmc boot partitions as the
boot disk won't be any of these
- core-initrd: make cpio a Depends and remove from Build-Depends
- core-initrd: start plymouth sooner and reload when gadget is
available
- Cross-distro: modify syscheck to account for differences in
openSUSE 16.0+
- Validation sets: use in-flight validation sets when calling
'snapctl install' from hook
- Prompting: enable prompting for the camera interface
- Prompting: remove polkit authentication when modifying/deleting
prompting rules
- LP: #2127189 Prompting: do not record notices for unchanged rules
on snapd startup
- AppArmor: add free and pidof to the template
- AppArmor: adjust interfaces/profiles ...
| Changed in snapd (Ubuntu Noble): | |
| status: | Fix Committed → Fix Released |
| Launchpad Janitor (janitor) wrote : | #40 |
This bug was fixed in the package snapd - 2.73+ubuntu22.04
---------------
snapd (2.73+ubuntu22.04) jammy; urgency=medium
* New upstream release, LP: #2132084
- FDE: do not save incomplete FDE state when resealing was skipped
- FDE: warn of inconsistent primary or policy counter
- Confdb: document confdb in snapctl help messages
- Confdb: only confdb hooks wait if snaps are disabled
- Confdb: relax confdb change conflict checks
- Confdb: remove empty parent when removing last leaf
- Confdb: support parsing field filters
- Confdb: wrap confdb write values under "values" key
- dm-verity for essential snaps: add new naming convention for
verity files
- dm-verity for essential snaps: add snap integrity discovery
- dm-verity for essential snaps: fix verity salt calculation
- Assertions: add hardware identity assertion
- Assertions: add integrity stanza in snap resources revisions
- Assertions: add request message assertion required for remote
device management
- Assertions: add response-message assertion for secure remote
device management
- Assertions: expose WithStackedBack
- Packaging: cross-distro | install upstream NEWS file into relevant
snapd package doc directory
- Packaging: cross-distro | tweak how the blocks injecting
$
- Packaging: remove deprecated snap-gdb-shim and all references now
that snap run --gdb is unsupported and replaced by --gdbserver
- Preseed: call systemd-tmpfiles instead handle-
uc26
- Preseed: do not remove the /snap dir but rather all its contents
during reset
- snap-confine: attach name derived from security tag to BPF maps
and programs
- snap-confine: ensure permitted capabilities match expectation
- snap-confine: fix cached snap-confine profile cleanup to report
the correct error instead of masking backend setup failures
- snap-confine: Improve validation of user controlled paths
- snap-confine: tighten snap cgroup checks to ensure a snap cannot
start another snap in the same cgroup, preventing incorrect
device-filter installation
- core-initrd: add 26.04 ubuntu-
- core-initrd: add missing order dependency for setting default
system files
- core-initrd: avoid scanning loop and mmc boot partitions as the
boot disk won't be any of these
- core-initrd: make cpio a Depends and remove from Build-Depends
- core-initrd: start plymouth sooner and reload when gadget is
available
- Cross-distro: modify syscheck to account for differences in
openSUSE 16.0+
- Validation sets: use in-flight validation sets when calling
'snapctl install' from hook
- Prompting: enable prompting for the camera interface
- Prompting: remove polkit authentication when modifying/deleting
prompting rules
- LP: #2127189 Prompting: do not record notices for unchanged rules
on snapd startup
- AppArmor: add free and pidof to the template
- AppArmor: adjust interfaces/profiles ...
| Changed in snapd (Ubuntu Jammy): | |
| status: | Fix Committed → Fix Released |
We are also seeing issues on Github runners with 24.04 containers.