-
Notifications
You must be signed in to change notification settings - Fork 168
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
kola/switch-kernel: rpm-ostree fails to switch from Default to RT Kernel #1245
Comments
@jlebon @cgwalters This looks like an |
Yup, agreed this is likely an rpm-ostree problem. Will look into this. |
Hmm actually I can't reproduce this locally on a fresh RHCOS build. Both running What RHCOS are you testing this on? |
Did fresh builds on two different machines, and ran |
So I've updated
, same as observed in Jenkins pipeline (https://jenkins-rhcos-art.cloud.privileged.psi.redhat.com/job/rhcos-art-rhcos-4.5/76/console). Since the related error is now gone, should we close this issue? |
Hmm yeah that's a different issue. No issues reusing this ticket if you'd prefer. Maybe try to run the same commands manually yourself until you hit the error? The kola SSH wrappers might be swallowing stderr. |
This is a pretty old issue. Two things:
The challenge with (1) is that this requires some support on the kola side because we need access to the kernel-rt RPMs. Those RPMs are now shipped as part of the extensions container. We could have a kola test tag like |
Sorry, this is incorrect. openshift/os#1383 doesn't use the layering flow, but also does it client-side. The layering test lives in FCOS: https://github.com/coreos/fedora-coreos-config/blob/832c42ba3f406f88647621300aeecde30e9d14ef/tests/kola/rpm-ostree/kernel-replace. So then ideally, we generalize that test so it can work on both FCOS and SCOS/RHCOS. |
In one of the old [issues](coreos/coreos-assembler#1245 (comment)) kola switch-kernel tests were failing. In the discussion @jlebon [suggested](coreos/coreos-assembler#1245 (comment)) to remove named test and make it external, so that it can be utilized by FCOS, and also SCOS/RHCOS. Aditionally kernel version for FCOS was bumped in this PR to the latest stable 6.9.8-200.fc40
In one of the older issues, kola switch-kernel test was failing. In the discussion @jlebon [suggested](coreos/coreos-assembler#1245 (comment)) to remove named test and make it external, so that it can be utilized by FCOS, and also SCOS/RHCOS. Aditionally kernel version for FCOS was bumped in this PR to the latest stable 6.9.8-200.fc40 See: coreos/coreos-assembler#1245
In one of the older issues, kola switch-kernel test was failing. In the discussion @jlebon suggested to remove named test and make it external, so that it can be utilized by FCOS, and also SCOS/RHCOS. Additionally, the kernel version for FCOS was updated in this PR to the latest stable version `6.9.8-200.fc40`. See: coreos/coreos-assembler#1245
Let's close this one. The command was removed in #3825 in favour of external tests. Relatedly, @c4rt0 is working on generalizing the existing layering test that we have in f-c-c: coreos/fedora-coreos-config#3048 |
In one of the older issues, kola switch-kernel test was failing. In the discussion @jlebon suggested to remove named test and make it external, so that it can be utilized by FCOS, and also SCOS/RHCOS. Additionally, the kernel version for FCOS was updated in this PR to the latest stable version `6.9.8-200.fc40`. See: coreos/coreos-assembler#1245
In one of the older issues, kola switch-kernel test was failing. In the discussion @jlebon suggested to remove named test and make it external, so that it can be utilized by FCOS, and also SCOS/RHCOS. Additionally, the kernel version for FCOS was updated in this PR to the latest stable version `6.9.8-200.fc40`. See: coreos/coreos-assembler#1245
In one of the older issues, kola switch-kernel test was failing. In the discussion @jlebon suggested to remove named test and make it external, so that it can be utilized by FCOS, and also SCOS/RHCOS. Additionally, the kernel version for FCOS was updated in this PR to the latest stable version `6.9.8-200.fc40`. See: coreos/coreos-assembler#1245
Bug Report
Environment
What operating system is being used to run coreos-assembler?
Fedora 30
What operating system is being assembled?
RHCOS
Is coreos-assembler running in Podman or Docker?
Podman
If Podman, is coreos-assembler running privileged or unprivileged?
Privileged
Expected Behavior
rpm-ostree command successfully switched kernel from default to rt kernel with command:
rpm-ostree override remove kernel kernel-core kernel-modules kernel-modules-extra --install kernel-rt-core-4.18.0-147.5.1.rt24.98.el8_1.x86_64.rpm --install kernel-rt-modules-4.18.0-147.5.1.rt24.98.el8_1.x86_64.rpm --install kernel-rt-modules-extra-4.18.0-147.5.1.rt24.98.el8_1.x86_64.rpm
Actual Behavior
Reproduction Steps
cosa kola switch-kernel -b rhcos --ignition-version v2 --kernel-rt ./kernel-rt
Other Information
Investigated a bit and found https://bugzilla.redhat.com/show_bug.cgi?id=1767215, which seems related. I've tried manually run the above rpm-ostree command inside RHCOS and the same behavior happened. And the origin of the error message is https://github.com/coreos/rpm-ostree/blob/2ee48c51fede72f1f0394c070c0f35946f3e1839/src/libpriv/rpmostree-kernel.c#L141, which only triggers when the directory
/usr/lib/modules
contains more than one sub-directories. But again,This error did not occur when #1218 got merged. Am I missing anything..?
The text was updated successfully, but these errors were encountered: