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

KMM Day1 should support scratch images #910

Closed
yevgeny-shnaidman opened this issue Dec 6, 2023 · 3 comments · Fixed by #939
Closed

KMM Day1 should support scratch images #910

yevgeny-shnaidman opened this issue Dec 6, 2023 · 3 comments · Fixed by #939
Assignees

Comments

@yevgeny-shnaidman
Copy link
Member

in KMM V2.0, the drivers containers image are recommended to be scratched ( minimal images, no need for any packages to be installed, only .ko files). In Day1 package code, we rely on modprobe executable being present in the drivers container image. Since we recommend that the same image that is used for Day2 can also be used for day1, we need to see how this issue can be solved. One possible solution: mapped host /usr/sbin directory into the running container

@yevgeny-shnaidman yevgeny-shnaidman self-assigned this Dec 6, 2023
@qbarrand
Copy link
Contributor

Unfortunately as of today Red Hat can only certify container images based on UBI. That includes kmod images, so downstream we should not recommend images based on scratch, but rather something like ubi9-micro.

One possible solution: mapped host /usr/sbin directory into the running container

Is the kmod package guaranteed to be installed on hosts?

@yevgeny-shnaidman
Copy link
Member Author

I think it is pretty guaranteed, that kmod will be installed on an Openshift node. At the very least, it is more reliable to count on it to be installed on the node, than to count on it to be installed on the ubi-micro images, especially if somewhere in the future we/customer can move to the scratch images

@pcolledg-amd
Copy link
Contributor

Whether the DriverContainer images could be certified or not isn't a deciding factor for some partners. Additionally, the reduction in maintenance costs (security patching) that a scratch-based image provides is substantial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants