Having trouble using leapp to upgrade from Rocky8 to Rocky9

At work I have 2 servers that I have tested with the same problem. I am using a kernel from elrepo-kernel and that seems to create the conflict.

[root@fs2 leapp]# leapp preupgrade --no-rhsm --enablerepo elrepo-kernel --enablerepo elrepo
==> Processing phase `configuration_phase`
====> * ipu_workflow_config
        IPU workflow config actor
==> Processing phase `FactsCollection`
====> * scanblacklistca

...

============================================================
                           ERRORS
============================================================

2024-05-06 16:20:04.301145 [ERROR] Actor: scan_source_kernel
Message: Unable to obtain kernel information of the booted kernel: no package is providing the booted kernel release returned by uname.

============================================================
                       END OF ERRORS
============================================================

I the debug log I have:

2024-05-06 16:27:43.791 DEBUG    PID: 1436401 leapp.workflow.FactsCollection.scan_kernel_cmdline: External command has finished: ['cat', '/proc/cmdline']
2024-05-06 16:28:00.735 INFO     PID: 1435367 leapp.workflow.FactsCollection: Executing actor scan_source_kernel
2024-05-06 16:28:00.808 DEBUG    PID: 1436852 leapp.workflow.FactsCollection.scan_source_kernel: External command has started: ['rpm', '-q', '--whatprovides', 'kernel-uname-r']
2024-05-06 16:28:00.854 DEBUG    PID: 1436852 leapp.workflow.FactsCollection.scan_source_kernel: kernel-core-4.18.0-513.18.1.el8_9.x86_64
2024-05-06 16:28:00.889 DEBUG    PID: 1436852 leapp.workflow.FactsCollection.scan_source_kernel: kernel-core-4.18.0-513.24.1.el8_9.x86_64
2024-05-06 16:28:00.890 DEBUG    PID: 1436852 leapp.workflow.FactsCollection.scan_source_kernel: External command has finished: ['rpm', '-q', '--whatprovides', 'kernel-uname-r']
2024-05-06 16:28:00.891 DEBUG    PID: 1436852 leapp.workflow.FactsCollection.scan_source_kernel: External command has started: ['rpm', '-q', '--whatprovides', 'kernel-rt-uname-r']
2024-05-06 16:28:00.899 DEBUG    PID: 1436852 leapp.workflow.FactsCollection.scan_source_kernel: no package provides kernel-rt-uname-r
2024-05-06 16:28:00.900 DEBUG    PID: 1436852 leapp.workflow.FactsCollection.scan_source_kernel: Command ['rpm', '-q', '--whatprovides', 'kernel-rt-uname-r'] failed with exit code 1.
2024-05-06 16:28:00.901 DEBUG    PID: 1436852 leapp.workflow.FactsCollection.scan_source_kernel: External command has finished: ['rpm', '-q', '--whatprovides', 'kernel-rt-uname-r']
2024-05-06 16:28:00.902 DEBUG    PID: 1436852 leapp.workflow.FactsCollection.scan_source_kernel: External command has started: ['rpm', '-q', '--provides', 'kernel-core-4.18.0-513.24.1.el8_9.x86_64']
2024-05-06 16:28:01.984 DEBUG    PID: 1436852 leapp.workflow.FactsCollection.scan_source_kernel: External command has finished: ['rpm', '-q', '--provides', 'kernel-core-4.18.0-513.24.1.el8_9.x86_64']
2024-05-06 16:28:01.991 DEBUG    PID: 1436852 leapp.workflow.FactsCollection.scan_source_kernel: External command has started: ['rpm', '-q', '--provides', 'kernel-core-4.18.0-513.18.1.el8_9.x86_64']
2024-05-06 16:28:02.424 DEBUG    PID: 1436852 leapp.workflow.FactsCollection.scan_source_kernel: External command has finished: ['rpm', '-q', '--provides', 'kernel-core-4.18.0-513.18.1.el8_9.x86_64']

I have these kernels:


[root@fs2 leapp]# uname -a
Linux fs2 6.8.9-1.el8.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May  2 14:32:16 EDT 2024 x86_64 x86_64 x86_64 GNU/Linux
[root@fs2 leapp]# ls -al /usr/src/kernels/
total 16
drwxr-xr-x.  6 root root  141 May  4 19:36 .
drwxr-xr-x.  6 root root   66 May  4 19:38 ..
drwxr-xr-x. 29 root root 4096 Apr  9 18:14 4.18.0-513.24.1.el8_9.x86_64
drwxr-xr-x. 30 root root 4096 Apr 25 11:57 6.8.7-1.el8.elrepo.x86_64
drwxr-xr-x. 30 root root 4096 Apr 27 17:16 6.8.8-1.el8.elrepo.x86_64
drwxr-xr-x. 30 root root 4096 May  4 19:38 6.8.9-1.el8.elrepo.x86_64

@drescherjm, your leapp case of using elrepo kernel is new to me. I suggest you post this error message to elevate issue on github. Also beaware rockylinux community here is officially not supporting elevate or leapp.

Thanks, I see that there is a github repository for leapp and one for elevate. I am not using the latest versions of either of these. I am just using the versions that are installed by default. I will check into this probably next week.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.