'snap refresh pc-kernel' hangs on mantic FDE install

Bug #2033138 reported by Steve Langasek
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
snapd
Fix Released
Undecided
Unassigned
update-notifier (Ubuntu)
Won't Fix
Critical
Łukasz Zemczak

Bug Description

Mantic TPM FDE install using canary image 20230825.2.

This ships with pc-kernel version 1393. Therefore there is a newer version, 1397, that can be refreshed to.

Running 'sudo snap refresh pc-kernel' from the commandline returns:
  2023-08-26T03:54:46Z INFO Task set to wait until a manual system restart allows to continue
  WARNING: pressing crtl-c will abort the running change.
  Handling re-refresh of "pc-kernel as needed"

with a spinner that runs endlessly.

It is unclear what the user is expected to do to continue.

If I reboot from the desktop boot menu, it does successfully reboot to 1397.

The UX should be improved here. Instead of spinning interminably, the snap command should return with clear instructions that the user should reboot to finish.

Tags: fde
Steve Langasek (vorlon)
tags: added: fde
Revision history for this message
Steve Langasek (vorlon) wrote :

Note that clarifying the language about a manual reboot does not by itself address this issue. In some scenarios, a user may have only a serial console from which to issue commands to the system; a `snap` command spinning indefinitely then blocks the user from issuing a reboot command.

Changed in snapd:
status: New → Confirmed
Revision history for this message
Philip Meulengracht (the-meulengracht) wrote (last edit ):

Thank you for reporting this issue, this is the current design of how we handle changes that require rebooting on Desktop. However it's unfortunate that it's actually ending up blocking people, and especially when a user only have a serial console.

We'll quickly investigate this, and decide on how we want to resolve this. I'll get back to you all!

*EDIT* So we actually have a fix for this currently in master (fixed in this PR https://github.com/snapcore/snapd/pull/12910), so it will be included in release 2.61

Changed in snapd:
status: Confirmed → Fix Committed
Changed in update-notifier (Ubuntu):
status: New → Triaged
importance: Undecided → Critical
assignee: nobody → Łukasz Zemczak (sil2100)
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Adding a task for update-notifier. When the kernel is upgraded, there should be a notification in the top panel.

Revision history for this message
Łukasz Zemczak (sil2100) wrote :

The notification should be there, since this should have been landed in mantic via:
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/1998947

I'll reach out to Nick to see what could be the problem here.

Revision history for this message
Nick Rosbrook (enr0n) wrote :

Note that the reboot notification from update-notifier would only show up after 3 hours. Was enough time given for that to have happened?

Changed in update-notifier (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Certainly not, I'll try again and wait 3 hours

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Actually, I received the notification on resume from suspend i.e. several hours after installation. I'll close the update-notifier task then. Sorry for the confusion.

Changed in update-notifier (Ubuntu):
status: Incomplete → Won't Fix
Changed in snapd:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.