Upgrading of 20191010 installed on ZFS will lead to "device-mapper: reload ioctl on osprober-linux-sda6 failed: Device or resource busy" and then to auto-removal of all zfs packages

Bug #1847927 reported by Norbert
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
zfs-linux (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Steps to reproduce:
1. Install Ubuntu 19.10 from 20191010 ISO
2. Run `sudo apt-get update` and `sudo apt-get upgrade`
3. Note the following lines in the APT output:

...
Warning: Couldn't find any valid initrd for dataset rpool/ROOT/ubuntu_69xc2t.
Found memtest86+ image: /BOOT/ubuntu_69xc2t@/memtest86+.elf
Found memtest86+ image: /BOOT/ubuntu_69xc2t@/memtest86+.bin
device-mapper: reload ioctl on osprober-linux-sda6 failed: Device or resource busy
Command failed.
done
...
device-mapper: reload ioctl on osprober-linux-sda6 failed: Device or resource busy
Command failed.
done

4. Run `sudo apt-get autoremove --purge`

$ sudo apt-get autoremove --purge
[sudo] password for zfs:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  libnvpair1linux* libuutil1linux* libzfs2linux* libzpool2linux* zfs-initramfs* zfs-zed* zfsutils-linux*
0 upgraded, 0 newly installed, 7 to remove and 0 not upgraded.
After this operation, 5 243 kB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.

Expected results:
* upgrading of packages run without errors

Actual results:
* system will not boot if user will proceed with package autoremoval

ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: libzfs2linux 0.8.1-1ubuntu14
ProcVersionSignature: Ubuntu 5.3.0-13.14-generic 5.3.0
Uname: Linux 5.3.0-13-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu8
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Sun Oct 13 22:51:39 2019
InstallationDate: Installed on 2019-10-13 (0 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Beta amd64 (20191010)
SourcePackage: zfs-linux
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Norbert (nrbrtx) wrote :
Revision history for this message
Norbert (nrbrtx) wrote :
Revision history for this message
Norbert (nrbrtx) wrote :
Revision history for this message
Richard Laager (rlaager) wrote :

The osprober part is a duplicate of #1847632.

Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1847927

tags: added: iso-testing
Revision history for this message
Adam Conrad (adconrad) wrote :

The autoremoval part should be fixed if you install from a more recent image.

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

The message about device-mapper comes from os-prober.

Revision history for this message
Brian Murray (brian-murray) wrote :

Could you please retest this with an RC iso?

Changed in zfs-linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Jan Wester (j-vester) wrote :

I installed the 20191011 iso in a virtualbox. I used the zfs option. At installation. After installation system comes up fine. But as others here say it displays:

janw@janw-VirtualBox:~$ sudo apt update
Bra:1 http://se.archive.ubuntu.com/ubuntu eoan InRelease
Bra:2 http://se.archive.ubuntu.com/ubuntu eoan-updates InRelease
Bra:3 http://se.archive.ubuntu.com/ubuntu eoan-backports InRelease
Bra:4 http://se.archive.ubuntu.com/ubuntu eoan-proposed InRelease
Bra:5 http://security.ubuntu.com/ubuntu eoan-security InRelease
Läser paketlistor… Färdig
Bygger beroendeträd
Läser tillståndsinformation… Färdig
Alla paket är uppdaterade.
janw@janw-VirtualBox:~$ sudo apt upgrade
Läser paketlistor… Färdig
Bygger beroendeträd
Läser tillståndsinformation… Färdig
Beräknar uppgradering… Färdig
Följande paket har installerats automatiskt och är inte längre nödvändiga:
  libnvpair1linux libuutil1linux libzfs2linux libzpool2linux zfs-initramfs
  zfs-zed zfsutils-linux
Använd ”sudo apt autoremove” för att ta bort dem.
0 att uppgradera, 0 att nyinstallera, 0 att ta bort och 0 att inte uppgradera.

apt update says all packages are installed. But nevertheless apt upgrade want me to run a destructive apt autoremove which will remove all zfs packages and after that break the booting of the system completely.

I also tested the image from 20191012. That image does not boot after installation in the virtualbox.It gives a prompt initramfs> saying that it has problems finding the root partition. I also recognized during installation time that the image from 20191011 did some grub and kernel stuff at the end of installation which i could not see that the image from 20191012 did. Also a popup came during the installation talking about ext4 file systems, which is weird since I chose the zfs installation.

Revision history for this message
Adam Conrad (adconrad) wrote :

20191012 is the only one where this is expected to work, however for other hilarious reasons, you need to boot in the live session, upgrade to ubiquity from eoan-proposed (19.10.20), then run the installer.

This should all be in better shape with tonight's images when we spin them (expected serial of 20191014)

Revision history for this message
Norbert (nrbrtx) wrote :

The Ubuntu 20191014 is not affected.

Changed in zfs-linux (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
Jan Wester (j-vester) wrote :

Yes, just tested 20191014 and it seems okay. The reported things in this bug seems to be solved.
Only thing remaining now:

sudo update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: vmlinuz-5.3.0-18-generic in rpool/ROOT/ubuntu_ylgjtz
Found initrd image: initrd.img-5.3.0-18-generic in rpool/ROOT/ubuntu_ylgjtz
Found memtest86+ image: /BOOT/ubuntu_ylgjtz@/memtest86+.elf
Found memtest86+ image: /BOOT/ubuntu_ylgjtz@/memtest86+.bin
device-mapper: reload ioctl on osprober-linux-sda6 failed: Enhet eller resurs upptagen
Command failed.
done

but guess that is another bug and issue

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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