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

Fixing module loading during kernel upgrade #1218

Conversation

yevgeny-shnaidman
Copy link
Member

When the node upgrade includes kernel upgrade, NMC Spec will change to include new kernel version. In that case NMC controller will try first to create unloader worker pod. Since the unloader worker pod uses the old configuration (from status), which uses the old image, the modprobe in the worker pod will fail, since it won't find kernel module under the /opt/lib/modules/ path
This PR fixes the issue by creating unloader pod in case of difference in spec and status of NMC only in case kernels are equal. Otherwise, it creates loader pod, since it means that node was rebooted, and the kernel module is not loaded yet, since the status contains old kernel

When the node upgrade includes kernel upgrade, NMC Spec will change to
include new kernel version. In that case NMC controller will try first
to create unloader worker pod. Since the unloader worker pod uses the
old configuration (from status), which uses the old image, the modprobe
in the worker pod will fail, since it won't find kernel module under the
/opt/lib/modules/<new kernel> path
This PR fixes the issue by creating unloader pod in case of difference
in spec and status of NMC only in case kernels are equal. Otherwise, it
creates loader pod, since it means that node was rebooted, and the
kernel module is not loaded yet, since the status contains old kernel
@yevgeny-shnaidman
Copy link
Member Author

/assign @ybettan

Copy link

openshift-ci bot commented Sep 22, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: yevgeny-shnaidman

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

netlify bot commented Sep 22, 2024

Deploy Preview for openshift-kmm ready!

Name Link
🔨 Latest commit 657c7f0
🔍 Latest deploy log https://app.netlify.com/sites/openshift-kmm/deploys/66f01ac07df9d400083ee757
😎 Deploy Preview https://deploy-preview-1218--openshift-kmm.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@ybettan
Copy link
Collaborator

ybettan commented Sep 22, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Sep 22, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit c076bba into rh-ecosystem-edge:main Sep 22, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants