Activity log for bug #2039268

Date Who What changed Old value New value Message
2023-10-13 10:43:54 Giuseppe Petralia bug added bug
2023-10-13 13:11:39 Launchpad Janitor ubuntu-release-upgrader (Ubuntu): status New Confirmed
2023-10-16 16:26:59 Brian Murray ubuntu-release-upgrader (Ubuntu): importance Undecided High
2023-10-17 00:10:09 Steve Langasek bug added subscriber Steve Langasek
2023-10-17 17:10:54 Steve Langasek bug task added snapd (Ubuntu)
2023-10-17 19:14:51 Brian Murray tags rls-mm-incoming
2023-10-18 20:13:52 Brian Murray bug added subscriber Brian Murray
2023-10-19 15:33:21 Benjamin Drung bug added subscriber Ubuntu Foundations Bugs
2023-10-19 15:33:32 Benjamin Drung tags rls-mm-incoming foundations-todo
2023-10-20 01:45:57 César Quintana bug added subscriber César Quintana
2023-10-24 11:22:58 Launchpad Janitor snapd (Ubuntu): status New Confirmed
2023-10-25 14:47:27 Miguel Pires snapd (Ubuntu): status Confirmed Fix Committed
2023-10-26 09:31:27 Benjamin Drung description While upgrading to Mantic the following message is reported: installing snap firmware-updater error: cannot perform the following tasks: - Automatically connect eligible plugs and slots of snap "firmware-updater" (internal error: auto-connect of &{"firmware-updater:desktop-legacy" "snapd:desktop-legacy"} failed: snap "snapd" has no slot named "desktop-legacy") While upgrading to Mantic the following message is reported: installing snap firmware-updater error: cannot perform the following tasks: - Automatically connect eligible plugs and slots of snap "firmware-updater" (internal error: auto-connect of &{"firmware-updater:desktop-legacy" "snapd:desktop-legacy"} failed: snap "snapd" has no slot named "desktop-legacy") Steps to reproduce the culprit snap.mount: $ lxc launch ubuntu:lunar lp-2039268 Creating lp-2039268 Starting lp-2039268 $ lxc exec lp-2039268 bash # sed -i -e's/lunar/mantic/' /etc/apt/sources.list && apt update && apt install systemd # ls -l /run/systemd/generator/snap.mount -rw-r--r-- 1 root root 274 Oct 18 05:49 /run/systemd/generator/snap.mount
2023-10-26 11:26:05 Benjamin Drung description While upgrading to Mantic the following message is reported: installing snap firmware-updater error: cannot perform the following tasks: - Automatically connect eligible plugs and slots of snap "firmware-updater" (internal error: auto-connect of &{"firmware-updater:desktop-legacy" "snapd:desktop-legacy"} failed: snap "snapd" has no slot named "desktop-legacy") Steps to reproduce the culprit snap.mount: $ lxc launch ubuntu:lunar lp-2039268 Creating lp-2039268 Starting lp-2039268 $ lxc exec lp-2039268 bash # sed -i -e's/lunar/mantic/' /etc/apt/sources.list && apt update && apt install systemd # ls -l /run/systemd/generator/snap.mount -rw-r--r-- 1 root root 274 Oct 18 05:49 /run/systemd/generator/snap.mount While upgrading to Mantic the following message is reported: installing snap firmware-updater error: cannot perform the following tasks: - Automatically connect eligible plugs and slots of snap "firmware-updater" (internal error: auto-connect of &{"firmware-updater:desktop-legacy" "snapd:desktop-legacy"} failed: snap "snapd" has no slot named "desktop-legacy") Steps to reproduce the culprit snap.mount: $ lxc launch ubuntu:lunar lp-2039268 Creating lp-2039268 Starting lp-2039268 $ lxc exec lp-2039268 bash # sed -i -e's/lunar/mantic/' /etc/apt/sources.list && apt update && apt install -y systemd # ls -l /run/systemd/generator/snap.mount -rw-r--r-- 1 root root 274 Oct 18 05:49 /run/systemd/generator/snap.mount
2023-10-26 11:45:26 Benjamin Drung bug added subscriber Benjamin Drung
2023-10-26 13:27:48 Benjamin Drung attachment added snapd_2.60.2+23.04.1.debdiff https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2039268/+attachment/5713501/+files/snapd_2.60.2+23.04.1.debdiff
2023-10-26 14:16:04 César Quintana removed subscriber César Quintana
2023-10-26 14:17:14 Vladislav Shumkin bug added subscriber Vladislav Shumkin
2023-10-26 16:20:03 Ubuntu Foundations Team Bug Bot tags foundations-todo foundations-todo patch
2023-10-26 20:50:04 Steve Langasek description While upgrading to Mantic the following message is reported: installing snap firmware-updater error: cannot perform the following tasks: - Automatically connect eligible plugs and slots of snap "firmware-updater" (internal error: auto-connect of &{"firmware-updater:desktop-legacy" "snapd:desktop-legacy"} failed: snap "snapd" has no slot named "desktop-legacy") Steps to reproduce the culprit snap.mount: $ lxc launch ubuntu:lunar lp-2039268 Creating lp-2039268 Starting lp-2039268 $ lxc exec lp-2039268 bash # sed -i -e's/lunar/mantic/' /etc/apt/sources.list && apt update && apt install -y systemd # ls -l /run/systemd/generator/snap.mount -rw-r--r-- 1 root root 274 Oct 18 05:49 /run/systemd/generator/snap.mount [Impact] While upgrading to Mantic the following message is reported: installing snap firmware-updater error: cannot perform the following tasks: - Automatically connect eligible plugs and slots of snap "firmware-updater" (internal error: auto-connect of &{"firmware-updater:desktop-legacy" "snapd:desktop-legacy"} failed: snap "snapd" has no slot named "desktop-legacy") [Test case] Confirming the failure: $ lxc launch ubuntu:lunar lp-2039268 Creating lp-2039268 Starting lp-2039268 $ lxc exec lp-2039268 bash # sed -i -e's/lunar/mantic/' /etc/apt/sources.list && apt update && apt install -y systemd # ls -l /run/systemd/generator/snap.mount -rw-r--r-- 1 root root 274 Oct 18 05:49 /run/systemd/generator/snap.mount # ^D $ lxc delete --force lp-2039268 Confirming the fix: $ lxc launch ubuntu:lunar lp-2039268 Creating lp-2039268 Starting lp-2039268 $ lxc exec lp-2039268 bash # sed -i -e's/lunar/mantic/' /etc/apt/sources.list && apt update && apt install -y systemd # ls -l /run/systemd/generator/snap.mount ls: cannot access '/run/systemd/generator/snap.mount': No such file or directory # ^D $ lxc delete --force lp-2039268 [Where problems could occur] This fix changes how snapd detects at boot time whether a bind remount of /snap with different mount options is necessary. In unusual circumstances where the rootfs mount options are not what we expect by default in Ubuntu, AND the systemd generator is blocked by a custom security policy from reading /proc/1/mounts, it would get the wrong answer, fail to generate the mount unit under necessary circumstances, and regress the behavior of snapd.
2023-10-26 22:27:06 Brian Murray snapd (Ubuntu Mantic): status New Fix Committed
2023-10-26 22:27:07 Brian Murray bug added subscriber Ubuntu Stable Release Updates Team
2023-10-26 22:27:09 Brian Murray bug added subscriber SRU Verification
2023-10-26 22:27:15 Brian Murray tags foundations-todo patch foundations-todo patch verification-needed verification-needed-mantic
2023-10-26 22:49:49 Brian Murray snapd (Ubuntu Lunar): status New Fix Committed
2023-10-26 22:49:54 Brian Murray tags foundations-todo patch verification-needed verification-needed-mantic foundations-todo patch verification-needed verification-needed-lunar verification-needed-mantic
2023-10-27 05:14:22 Steve Langasek tags foundations-todo patch verification-needed verification-needed-lunar verification-needed-mantic foundations-todo patch verification-done-lunar verification-needed verification-needed-mantic
2023-10-27 05:19:12 Steve Langasek tags foundations-todo patch verification-done-lunar verification-needed verification-needed-mantic foundations-todo patch verification-done-lunar verification-done-mantic verification-needed
2023-11-01 12:56:24 Launchpad Janitor snapd (Ubuntu Mantic): status Fix Committed Fix Released
2023-11-01 12:56:28 Łukasz Zemczak removed subscriber Ubuntu Stable Release Updates Team
2023-11-01 15:49:23 Launchpad Janitor snapd (Ubuntu Lunar): status Fix Committed Fix Released
2023-11-02 07:01:10 Brian Murray ubuntu-release-upgrader (Ubuntu): status Confirmed Invalid
2023-11-02 20:51:45 Chris Guiver bug added subscriber Chris Guiver
2023-11-12 13:49:07 Brian Murray snapd (Ubuntu): milestone ubuntu-24.03
2024-02-16 05:10:13 Haw Loeung nominated for series Ubuntu Noble
2024-02-16 05:10:13 Haw Loeung bug task added ubuntu-release-upgrader (Ubuntu Noble)
2024-02-16 05:10:13 Haw Loeung bug task added snapd (Ubuntu Noble)
2024-02-16 05:11:28 Haw Loeung bug task deleted ubuntu-release-upgrader (Ubuntu Noble)
2024-03-30 00:52:07 Brian Murray snapd (Ubuntu Noble): milestone ubuntu-24.03 ubuntu-24.04-beta
2024-04-04 23:07:22 Brian Murray snapd (Ubuntu Noble): status Fix Committed Fix Released