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

support inTree removal scenario for nodes without .ko files #1210

Conversation

yevgeny-shnaidman
Copy link
Member

Modprobe will fail with error in case it cannot find an appropriate .ko file when asked to remove a kernel module. With in-tree removal scenario, modporbe search path is /lib/modules on the host, and not the worker image.
This PR contains the following:

  1. Adding FileExists function that check the presence of a file under
    a search path based on a regexp
  2. in worker flow, in case in-tree removal scenario is requisted, worker
    will verify if the requested .ko file(s) are present on the host,
    remove from the request missing files and will proceed with the
    removal scenario for the rest
  3. unit-test

Modprobe will fail with error in case it cannot find an appropriate
.ko file when asked to remove a kernel module. With in-tree removal
scenario, modporbe search path is /lib/modules on the host, and not
the worker image.
This PR contains the following:
1) Adding FileExists function that check the presence of a file under
   a search path based on a regexp
2) in worker flow, in case in-tree removal scenario is requisted, worker
   will verify if the requested .ko file(s) are present on the host,
   remove from the request missing files and will proceed with the
   removal scenario for the rest
3) unit-test
Copy link

netlify bot commented Sep 11, 2024

Deploy Preview for openshift-kmm ready!

Name Link
🔨 Latest commit f605c0a
🔍 Latest deploy log https://app.netlify.com/sites/openshift-kmm/deploys/66e193aafc108e000858502b
😎 Deploy Preview https://deploy-preview-1210--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.

Copy link

openshift-ci bot commented Sep 11, 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

@ybettan
Copy link
Collaborator

ybettan commented Sep 11, 2024

/lgtm

@yevgeny-shnaidman
Copy link
Member Author

Fixes1208

@yevgeny-shnaidman
Copy link
Member Author

/test e2e

3 similar comments
@yevgeny-shnaidman
Copy link
Member Author

/test e2e

@yevgeny-shnaidman
Copy link
Member Author

/test e2e

@yevgeny-shnaidman
Copy link
Member Author

/test e2e

@yevgeny-shnaidman
Copy link
Member Author

/retest

@danilo-gemoli
Copy link

/test e2e-hub

@yevgeny-shnaidman
Copy link
Member Author

/test e2e

@yevgeny-shnaidman
Copy link
Member Author

/test operator-upgrade

@openshift-merge-bot openshift-merge-bot bot merged commit ed8e38a into rh-ecosystem-edge:main Sep 12, 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.

3 participants