Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic DKMS installation does not detect different versions of the same module during upgrade. #358

Open
SahorSs opened this issue Oct 23, 2023 · 1 comment

Comments

@SahorSs
Copy link

SahorSs commented Oct 23, 2023

If you add several versions of one module and the update of one of them fails, the update of the remaining modules will not start.

ls -la /var/lib/dkms/xiraid/
total 0
drwxr-xr-x. 5 root root 126 Oct 22 16:50 .
drwxr-xr-x. 3 root root  50 Oct 22 16:50 ..
drwxr-xr-x. 3 root root  33 Oct 22 16:50 4.0.2-5.14.0-162
drwxr-xr-x. 3 root root  33 Oct 22 16:50 4.0.2-5.14.0-284
drwxr-xr-x. 3 root root  55 Oct 22 16:50 4.0.2-5.14.0-70
lrwxrwxrwx. 1 root root  50 Oct 22 16:50 kernel-5.14.0-70.30.1.el9_0.x86_64-x86_64 -> 4.0.2-5.14.0-70/5.14.0-70.30.1.el9_0.x86_64/x86_64
[root@localhost ~]# dnf install kernel-5.14.0-162.6.1.el9_1.x86_64 kernel-devel-5.14.0-162.6.1.el9_1.x86_64
Updating Subscription Management repositories.
Last metadata expiration check: 0:02:43 ago on Sun 22 Oct 2023 04:49:17 PM MSK.
Dependencies resolved.
 Package                         Architecture            Version                                  Repository                                         Size
==========================================================================================================================================================
Installing:
 kernel                          x86_64                  5.14.0-162.6.1.el9_1                     rhel-9-for-x86_64-baseos-rpms                     1.8 M
 kernel-devel                    x86_64                  5.14.0-162.6.1.el9_1                     rhel-9-for-x86_64-appstream-rpms                   21 M
Installing dependencies:
 kernel-core                     x86_64                  5.14.0-162.6.1.el9_1                     rhel-9-for-x86_64-baseos-rpms                      46 M
 kernel-modules                  x86_64                  5.14.0-162.6.1.el9_1                     rhel-9-for-x86_64-baseos-rpms                      34 M

Transaction Summary
==========================================================================================================================================================
Install  4 Packages

Total download size: 102 M
Installed size: 175 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): kernel-5.14.0-162.6.1.el9_1.x86_64.rpm                                                                             615 kB/s | 1.8 MB     00:03
(2/4): kernel-devel-5.14.0-162.6.1.el9_1.x86_64.rpm                                                                       3.4 MB/s |  21 MB     00:06
(3/4): kernel-modules-5.14.0-162.6.1.el9_1.x86_64.rpm                                                                     3.4 MB/s |  34 MB     00:09
(4/4): kernel-core-5.14.0-162.6.1.el9_1.x86_64.rpm                                                                        3.2 MB/s |  46 MB     00:14
----------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                     7.1 MB/s | 102 MB     00:14
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                  1/1
  Installing       : kernel-core-5.14.0-162.6.1.el9_1.x86_64                                                                                          1/4
  Running scriptlet: kernel-core-5.14.0-162.6.1.el9_1.x86_64                                                                                          1/4
  Installing       : kernel-modules-5.14.0-162.6.1.el9_1.x86_64                                                                                       2/4
  Running scriptlet: kernel-modules-5.14.0-162.6.1.el9_1.x86_64                                                                                       2/4
  Installing       : kernel-5.14.0-162.6.1.el9_1.x86_64                                                                                               3/4
  Installing       : kernel-devel-5.14.0-162.6.1.el9_1.x86_64                                                                                         4/4
  Running scriptlet: kernel-devel-5.14.0-162.6.1.el9_1.x86_64                                                                                         4/4
  Running scriptlet: kernel-core-5.14.0-162.6.1.el9_1.x86_64                                                                                          4/4
dkms: running auto installation service for kernel 5.14.0-162.6.1.el9_1.x86_64
Sign command: /lib/modules/5.14.0-162.6.1.el9_1.x86_64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
make -j8 KERNELRELEASE=5.14.0-162.6.1.el9_1.x86_64 DKMS_BUILD=1...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.14.0-162.6.1.el9_1.x86_64 (x86_64)
Consult /var/lib/dkms/xiraid/4.0.2-5.14.0-284/build/make.log for more information.
 Done.
dkms: running auto installation service for kernel 5.14.0-162.6.1.el9_1.x86_64
Sign command: /lib/modules/5.14.0-162.6.1.el9_1.x86_64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
make -j8 KERNELRELEASE=5.14.0-162.6.1.el9_1.x86_64 DKMS_BUILD=1...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.14.0-162.6.1.el9_1.x86_64 (x86_64)
Consult /var/lib/dkms/xiraid/4.0.2-5.14.0-284/build/make.log for more information.
 Done.

  Running scriptlet: kernel-modules-5.14.0-162.6.1.el9_1.x86_64                                                                                       4/4
  Running scriptlet: kernel-devel-5.14.0-162.6.1.el9_1.x86_64                                                                                         4/4
  Verifying        : kernel-modules-5.14.0-162.6.1.el9_1.x86_64                                                                                       1/4
  Verifying        : kernel-core-5.14.0-162.6.1.el9_1.x86_64                                                                                          2/4
  Verifying        : kernel-5.14.0-162.6.1.el9_1.x86_64                                                                                               3/4
  Verifying        : kernel-devel-5.14.0-162.6.1.el9_1.x86_64                                                                                         4/4
Installed products updated.

Installed:
  kernel-5.14.0-162.6.1.el9_1.x86_64                  kernel-core-5.14.0-162.6.1.el9_1.x86_64          kernel-devel-5.14.0-162.6.1.el9_1.x86_64
  kernel-modules-5.14.0-162.6.1.el9_1.x86_64

Complete!
@evelikov
Copy link
Collaborator

evelikov commented Nov 29, 2023

Which version of dkms are you using? We had a bunch of changes with 3.0.11 - would be great if know if those fixed or regressed your use-case. If you can you try 3.0.10 and 3.0.11 that would be great.

AFAICT autoinstall picks only the latest version of the dkms module(s) - that's intentional, since *the newer versioned module should support both older and newer kernels. Alternatively you can easily end up with old_module + new_kernel, where the former cannot build/is buggy with the latter.

What is your use-case for a having newer version of the module, yet not building/using it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants