eoan to focal upgrade hangs when lvm snapshot is present
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
memtest86+ (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | ||
Focal |
Fix Released
|
Critical
|
Unassigned | ||
os-prober (Ubuntu) |
Invalid
|
Critical
|
Unassigned | ||
Focal |
Invalid
|
Critical
|
Unassigned |
Bug Description
[Impact]
Upgrading on LVM systems with snapshots hangs
[Test case]
- Install VM with eoan, LVM
- Create snapshot of root
- Upgrade memtest86+ to focal (download deb and apt install it is enough)
This hangs, when it shouldn't.
[Regression potential]
The change to memtest86+ closes file descriptor 3 when invoking update-grub like other callers do, which fixes the issue. File descriptor 3 is the debconf socket. If update-grub would need to communicate with debconf, it couldn't anymore. But seeing that we do this everywhere else, this should be fine.
[Original bug report]
When upgrading from 19.10 (w/ LVM + encypted disks) to 20.04, the installer hangs when trying to probe an LVM snapshot volume created before the upgrade.
Steps to reproduce:
lvcreate -s -L 20G -n preupgrade /dev/vgubuntu/root
do-release-upgrade -d
The installer will hang after the following message:
/usr/sbin/
Found Ubuntu 19.10 (19.10) on /dev/mapper/
done
Resolution:
Killing the grub-mount process which is probing the LVM snapshot seems to unhang the installer and allow the upgrade to complete without issue.
tags: | added: rls-ff-incoming |
Changed in ubuntu-release-upgrader (Ubuntu Focal): | |
importance: | Undecided → High |
Changed in ubuntu-release-upgrader (Ubuntu): | |
importance: | Undecided → High |
tags: | removed: rls-ff-incoming |
tags: | added: id-5ecfe91fc5987a8563b27f1f |
affects: | ubuntu-release-upgrader (Ubuntu) → grub2 (Ubuntu) |
Changed in grub2 (Ubuntu Focal): | |
milestone: | none → ubuntu-20.04.1 |
affects: | grub2 (Ubuntu) → os-prober (Ubuntu) |
affects: | debconf (Ubuntu) → os-prober (Ubuntu) |
description: | updated |
description: | updated |
Changed in memtest86+ (Ubuntu Focal): | |
status: | Won't Fix → Confirmed |
tags: | added: fr-162 |
Changed in os-prober (Ubuntu): | |
status: | Confirmed → Invalid |
Changed in os-prober (Ubuntu Focal): | |
status: | Confirmed → Invalid |
Here's a screenshot of where it hangs. This was on a fresh 19.10 install on VirtualBox using the LVM + Encryption set up via the installer, but the same thing happened on my desktop upgrade.