Repository navigation
fix(recipes): align AKS training with GPU Operator-managed default - #1680
Conversation
Recipe evidence check
Protected recipesRecipes with committed evidence (
Other affected recipes without evidence yet: 64These recipes are affected by this PR but carry no committed evidence pointer, so there is
How to refresh evidenceRun on a cluster matching the recipe's aicr snapshot -o snapshot.yaml
aicr validate \
-r recipes/overlays/<slug>.yaml \
-s snapshot.yaml \
--emit-attestation ./out \
--push ghcr.io/<your-fork>/aicr-evidence
# Copy to the per-source path printed in the emit 'copyTo' hint:
# recipes/evidence/<slug>/<source>/<bundle-digest>.yamlThis gate is warning-only and never blocks merge. See ADR-007 for the trust model. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThis PR updates AKS GPU Operator values to set Estimated code review effort: 3 (Moderate) | ~20 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
272c784 to
5350563
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@recipes/components/gpu-operator/values-aks.yaml`:
- Around line 34-48: The MOFED warning logic in checks.go still treats
networkoperator as if useHostMofed may be unset, even though the effective AKS
chart value now comes from the merged driver.rdma.useHostMofed setting. Update
the validation in pkg/bundler/validations/checks.go to read the resolved chart
value for driver.rdma.useHostMofed instead of only explicit --set overrides, or
remove the warning path if it is no longer needed. Keep the check aligned with
the AKS values files so disabling networkoperator without an extra override does
not emit a redundant warning.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Enterprise
Run ID: 1d1d85a6-204b-486e-b35a-6589e6e21f28
📒 Files selected for processing (4)
docs/integrator/aks-gpu-setup.mdrecipes/components/gpu-operator/values-aks-training.yamlrecipes/components/gpu-operator/values-aks.yamlrecipes/overlays/aks.yaml
11bacac to
5a015bc
Compare
AKS has two mutually exclusive GPU ownership modes: GPU Operator-managed (--gpu-driver none pool, AKS's None/BYO install profile; driver.enabled=true, toolkit.enabled=true) and AKS driver-only (AKS's default Driver-only install profile, --enable-managed-gpu=false; driver.enabled=false, toolkit.enabled=false, operator.runtimeClass=nvidia-container-runtime, always all three together). values-aks-training.yaml shipped a broken hybrid: toolkit.enabled=false while inheriting driver.enabled=true. On a --gpu-driver none pool this leaves containerd without an nvidia runtime handler, so every gpu-operator operand fails with FailedCreatePodSandBox (no runtime for "nvidia") and nodes advertise zero nvidia.com/gpu (observed on aicr-test1, Standard_ND96isr_H100_v5). Drop the toolkit override so training inherits the global toolkit.enabled=true, matching inference and the documented default. Also drop the stale overlay/header comments that suggested the partial profile (toolkit preinstalled / driver.enabled=false alone). Correct driver.rdma.useHostMofed to false in both AKS values files: AICR supplies MOFED via network-operator's OFED container (doca-driver), which is not host-preinstalled MOFED; true caused an ib_core symbol mismatch (modprobe nvidia-peermem: Invalid argument) on aicr-test1. Document both ownership modes as complete provisioning profiles in docs/integrator/aks-gpu-setup.md, using Microsoft's install-profile terminology, warning against AKS-managed GPU node pools (--enable-managed-gpu=true, which install their own device plugin and DCGM exporter), and noting the --gpu-driver none responsibility shift. Signed-off-by: Yuan Chen <[email protected]>
5a015bc to
134e477
Compare
…VIDIA#1680) Signed-off-by: Yuan Chen <[email protected]> Co-authored-by: Mark Chmarny <[email protected]>
Summary
AKS has two mutually exclusive GPU ownership modes: GPU Operator-managed (nodepool created with
--gpu-driver none, AKS's "None/BYO" install profile;driver.enabled=true+toolkit.enabled=true; GPU Operator installs the driver and configures containerd via its toolkit DaemonSet) and AKS driver-only (AKS's default "Driver only" install profile,--enable-managed-gpu=false;driver.enabled=false+toolkit.enabled=false+operator.runtimeClass=nvidia-container-runtime, always all three together — only driver/runtime ownership transfers; the GPU Operator still owns the device plugin, DCGM exporter, and the rest of the GPU stack). The AKS training values (values-aks-training.yaml) shipped a broken hybrid —toolkit.enabled: falsewhile inheritingdriver.enabled: true— that no AKS node image satisfies. This PR removes the toolkit override so training inherits the globaltoolkit.enabled: true, aligning it with inference and the documented GPU Operator-managed default. It also correctsdriver.rdma.useHostMofedfromtruetofalsein both AKS values files: AICR supplies MOFED through network-operator's OFED container (doca-driver), which is not host-preinstalled MOFED, andtruecauses anib_coresymbol mismatch when buildingnvidia_peermem. The AKS GPU setup doc now documents both ownership modes as complete provisioning profiles.Motivation / Context
Surfaced during the Azure H100 bringup on the
aicr-test1cluster (Standard_ND96isr_H100_v5,gpuProfile.driver: None, maxPods 30):--gpu-driver nonepool): withtoolkit.enabled=falsenothing configures containerd'snvidiaruntime handler, so every gpu-operator operand stuck in Init withFailedCreatePodSandBox: no runtime for "nvidia" is configured, and GPU nodes advertised zeronvidia.com/gpu. The comment in the training values ("AKS pre-installs NVIDIA container toolkit") only holds for node images where AKS installs the driver stack, which belongs to a different, complete profile — not the documented default.useHostMofedsemantics:useHostMofeddescribes how MOFED is installed and coordinated, not where its modules execute. AICR's AKS recipe supplies MOFED via network-operator's OFED container (doca-driver,recipes/components/network-operator/manifests/nic-cluster-policy-aks.yaml), so the correct value isfalse. Onaicr-test1,useHostMofed=truefailed withmodprobe nvidia-peermem: Invalid argument(ib_coresymbol mismatch betweennvidia_peermemand the MOFED container'sib_core); after flipping tofalselive,nvidia_peermemloads cleanly and the driver DaemonSet has been healthy at 3/3 for hours.Fixes: N/A
Related: #1666 (separate track — this PR does not fix it)
Type of Change
Component(s) Affected
cmd/aicr,pkg/cli)cmd/aicrd,pkg/server)pkg/recipe)pkg/bundler,pkg/component/*)pkg/collector,pkg/snapshotter)pkg/validator)pkg/errors,pkg/k8s)docs/,examples/)Implementation Notes
recipes/components/gpu-operator/values-aks-training.yaml: deleted thetoolkit.enabled: falseblock (training now inherits the globaltoolkit.enabled: true, matching inference and the documented default) and flippeddriver.rdma.useHostMofedtofalsewith a canonical comment explaining the containerized-MOFED rationale.rdma.enabled: trueis unchanged.recipes/components/gpu-operator/values-aks.yaml: sameuseHostMofedcorrection and canonical comment; nothing else touched. The value staysfalseregardless of driver ownership mode — withdriver.enabled=falseit is inert, but the correct value prevents a future ownership-mode change from reviving the peermem bug.docs/integrator/aks-gpu-setup.md: the driver section now documents the two ownership modes as complete provisioning profiles, using Microsoft's install-profile terminology ("None/BYO" for--gpu-driver none, "Driver only" for the alternative) to avoid collision with AKS-managed GPU node pools (--enable-managed-gpu=true, preview,gpuProfile.nvidia.managementMode: Managed), which install AKS's own device plugin/DCGM exporter and must not be combined with AICR (explicit warning added). The recommended nodepool example uses the stable--gpu-driver nonealone (matching Microsoft's stable skip-driver procedure);--enable-managed-gpuis aks-preview-extension-only and appears in this page solely as descriptive text. The driver-only alternative is presented as one atomic unit (driver.enabled=false+toolkit.enabled=false+operator.runtimeClass=nvidia-container-runtime, never one side alone), noted as not yet validated end-to-end with network-operator/RDMA, and the responsibility-shift implications of--gpu-driver noneare called out with a link to Microsoft's docs.recipes/overlays/aks.yaml(comment-only) and thevalues-aks.yamlheader: removed stale guidance — the overlay claimed "AKS pre-installs NVIDIA container toolkit; disable toolkit installation" (the exact assumption this PR removes, and already inaccurate for inference, which never disabled the toolkit), and the values header suggested setting onlydriver.enabled=false(an incomplete profile). Both now describe the GPU Operator-managed default and point at the atomic three-value alternative.Known limitation + follow-ups:
CheckHostMofedWithoutNetworkOperator(pkg/bundler/validations/checks.go) can emit a redundant warning when a user passes--set networkoperator:enabled=falsewithout an explicituseHostMofedoverride, because it inspects only--setoverrides, not effective values. Follow-up: replace it with an effective-value check that warns whenever effectiveuseHostMofed=true.toolkit.enabled=false.Testing
# Commands run (prefer `make qualify` for non-trivial changes) yamllint -c .yamllint.yaml recipes/components/gpu-operator/values-aks-training.yaml recipes/components/gpu-operator/values-aks.yaml recipes/overlays/aks.yaml make bom-docs make qualifyyamllinton all three changed YAML files: clean.make bom-docs: regenerated with no diff — thecontainer-toolkit:v1.19.1image was already present indocs/user/container-images.md(the BOM is rendered from the chart's global values, where toolkit is enabled).make qualify: full gate passed on the final amended SHA134e4771— test-coverage (with-race), lint (golangci-lint + yamllint), tuning-check, e2e, vulnerability scan, and license-check all green.CheckHostMofedWithoutNetworkOperatorwarning message to match the newuseHostMofed: falsevalues default (CodeRabbit review feedback); the check still fires when the flag is explicitly overridden totruewith network-operator disabled.aicr-test1(Standard_ND96isr_H100_v5,gpuProfile.driver: None): withtoolkit.enabled=falseon this pool, every gpu-operator operand failed withFailedCreatePodSandBox: no runtime for "nvidia" is configuredand both GPU nodes advertised zeronvidia.com/gpu(the defect this PR removes); enabling the toolkit on the cluster is the next remediation step and will be reported on this PR. TheuseHostMofedcorrection is fully live-verified: withfalse,nvidia_peermemloads cleanly (driver 3/3 for hours), whereastruereproducibly failed withmodprobe nvidia-peermem: Invalid argument.Risk Assessment
Rollout notes: Affects only the AKS values profiles. Regenerate and redeploy AKS training bundles to pick up the toolkit DaemonSet and the corrected
useHostMofed. Users intentionally running the AKS driver-only profile must now pass all three overrides documented indocs/integrator/aks-gpu-setup.md(they previously relied on a broken partial default). No migration for non-AKS recipes.Checklist
make testwith-race)make lint)git commit -S) — GPG signing info