[Bug 1876506] Re: eoan to focal upgrade hangs when lvm snapshot is present

Julian Andres Klode 1876506 at bugs.launchpad.net
Tue Aug 18 10:18:22 UTC 2020


** Also affects: memtest86+ (Ubuntu)
   Importance: Undecided
       Status: New

** Description changed:

+ [Impact]
+ Upgrading on LVM systems with snapshots hangs
+ 
+ [Test case]
+ 
+ - Install VM with eoan
+ - Upgrade memtest86+ to focal
+ 
+ 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 
+ lvcreate -s -L 20G -n preupgrade /dev/vgubuntu/root
  do-release-upgrade -d
  
  The installer will hang after the following message:
  
  /usr/sbin/grub-probe: error: unknown filesystem.
  Found Ubuntu 19.10 (19.10) on /dev/mapper/vgubuntu-preupgrade
  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.

** Description changed:

  [Impact]
  Upgrading on LVM systems with snapshots hangs
  
  [Test case]
  
- - Install VM with eoan
- - Upgrade memtest86+ to focal
+ - 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/grub-probe: error: unknown filesystem.
  Found Ubuntu 19.10 (19.10) on /dev/mapper/vgubuntu-preupgrade
  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.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to memtest86+ in Ubuntu.
https://bugs.launchpad.net/bugs/1876506

Title:
  eoan to focal upgrade hangs when lvm snapshot is present

Status in memtest86+ package in Ubuntu:
  New
Status in os-prober package in Ubuntu:
  Confirmed
Status in memtest86+ source package in Focal:
  New
Status in os-prober source package in Focal:
  Confirmed

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/grub-probe: error: unknown filesystem.
  Found Ubuntu 19.10 (19.10) on /dev/mapper/vgubuntu-preupgrade
  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/memtest86+/+bug/1876506/+subscriptions



More information about the foundations-bugs mailing list