[Bug]: dcgm-exporter no longer gets hostNetwork when a host DCGM is set through dcgmExporter.env
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 64/100
Direzione di ricerca
Leggi TransformDCGMExporter in controllers/object_controls.go e il caso di test esistente “transform dcgm exporter with dcgm running on the host itself(DGX BaseOS).” Verifica come viene applicato dcgmExporter.env rispetto alla decisione sulla rete dell’host, quindi aggiungi un test unitario per il caso segnalato con l’ambiente del container vuoto. Il lavoro è completato quando quel caso imposta hostNetwork e la policy DNS prevista e il test passa.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug
For DCGM running on the host (DGX BaseOS), TransformDCGMExporter enables hostNetwork and ClusterFirstWithHostNet when dcgm.enabled is false and DCGM_REMOTE_HOSTENGINE_INFO starts with localhost, so the exporter can reach nv-hostengine on localhost:5555.
The check reads the variable from the container (controllers/object_controls.go, the else branch after config.DCGM.IsEnabled()), but dcgmExporter.env is only applied at the end of the function. The shipped assets/state-dcgm-exporter/0800_daemonset.yaml does not set the variable, so the check always sees an empty value and the exporter stays on the pod network, where localhost:5555 is not reachable.
The order changed in 54c270cf3 ("Ensured user-supplied envvars take precedence"), first released in v25.10.0. The existing test case "transform dcgm exporter with dcgm running on the host itself(DGX BaseOS)" still passes because it puts the variable on the input DaemonSet container as well as in dcgmExporter.env.
To Reproduce
Found by reading the code and confirmed with a unit test on main (dbb11e851): TransformDCGMExporter with dcgm.enabled: false, dcgmExporter.env: [{name: DCGM_REMOTE_HOSTENGINE_INFO, value: "localhost:5555"}] and the container env empty returns a DaemonSet with the variable set but hostNetwork: false.
Expected on a cluster (not run):
- Install with
--set dcgm.enabled=false --set dcgmExporter.env[0].name=DCGM_REMOTE_HOSTENGINE_INFO --set dcgmExporter.env[0].value=localhost:5555on a node runningnv-hostengine. - The
nvidia-dcgm-exporterpod runs withouthostNetworkand cannot connect to the host engine.
Setting dcgmExporter.hostNetwork: true works around it.
Expected behavior
A localhost value from dcgmExporter.env enables hostNetwork as it did before v25.10.0. A fix that runs the check after the user env is applied is in #3092.
Environment (please provide the following information):
- GPU Operator Version: main at dbb11e851; the same code is in v26.7.2, and the order changed in v25.10.0
- OS, kernel, container runtime, Kubernetes distro: not run on a cluster; reproduced with a unit test (Go 1.27.2, macOS arm64)
- Lingua principale
- Go
- Stelle
- 2.9k
- Fork
- 576
- Merge medio
- 1g 5h
- PR unite (30g)
- 65
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di NVIDIA/gpu-operator
-
feature lifecycle/frozen needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
NVIDIA/gpu-operator#3074 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: nvidia-validator waits the full timeout on a failed validation pod; loadPodSpec panicsForse già presa @kvalliyurnatt l’ha presa 1 giorno fa. Apertabug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
NVIDIA/gpu-operator#3065 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: ClusterPolicy isDaemonSetReady can report Ready from a DaemonSet status of an older generationForse già presa @kvalliyurnatt l’ha presa 1 giorno fa. Apertabug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
NVIDIA/gpu-operator#3060 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: GPUCluster common name label breaks DRA validator selectorForse già presa @ajavanma l’ha presa 28 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
NVIDIA/gpu-operator#2955 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: Precompiled node pools drop kernels that sanitize to the same nameForse già presa @SebTardif l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 20/100
NVIDIA/gpu-operator#3098 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di NVIDIA/gpu-operator
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
grafana/tempo-operator#1691 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
hashicorp/terraform-mcp-server#583 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
-
backend bug low-priority
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
lognorman20/monaco#6225 ·