Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1688857 - Upgrade to F29 breaks ZFS, `dnf reinstall zfs` does not work, `dnf remove zfs` removes too many things
Summary: Upgrade to F29 breaks ZFS, `dnf reinstall zfs` does not work, `dnf remove zfs...
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 29
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Jaroslav Mracek
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2019-03-14 15:30 UTC by Christophe de Dinechin
Modified: 2019-03-18 12:28 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2019-03-18 12:28:22 UTC

Attachments (Terms of Use)

Description Christophe de Dinechin 2019-03-14 15:30:03 UTC
Description of problem:

With ZFS installed following instructions here:, several things went wrong updating from F28 to F29.

- Initially, the update seemed to work but /dev/zfs was not there, so `zfs list` or `zpool list` would complain with
    # zpool list
    /dev/zfs and /proc/self/mounts are required.

- `dnf reinstall zfs` did nothing useful, same state after reinstallation.

- `dnf remove zfs` followed by `dnf install zfs` did repair zfs, but the uninstall step removed so many things it essentially made my system half useless:

# dnf remove zfs
Dependencies resolved.
 Package                                Arch   Version           Repo      Size
 zfs                                    x86_64 0.7.13-1.fc29     @zfs     1.2 M
Removing dependent packages:
 cockpit-machines                       noarch 189-1.fc29        @updates 427 k
 gnome-boxes                            x86_64 3.30.3-2.fc29     @updates 5.7 M
 libvirt                                x86_64 4.7.0-1.fc29      @fedora    0  
 libvirt-daemon-kvm                     x86_64 4.7.0-1.fc29      @fedora    0  
 zfs-dracut                             x86_64 0.7.13-1.fc29     @zfs      25 k
Removing unused dependencies:
 dkms                                   noarch 2.6.1-2.fc29      @fedora  219 k
 edk2-ovmf                              noarch 20180815gitcb5f4f45ce-4.fc29
                                                                 @updates 6.8 M
 elfutils-libelf-devel                  x86_64 0.176-1.fc29      @updates  32 k
 glusterfs                              x86_64 5.4-1.fc29        @updates 2.8 M
 glusterfs-api                          x86_64 5.4-1.fc29        @updates 208 k
 glusterfs-fuse                         x86_64 5.4-1.fc29        @updates 403 k
 libfdt                                 x86_64 1.4.7-2.fc29      @updates  55 k
 libnvpair1                             x86_64 0.7.13-1.fc29     @zfs      88 k
 libuutil1                              x86_64 0.7.13-1.fc29     @zfs      80 k
 libvirt-daemon-config-nwfilter         x86_64 4.7.0-1.fc29      @fedora   15 k
 libvirt-daemon-driver-interface        x86_64 4.7.0-1.fc29      @fedora  130 k
 libvirt-daemon-driver-libxl            x86_64 4.7.0-1.fc29      @fedora  405 k
 libvirt-daemon-driver-lxc              x86_64 4.7.0-1.fc29      @fedora  476 k
 libvirt-daemon-driver-nodedev          x86_64 4.7.0-1.fc29      @fedora  128 k
 libvirt-daemon-driver-nwfilter         x86_64 4.7.0-1.fc29      @fedora  189 k
 libvirt-daemon-driver-qemu             x86_64 4.7.0-1.fc29      @fedora  1.7 M
 libvirt-daemon-driver-secret           x86_64 4.7.0-1.fc29      @fedora   99 k
 libvirt-daemon-driver-storage          x86_64 4.7.0-1.fc29      @fedora    0  
 libvirt-daemon-driver-storage-disk     x86_64 4.7.0-1.fc29      @fedora   93 k
 libvirt-daemon-driver-storage-gluster  x86_64 4.7.0-1.fc29      @fedora  183 k
 libvirt-daemon-driver-storage-iscsi    x86_64 4.7.0-1.fc29      @fedora   89 k
 libvirt-daemon-driver-storage-logical  x86_64 4.7.0-1.fc29      @fedora   97 k
 libvirt-daemon-driver-storage-mpath    x86_64 4.7.0-1.fc29      @fedora   85 k
 libvirt-daemon-driver-storage-rbd      x86_64 4.7.0-1.fc29      @fedora  105 k
 libvirt-daemon-driver-storage-scsi     x86_64 4.7.0-1.fc29      @fedora   89 k
 libvirt-daemon-driver-storage-sheepdog x86_64 4.7.0-1.fc29      @fedora   89 k
 libvirt-daemon-driver-storage-zfs      x86_64 4.7.0-1.fc29      @fedora   89 k
 libvirt-daemon-driver-uml              x86_64 4.7.0-1.fc29      @fedora  148 k
 libvirt-daemon-driver-vbox             x86_64 4.7.0-1.fc29      @fedora  507 k
 libvirt-dbus                           x86_64 1.3.0-1.fc29      @updates 324 k
 libvirt-gconfig                        x86_64 1.0.0-7.fc29      @fedora  403 k
 libvirt-gobject                        x86_64 1.0.0-7.fc29      @fedora  227 k
 libzfs2                                x86_64 0.7.13-1.fc29     @zfs     342 k
 libzpool2                              x86_64 0.7.13-1.fc29     @zfs     2.1 M
 lm_sensors-libs                        x86_64 3.5.0-1.fc29      @updates  95 k
 lzop                                   x86_64 1.03-21.fc29      @fedora  114 k
 netcf-libs                             x86_64 0.2.8-10.fc29     @fedora  215 k
 perl                                   x86_64 4:5.28.1-429.fc29 @updates   0  
 perl-Encode-devel                      x86_64 4:2.98-6.fc29     @fedora   56 k
 qemu-block-curl                        x86_64 2:3.0.0-3.fc29    @updates  31 k
 qemu-block-dmg                         x86_64 2:3.0.0-3.fc29    @updates  15 k
 qemu-block-gluster                     x86_64 2:3.0.0-3.fc29    @updates  39 k
 qemu-block-iscsi                       x86_64 2:3.0.0-3.fc29    @updates  45 k
 qemu-block-nfs                         x86_64 2:3.0.0-3.fc29    @updates  36 k
 qemu-block-rbd                         x86_64 2:3.0.0-3.fc29    @updates  36 k
 qemu-block-ssh                         x86_64 2:3.0.0-3.fc29    @updates  36 k
 qemu-kvm                               x86_64 2:3.0.0-3.fc29    @updates   0  
 qemu-system-x86                        x86_64 2:3.0.0-3.fc29    @updates   0  
 qemu-system-x86-core                   x86_64 2:3.0.0-3.fc29    @updates  27 M
 sgabios-bin                            noarch 1:0.20180715git-1.fc29
                                                                 @fedora  4.0 k
 sheepdog                               x86_64 1.0.1-7.fc29      @fedora  896 k
 spice-server                           x86_64 0.14.1-2.fc29     @updates 1.2 M
 spl                                    x86_64 0.7.13-1.fc29     @zfs      54 k
 spl-dkms                               noarch 0.7.13-1.fc29     @zfs     2.8 M
 sysstat                                x86_64 11.7.3-2.fc29     @fedora  1.4 M
 virglrenderer                          x86_64 0.6.0-6.20170210git76b3da97b.fc29
                                                                 @fedora  2.1 M
 virt-install                           noarch 2.1.0-1.fc29      @updates  98 k
 zfs-dkms                               noarch 0.7.13-1.fc29     @zfs      24 M

Transaction Summary
Remove  64 Packages

Why would removing zfs remove qemu-kvm, of all things?

Version-Release number of selected component (if applicable):
zfs.x86_64                          0.7.13-1.fc29                           @zfs
dnf.noarch                         4.1.0-1.fc29                         @updates

How reproducible: Seen once, not tested again

Steps to Reproduce: Not reproduced so far, but I suspect it would be:
1. Install F28

2. Install zfs with
  $ sudo dnf install$(rpm -E %dist).noarch.rpm
  $ sudo dnf install kernel-devel zfs

3. Upgrade to F29

4. Check if /dev/zfs is there

5. Assuming it's not there, try `dnf reinstall zfs`

6. Assuming that did not fix /dev/zfs, try `dnf remove zfs` and see how many additional packages are removed

Actual results:

1. System upgrade fails to restore /dev/zfs
2. Reinstall fails to reinstall /dev/zfs
3. Uninstall removes too many packages

Expected results:

1. System upgrade should preserve the zfs package
2. Reinstalling should re-do the steps that install the driver / device file
3. Uninstall should only remove packages that actually depend on zfs.

Additional info:

Comment 1 Jaroslav Mracek 2019-03-14 19:47:34 UTC
I believe that this is a packaging issue of the zfs package. But the zfs is not a component of Fedora.

Comment 2 Jaroslav Mracek 2019-03-18 12:28:22 UTC
Please could you contact zfs maintainers to request a solution for the issue? there is no problem in DNF.

Note You need to log in before you can comment on or make changes to this bug.