Conversation
OKD/SCOS nodes report NFD os_release.ID=centos, which produced nonexistent -centosN driver tags. Treat centos like other RHEL-family distros for version major-only tagging, and map the image ID to rhel so ClusterPolicy and NVIDIADriver paths resolve published tags. Fixes NVIDIA#2892 Signed-off-by: Dundy Pasupuleti <dundysm@gmail.com>
|
@cdesiniotis @tariq1890 @shivamerla friendly ping when you have a moment; maps centos/OKD/SCOS driver os tags to published rhelN (fixes #2892). go test ./internal/state and ./controllers green; no crd field in this pr (override can be a follow-up). |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: QUIET Plan: Enterprise Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. 📝 WalkthroughWalkthroughCentOS now maps to the Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The change preserves CentOS release identity while generating the intended RHEL-family image tags, with no established merge-blocking risk. Comment |
| // CentOS Stream / SCOS (OKD) reports ID=centos, but published driver images use the rhel tag family. | ||
| osTagName := osName | ||
| switch osName { | ||
| case "centos": |
There was a problem hiding this comment.
@dundysm thanks for your contribution!
I think we don't want to map centos to rhel in our code this way ( while this may work fine in the case of OKD)
- We never supported CentOS
- There is no guarantee that a rhel image will always work smoothly on centos
So doing this mapping in the code feels wrong, if you do want to do this you can duplicate images, put it in a public repository and override the driver image to point to yours, I don't think we want to embed this logic in code
Description
OKD/SCOS nodes report NFD
feature.node.kubernetes.io/system-os_release.ID=centos(often withVERSION_ID=10).getOSTag()/getGPUNodeOSInfo()previously built a-centos10driver image suffix, which is not published on nvcr.io, causing ImagePullBackOff.RHEL clones (
ol,rocky,rhel) already normalize to a major-only suffix. This change extends that path forcentosand maps the image ID torhel, matching the published driver tag family used successfully on SCOS today (for example-rhel10).The NFD-reported release ID remains
centosfor repo/cert/subscription path selection; only the driver image OS tag is remapped.A CRD-level
spec.driver.osTagoverride was considered but deferred as a larger follow-up; this keeps the fix small and aligned with existing rhel-family handling.Fixes #2892
Checklist
make lint)make validate-generated-assets)make validate-modules)Testing
Both packages passed locally.
Notes for reviewers
cc @cdesiniotis @karthikvetrivel @rahulait @rajathagasthya @shivamerla @tariq1890