#90 Version of installed kernel-modules is different than the running kernel
Opened 4 years ago by plautrba. Modified 3 years ago


I can imagine 2 solutions, but neither would be perfect.

  1. is to install kernel-modules by default when preparing the qcow2 to make sure it is the some version of installed kernel. This solution doesn't solve the problem if other kernel related package like kernel-devel or -debuginfo packages are defined on tests.yml.

  2. When preparing the qcow2 we make sure we update the kernel, when installing kernel related packages on tests.yml will match the version. The problem is in case the new kernel is broken and we are not able to boot the VM, for example, every build will be impacted.

I've used a workaround which manually installs the right version:

+     - install-kernel-modules:
+         run: dnf install -y kernel-modules-`uname -r`

@bookwar it looks like kernel tests are stable [1], what do you think if we enable gating for kernel? In that case it should be safe enough to update kernel when preparing the qcow2.

[1] https://jenkins-continuous-infra.apps.ci.centos.org/view/Fedora%20All%20Packages%20Pipeline/job/fedora-rawhide-build-pipeline/8713/

Metadata Update from @jimbair:
- Issue assigned to bookwar

4 years ago

I believe we hit this problem again - https://src.fedoraproject.org/tests/selinux/pull-request/97

I'm not sure if kernel module package is installed by default in the qcow2. Would be possible for the test to install the kernel module?

I'd expect it's there given that:

$ rpm -q --requires kernel     
kernel-core-uname-r = 5.7.15-200.fc32.x86_64
kernel-modules-uname-r = 5.7.15-200.fc32.x86_64

$ rpm -q --provides kernel-modules
kernel-modules-uname-r = 5.6.15-300.fc32.x86_64

Even though it's possible that there's only kernel-core.

Anyway, we'll try it again with kernel-modules required/installed

Login to comment on this ticket.

Metadata