[Bug]: Cannot use custom repoConfig together with RHEL host subscription repositories after #2391
Maintainer thường phản hồi trong vòng 1 ngày
@rahulait đang làm issue này rồi.
Từ ngày 27/8/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Describe the bug
On RHEL nodes we use the GPU Operator with a custom driver.repoConfig
ConfigMap to provide additional package repositories required by the NVIDIA
driver installation.
At the same time, we rely on the RHEL subscription configuration from the
host for the standard RHEL BaseOS/AppStream repositories.
Before #2391, the driver pod received the RHEL host subscription mounts:
/etc/pki/entitlement/etc/yum.repos.d/redhat.repo/etc/rhsm
With #2391, enabling repoConfig causes these host subscription mounts to be
skipped completely:
if cr.Spec.IsRepoConfigEnabled() && pool.osRelease == "rhel" {
logger.Info("Skipping host subscription mounts because repoConfig is enabled", ...)
} else {
pathToVolumeSource, err = getSubscriptionPathsToVolumeSources(pool.osRelease)
...
}
This makes repoConfig mutually exclusive with the RHEL subscription
repositories.
Expected behavior
repoConfig should allow adding custom repositories while still allowing the
driver container to use the RHEL subscription repositories from the host.
In our environment we need both:
Host RHEL subscription
├── BaseOS
└── AppStream
Custom repoConfig
└── additional repository (e.g. CUDA/internal repository)
The custom repository does not replace the RHEL repositories.
Actual behavior
As soon as driver.repoConfig is configured, the RHEL host subscription
mounts are omitted.
The driver container consequently cannot access packages that are only
available through the RHEL repositories.
For example, driver installation fails with:
dnf install -y --releasever=9 elfutils-libelf-devel.x86_64
No match for argument: elfutils-libelf-devel.x86_64
Error: Unable to find a match: elfutils-libelf-devel.x86_64
FATAL: failed to install elfutils-libel-devel.
RHEL entitlement may be improperly deployed.
The same package can be resolved successfully on the RHEL host using its
subscription repositories.
If repoConfig is removed, the Operator mounts the host RHEL subscription
configuration again and the RHEL repositories are available.
Why #2391 causes a regression for this use case
I understand that #2391 addresses air-gapped RHEL installations where
redhat.repo and/or RHSM paths might not exist and a custom repoConfig
completely replaces the distribution repositories.
However, repoConfig does not necessarily mean that the user wants to
replace the RHEL repositories.
There are two valid configurations:
-
Fully air-gapped:
repoConfigreplaces all package repositories. -
Additional repositories:
RHEL subscription repositories +repoConfig.
After #2391 only case 1 is possible.
Suggested solution
Do not automatically disable RHEL subscription mounts merely because
repoConfig is configured.
Alternatively, provide an explicit option, for example:
driver:
repoConfig:
configMapName: custom-repos
disableSubscriptionMounts: false
This could default appropriately for backwards compatibility / air-gapped
installations.
Another possibility would be a separate option controlling host subscription
mounts:
driver:
useHostSubscription: true
This would allow users to explicitly choose between:
repoConfig only
and:
repoConfig + host RHEL subscription
Environment
- OS: RHEL 9
- Kubernetes: RKE2
- Container runtime: containerd
- GPU Operator: v26.7.0
- Related PR: #2391
- Related issue: #1501
- Ngôn ngữ chính
- Go
- Star
- 2.9k
- Fork
- 552
- Merge trung bình
- 1 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 68
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của NVIDIA/gpu-operator
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
NVIDIA/gpu-operator#2968 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
NVIDIA/gpu-operator#2955 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
lifecycle/stale question
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
NVIDIA/gpu-operator#2280 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: GPU Operator MPS config-manager cannot signal MPS daemon due to process-target mismatchĐang mởbug needs-triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
NVIDIA/gpu-operator#2970 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 68/100
NVIDIA/gpu-operator#2957 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của NVIDIA/gpu-operator
Issue tương tự
-
Remove CAAPFĐang mởkind/chore kind/cleanup needs-area
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
rancher/turtles#2848 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
priority: low 🌱 type: enhancement 💅🏼
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 84/100
nebari-dev/llm-serving-pack#199 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
kedacore/keda#8225 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày