From what I got after that... It errors in dpkg, so it leaves the old
modules built for the kernels that it did upgrade to successfully
(there).

Mine error'ed out when it tried to upgrade from 6.2.0-36 to 6.2.0-37. If
worried me also, BUT... It did reboot.

Since linux-image-6.2.0-37-generic errored out during the install, it
does not add it to the Grub2 grub.cfg menu, so on reboot, it booted into
6.2.0-36 as the running kernel, on the modules it built.

Each time it tried to do anything (updates), it would install anything
new manually, but not actually do any of the updates. It looked like
they were updating, then hit that zfs-dkms error.

From the output, it initially looked like it installed all the update
except zfs-dkms, but that assumption was wrong. Next time I tried to
update, it tried to update those same exact packages that were in that
previous update (grouping), plsu anything newly added to those-- which
tells me it did not upgrade any of them.

This morning, I see that Mantic and Noble got updates for zfs-dkms...
But I haven't heard yet about Lunar. I don't see anything in any of my
Jammy machine's updates.

The work-around I came up with... I haven't found an easier way. If you
remove it before that update failure, then you do not need to reinstall
linux-headers-XXX and update the instramfs files... Because it didn't
hit the bug yet where it failed to build the modules. BUT...

And this is a big "BUT", something with zfs-dkms is somewhat 'evil'.
When you remove it, somehow it exports all the zpools besides rpool!!!

*** It does not do that immediately. ***

Somehow, between the shutdown and reboot it exports all the pools
besides rpool. I don't know why, but it just does. (That is why I
refered to zfs-dkms' as soemhow being 'evil'. It has deep roots.)

While still booted, before that, everything is still mounted. You can
export and import the pools. It does not matter. On the next boot, after
removing package 'zfs-dkms', nothing is mounted except for rpool.

That work-around has instructions on how to import/mount everything back
up and how to get it booting again.

*** Like I found out, package 'zfs-linux' is not needed anymore to build
the zfs module during a kernel update. That was added by Canonical in-
kernel. No one announced that change when that happened. We (Us Users)
know that now.

Only a few of us still need zfs-dkms for out-of-series kernels, and
testing DEV and Proposed packages, where weird circumstances are
presented. But we are doing things that are "not normal", for the sake
of Ubuntu and it's users.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to zfs-linux in Ubuntu.
https://bugs.launchpad.net/bugs/2044630

Title:
  zfs-dkms 2.1.5-1ubuntu6~22.04.2- Kernel module failed to build

Status in zfs-linux package in Ubuntu:
  Confirmed

Bug description:
  On todays updates, zfs-dkms 2.1.5-1ubuntu6~22.04.2 failed to build
  kernel module.

  Genrated Crash report, but couldn't send it on it's own.

  Error it kept throwing was:
  >>>
  Setting up zfs-dkms (2.1.5-1ubuntu6~22.04.2) ...
  Loading new zfs-2.1.5 DKMS files...
  Building for 6.2.0-36-generic 6.2.0-37-generic
  Building initial module for 6.2.0-36-generic
  configure: error:
   *** None of the expected "iops->get_acl()" interfaces were detected.
   *** This may be because your kernel version is newer than what is
   *** supported, or you are using a patched custom kernel with
   *** incompatible modifications.
   ***
   *** ZFS Version: zfs-2.1.5-1ubuntu6~22.04.2
   *** Compatible Kernels: 3.10 - 5.19

  ERROR: Cannot create report: [Errno 17] File exists: 
'/var/crash/zfs-dkms.0.crash'
  Error! Bad return status for module build on kernel: 6.2.0-36-generic (x86_64)
  Consult /var/lib/dkms/zfs/2.1.5/build/make.log for more information.
  dpkg: error processing package zfs-dkms (--configure):
   installed zfs-dkms package post-installation script subprocess returned 
error exit status 10
  >>>

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: zfs-dkms 2.1.5-1ubuntu6~22.04.2
  ProcVersionSignature: Ubuntu 6.2.0-36.37~22.04.1-generic 6.2.16
  Uname: Linux 6.2.0-36-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia zfs zunicode zavl icp zcommon 
znvpair
  ApportVersion: 2.20.11-0ubuntu82.5
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: GNOME
  Date: Sat Nov 25 21:00:27 2023
  InstallationDate: Installed on 2021-09-23 (793 days ago)
  InstallationMedia: Ubuntu 20.04.3 LTS "Focal Fossa" - Release amd64 (20210819)
  PackageArchitecture: all
  SourcePackage: zfs-linux
  UpgradeStatus: Upgraded to jammy on 2022-08-17 (466 days ago)

  To recreate:
  - Install Ubuntu 22.04.3.
  - Update to current.
  - Install package 'zfs-dkms'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/2044630/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to