Repository navigation
Add device-plugin allocation mode to secure accelerator access test - #75
Conversation
bb35acd to
219d401
Compare
Part 1 of 2 for NVIDIA#1327. The NVIDIA DRA driver's supported configuration is ComputeDomain-only (no gpu.nvidia.com DeviceClass); whole GPUs come from the device plugin. AICR's conformance checks and inference-perf workload hard-required full-GPU DRA and fail on such clusters, while the CNCF secure_accelerator_access requirement permits 'device plugin or DRA'. Mirrors the upstream fix in kubernetes-sigs/ai-conformance#75. - Add a shared GPU allocation capability probe: DRA usable only via complete current-generation ResourceSlice pools with untainted devices reachable from Ready schedulable nodes (all four slice topologies); device-plugin usable via node allocatable; dual advertisement logs an over-admission warning (error promotion deferred to the recipe-flip PR). - secure-accelerator-access dispatches on the probe: unchanged DRA isolation test when usable, otherwise an equivalent device-plugin isolation test; drop the hard rejection of nvidia.com/gpu. - dra-support never falls back to the device plugin; driver installed with DRA API missing is now a failure (skip only when the driver is absent); behavioral allocation runs only when full-GPU DRA is usable, otherwise recorded as not applicable. - inference-perf: workers request GPUs via resources.limits nvidia.com/gpu (ResourceClaimTemplate removed); occupancy accounting counts device-plugin requests of bound non-terminal pods plus DRA allocations, failing closed on list errors. - Convert vllm/dynamo/gang-scheduling workload manifests to device-plugin GPU requests, moving kai.scheduler/queue labels onto pod templates. ComputeDomain/IMEX and RoCE DRA paths untouched. Signed-off-by: Yuan Chen <yuanchen97@gmail.com> Hardened per multi-reviewer review of the initial draft: - dra-support scope comes from the recipe ComponentRefs (fail when the recipe enables the driver but it is absent; skip only when excluded or disabled; live-detection fallback for standalone runs). - NVIDIA ResourceSlice validation (pool generation/completeness, device taints, Ready-node topology) now also gates the ComputeDomain-only pass path of dra-support. - Multi-container isolation subtest added to secure-access in both allocation modes (upstream ai-conformance#75 parity). - DRAExtendedResource attribution guard: device-plugin mode fails closed when a DeviceClass maps nvidia.com/gpu; occupancy accounting deduplicates KEP-5004 claims via pod.status.extendedResourceClaimStatus. - One-shot init containers after restartable sidecars are counted per Kubernetes effective-request rules. - NotIn node-selector matching follows Kubernetes absent-key semantics. - Mechanism-neutral diagnostics; CNCF evidence descriptions and docs/user/validation.md updated to match the new behavior. Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
Part 1 of 2 for NVIDIA#1327. The NVIDIA DRA driver's supported configuration is ComputeDomain-only (no gpu.nvidia.com DeviceClass); whole GPUs come from the device plugin. AICR's conformance checks and inference-perf workload hard-required full-GPU DRA and fail on such clusters, while the CNCF secure_accelerator_access requirement permits 'device plugin or DRA'. Mirrors the upstream fix in kubernetes-sigs/ai-conformance#75. - Add a shared GPU allocation capability probe: DRA usable only via complete current-generation ResourceSlice pools with untainted devices reachable from Ready schedulable nodes (all four slice topologies); device-plugin usable via node allocatable; dual advertisement logs an over-admission warning (error promotion deferred to the recipe-flip PR). - secure-accelerator-access dispatches on the probe: unchanged DRA isolation test when usable, otherwise an equivalent device-plugin isolation test; drop the hard rejection of nvidia.com/gpu. - dra-support never falls back to the device plugin; driver installed with DRA API missing is now a failure (skip only when the driver is absent); behavioral allocation runs only when full-GPU DRA is usable, otherwise recorded as not applicable. - inference-perf: workers request GPUs via resources.limits nvidia.com/gpu (ResourceClaimTemplate removed); occupancy accounting counts device-plugin requests of bound non-terminal pods plus DRA allocations, failing closed on list errors. - Convert vllm/dynamo/gang-scheduling workload manifests to device-plugin GPU requests, moving kai.scheduler/queue labels onto pod templates. ComputeDomain/IMEX and RoCE DRA paths untouched. Hardened per multi-reviewer review of the initial draft: - dra-support scope comes from the recipe ComponentRefs (fail when the recipe enables the driver but it is absent; skip only when excluded or disabled; live-detection fallback for standalone runs). - NVIDIA ResourceSlice validation (pool generation/completeness, device taints, Ready-node topology) now also gates the ComputeDomain-only pass path of dra-support. - Multi-container isolation subtest added to secure-access in both allocation modes (upstream ai-conformance#75 parity). - DRAExtendedResource attribution guard: device-plugin mode fails closed when a DeviceClass maps nvidia.com/gpu; occupancy accounting deduplicates KEP-5004 claims via pod.status.extendedResourceClaimStatus. - One-shot init containers after restartable sidecars are counted per Kubernetes effective-request rules. - NotIn node-selector matching follows Kubernetes absent-key semantics. - Mechanism-neutral diagnostics; CNCF evidence descriptions and docs/user/validation.md updated to match the new behavior. Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
Part 1 of 2 for NVIDIA#1327. The NVIDIA DRA driver's supported configuration is ComputeDomain-only (no gpu.nvidia.com DeviceClass); whole GPUs come from the device plugin. AICR's conformance checks and inference-perf workload hard-required full-GPU DRA and fail on such clusters, while the CNCF secure_accelerator_access requirement permits 'device plugin or DRA'. Mirrors the upstream fix in kubernetes-sigs/ai-conformance#75. - Add a shared GPU allocation capability probe: DRA usable only via complete current-generation ResourceSlice pools with untainted devices reachable from Ready schedulable nodes (all four slice topologies); device-plugin usable via node allocatable; dual advertisement logs an over-admission warning (error promotion deferred to the recipe-flip PR). - secure-accelerator-access dispatches on the probe: unchanged DRA isolation test when usable, otherwise an equivalent device-plugin isolation test; drop the hard rejection of nvidia.com/gpu. - dra-support never falls back to the device plugin; driver installed with DRA API missing is now a failure (skip only when the driver is absent); behavioral allocation runs only when full-GPU DRA is usable, otherwise recorded as not applicable. - inference-perf: workers request GPUs via resources.limits nvidia.com/gpu (ResourceClaimTemplate removed); occupancy accounting counts device-plugin requests of bound non-terminal pods plus DRA allocations, failing closed on list errors. - Convert vllm/dynamo/gang-scheduling workload manifests to device-plugin GPU requests, moving kai.scheduler/queue labels onto pod templates. ComputeDomain/IMEX and RoCE DRA paths untouched. Hardened per multi-reviewer review of the initial draft: - dra-support scope comes from the recipe ComponentRefs (fail when the recipe enables the driver but it is absent; skip only when excluded or disabled; live-detection fallback for standalone runs). - NVIDIA ResourceSlice validation (pool generation/completeness, device taints, Ready-node topology) now also gates the ComputeDomain-only pass path of dra-support. - Multi-container isolation subtest added to secure-access in both allocation modes (upstream ai-conformance#75 parity). - DRAExtendedResource attribution guard: device-plugin mode fails closed when a DeviceClass maps nvidia.com/gpu; occupancy accounting deduplicates KEP-5004 claims via pod.status.extendedResourceClaimStatus. - One-shot init containers after restartable sidecars are counted per Kubernetes effective-request rules. - NotIn node-selector matching follows Kubernetes absent-key semantics. - Mechanism-neutral diagnostics; CNCF evidence descriptions and docs/user/validation.md updated to match the new behavior. Second review round: KEP-5004 clusters no longer produce a false dual-advertisement warning (attribution guard runs before device-plugin classification); occupancy dedup is per claim request via extendedResourceClaimStatus requestMappings; AdminAccess allocation results are excluded from occupancy; cluster-sized scan loops check context cancellation and the pod list filters terminal phases server-side; remaining DRA-prescriptive catalog/docs strings updated. Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
Part 1 of 2 for NVIDIA#1327. The NVIDIA DRA driver's supported configuration is ComputeDomain-only (no gpu.nvidia.com DeviceClass); whole GPUs come from the device plugin. AICR's conformance checks and inference-perf workload hard-required full-GPU DRA and fail on such clusters, while the CNCF secure_accelerator_access requirement permits 'device plugin or DRA'. Mirrors the upstream fix in kubernetes-sigs/ai-conformance#75. - Add a shared GPU allocation capability probe: DRA usable only via complete current-generation ResourceSlice pools with untainted devices reachable from Ready schedulable nodes (all four slice topologies); device-plugin usable via node allocatable; dual advertisement logs an over-admission warning (error promotion deferred to the recipe-flip PR). - secure-accelerator-access dispatches on the probe: unchanged DRA isolation test when usable, otherwise an equivalent device-plugin isolation test; drop the hard rejection of nvidia.com/gpu. - dra-support never falls back to the device plugin; driver installed with DRA API missing is now a failure (skip only when the driver is absent); behavioral allocation runs only when full-GPU DRA is usable, otherwise recorded as not applicable. - inference-perf: workers request GPUs via resources.limits nvidia.com/gpu (ResourceClaimTemplate removed); occupancy accounting counts device-plugin requests of bound non-terminal pods plus DRA allocations, failing closed on list errors. - Convert vllm/dynamo/gang-scheduling workload manifests to device-plugin GPU requests, moving kai.scheduler/queue labels onto pod templates. ComputeDomain/IMEX and RoCE DRA paths untouched. Hardened per multi-reviewer review of the initial draft: - dra-support scope comes from the recipe ComponentRefs (fail when the recipe enables the driver but it is absent; skip only when excluded or disabled; live-detection fallback for standalone runs). - NVIDIA ResourceSlice validation (pool generation/completeness, device taints, Ready-node topology) now also gates the ComputeDomain-only pass path of dra-support. - Multi-container isolation subtest added to secure-access in both allocation modes (upstream ai-conformance#75 parity). - DRAExtendedResource attribution guard: device-plugin mode fails closed when a DeviceClass maps nvidia.com/gpu; occupancy accounting deduplicates KEP-5004 claims via pod.status.extendedResourceClaimStatus. - One-shot init containers after restartable sidecars are counted per Kubernetes effective-request rules. - NotIn node-selector matching follows Kubernetes absent-key semantics. - Mechanism-neutral diagnostics; CNCF evidence descriptions and docs/user/validation.md updated to match the new behavior. Second review round: KEP-5004 clusters no longer produce a false dual-advertisement warning (attribution guard runs before device-plugin classification); occupancy dedup is per claim request via extendedResourceClaimStatus requestMappings; AdminAccess allocation results are excluded from occupancy; cluster-sized scan loops check context cancellation and the pod list filters terminal phases server-side; remaining DRA-prescriptive catalog/docs strings updated. Third review round: device-plugin usability under KEP-5004 follows per-node Kubernetes semantics (scalar allocatable nodes are device-plugin-backed; the extendedResourceName mapping is recorded as attribution evidence and the secure-access device-plugin test pod is pinned to a scalar-allocatable node instead of failing); dra-support accepts any served resource.k8s.io version (v1, v1beta2, v1beta1) with dynamic-client slice validation on beta-only clusters; pod spec.overhead nvidia.com/gpu is included in effective GPU requests. Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
Part 1 of 2 for NVIDIA#1327. The NVIDIA DRA driver's supported configuration is ComputeDomain-only (no gpu.nvidia.com DeviceClass); whole GPUs come from the device plugin. AICR's conformance checks and inference-perf workload hard-required full-GPU DRA and fail on such clusters, while the CNCF secure_accelerator_access requirement permits 'device plugin or DRA'. Mirrors the upstream fix in kubernetes-sigs/ai-conformance#75. Capability probe (shared by the conformance checks): - Discovers the served resource.k8s.io version (v1, v1beta2, v1beta1 — the versions the driver chart accepts) and reads DeviceClasses and ResourceSlices at that version via the dynamic client, normalizing the v1beta1 per-device 'basic' wrapper for taints and topology. - DRA is usable only when the DeviceClass exists and a ResourceSlice from the configured driver, in a complete current-generation pool, advertises untainted devices reachable from a Ready, schedulable node (all four slice topologies; Kubernetes NotIn absent-key semantics). - Device-plugin usable = Ready, schedulable node with scalar allocatable nvidia.com/gpu; per KEP-5004 semantics such nodes are device-plugin-backed even when a DeviceClass maps the extended resource, so the mapping is recorded as attribution evidence rather than clearing usability. Dual advertisement (slices + scalar allocatable on the same nodes) logs an over-admission warning (promotion to an error lands with the recipe-flip PR). secure-accelerator-access: dispatches on the probe; both modes run the same isolation assertions including a multi-container subtest. The granted container must see EXACTLY one GPU (nvidia-smi UUID count); request-less probes stay device-file based. The device-plugin test pod uses required node affinity over all detected scalar-capacity nodes so the scheduler picks a free one; DRA test claims are built in the served API version's shape (v1beta1 uses direct request fields). dra-support: never falls back to the device plugin. Scope comes from the recipe's componentRefs (skip only when the recipe excludes or disables the driver; live-detection fallback when refs are absent); a recipe-enabled driver with missing workloads or no served DRA API fails. NVIDIA ResourceSlices count only after the same pool/taint/ topology validation; the behavioral allocation subtest runs whenever full-GPU DRA is usable (any served version), otherwise it is recorded as not applicable. Exercising the MNNVL ComputeDomain flow is a tracked follow-up. inference-perf: workers request GPUs via resources.limits nvidia.com/gpu (ResourceClaimTemplate removed). Occupancy counts effective nvidia.com/gpu requests of bound non-terminal pods (K8s effective-request rules: one-shot inits stack on preceding restartable sidecars; RuntimeClass overhead added) plus DRA gpu.nvidia.com allocations (adminAccess results excluded), deduplicating KEP-5004 DRA-backed extended-resource claims per claim request via pod.status.extendedResourceClaimStatus.requestMappings. List errors fail closed (context cancellation maps to ErrCodeTimeout; only 'DRA API not served' means deterministically zero DRA usage). Manifests: vllm/dynamo/gang-scheduling workloads converted to device-plugin GPU requests with kai.scheduler/queue labels moved onto pod templates; ComputeDomain/IMEX and RoCE DRA paths untouched. CNCF evidence descriptions, validator catalog, and user docs updated to the 'device plugin or DRA' model. Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
Part 1 of 2 for NVIDIA#1327. The NVIDIA DRA driver's supported configuration is ComputeDomain-only (no gpu.nvidia.com DeviceClass); whole GPUs come from the device plugin. AICR's conformance checks and inference-perf workload hard-required full-GPU DRA and fail on such clusters, while the CNCF secure_accelerator_access requirement permits 'device plugin or DRA'. Mirrors the upstream fix in kubernetes-sigs/ai-conformance#75. Capability probe (shared by the conformance checks): - Discovers the served resource.k8s.io version (v1, v1beta2, v1beta1 — the versions the driver chart accepts) and reads DeviceClasses and ResourceSlices at that version via the dynamic client, normalizing the v1beta1 per-device 'basic' wrapper for taints and topology. - DRA is usable only when the DeviceClass exists and a ResourceSlice from the configured driver, in a complete current-generation pool, advertises untainted devices reachable from a Ready, schedulable node (all four slice topologies; Kubernetes NotIn absent-key semantics). - Device-plugin usable = Ready, schedulable node with scalar allocatable nvidia.com/gpu; per KEP-5004 semantics such nodes are device-plugin-backed even when a DeviceClass maps the extended resource, so the mapping is recorded as attribution evidence rather than clearing usability. Dual advertisement (slices + scalar allocatable on the same nodes) logs an over-admission warning (promotion to an error lands with the recipe-flip PR). secure-accelerator-access: dispatches on the probe; both modes run the same isolation assertions including a multi-container subtest. The granted container must see EXACTLY one GPU (nvidia-smi UUID count); request-less probes stay device-file based. The device-plugin test pod uses required node affinity over all detected scalar-capacity nodes so the scheduler picks a free one; DRA test claims are built in the served API version's shape (v1beta1 uses direct request fields). dra-support: never falls back to the device plugin. Scope comes from the recipe's componentRefs (skip only when the recipe excludes or disables the driver; live-detection fallback when refs are absent); a recipe-enabled driver with missing workloads or no served DRA API fails. NVIDIA ResourceSlices count only after the same pool/taint/ topology validation; the behavioral allocation subtest runs whenever full-GPU DRA is usable (any served version), otherwise it is recorded as not applicable. Exercising the MNNVL ComputeDomain flow is a tracked follow-up. inference-perf: workers request GPUs via resources.limits nvidia.com/gpu (ResourceClaimTemplate removed). Occupancy counts effective nvidia.com/gpu requests of bound non-terminal pods (K8s effective-request rules: one-shot inits stack on preceding restartable sidecars; RuntimeClass overhead added) plus DRA gpu.nvidia.com allocations (adminAccess results excluded), deduplicating KEP-5004 DRA-backed extended-resource claims per claim request via pod.status.extendedResourceClaimStatus.requestMappings. List errors fail closed (context cancellation maps to ErrCodeTimeout; only 'DRA API not served' means deterministically zero DRA usage). Manifests: vllm/dynamo/gang-scheduling workloads converted to device-plugin GPU requests with kai.scheduler/queue labels moved onto pod templates; ComputeDomain/IMEX and RoCE DRA paths untouched. CNCF evidence descriptions, validator catalog, and user docs updated to the 'device plugin or DRA' model. Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
Part 1 of 2 for NVIDIA#1327. The NVIDIA DRA driver's supported configuration is ComputeDomain-only (no gpu.nvidia.com DeviceClass); whole GPUs come from the device plugin. AICR's conformance checks and inference-perf workload hard-required full-GPU DRA and fail on such clusters, while the CNCF secure_accelerator_access requirement permits 'device plugin or DRA'. Mirrors the upstream fix in kubernetes-sigs/ai-conformance#75. Capability probe (shared by the conformance checks): - Discovers the served resource.k8s.io version (v1, v1beta2, v1beta1 — the versions the driver chart accepts) and reads DeviceClasses and ResourceSlices at that version via the dynamic client, normalizing the v1beta1 per-device 'basic' wrapper for taints and topology. - DRA is usable only when the DeviceClass exists and a ResourceSlice from the configured driver, in a complete current-generation pool, advertises untainted devices reachable from a Ready, schedulable node (all four slice topologies; Kubernetes NotIn absent-key semantics). - Device-plugin usable = Ready, schedulable node with scalar allocatable nvidia.com/gpu; per KEP-5004 semantics such nodes are device-plugin-backed even when a DeviceClass maps the extended resource, so the mapping is recorded as attribution evidence rather than clearing usability. Dual advertisement (slices + scalar allocatable on the same nodes) logs an over-admission warning (promotion to an error lands with the recipe-flip PR). secure-accelerator-access: dispatches on the probe; both modes run the same isolation assertions including a multi-container subtest. The granted container must see EXACTLY one GPU (nvidia-smi UUID count); request-less probes stay device-file based. The device-plugin test pod uses required node affinity over all detected scalar-capacity nodes so the scheduler picks a free one; DRA test claims are built in the served API version's shape (v1beta1 uses direct request fields). dra-support: never falls back to the device plugin. Scope comes from the recipe's componentRefs (skip only when the recipe excludes or disables the driver; live-detection fallback when refs are absent); a recipe-enabled driver with missing workloads or no served DRA API fails. NVIDIA ResourceSlices count only after the same pool/taint/ topology validation; the behavioral allocation subtest runs whenever full-GPU DRA is usable (any served version), otherwise it is recorded as not applicable. Exercising the MNNVL ComputeDomain flow is a tracked follow-up. inference-perf: workers request GPUs via resources.limits nvidia.com/gpu (ResourceClaimTemplate removed). Occupancy counts effective nvidia.com/gpu requests of bound non-terminal pods (K8s effective-request rules: one-shot inits stack on preceding restartable sidecars; RuntimeClass overhead added) plus DRA gpu.nvidia.com allocations (adminAccess results excluded), deduplicating KEP-5004 DRA-backed extended-resource claims per claim request via pod.status.extendedResourceClaimStatus.requestMappings. List errors fail closed (context cancellation maps to ErrCodeTimeout; only 'DRA API not served' means deterministically zero DRA usage). Manifests: vllm/dynamo/gang-scheduling workloads converted to device-plugin GPU requests with kai.scheduler/queue labels moved onto pod templates; ComputeDomain/IMEX and RoCE DRA paths untouched. CNCF evidence descriptions, validator catalog, and user docs updated to the 'device plugin or DRA' model. Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
Part 1 of 2 for NVIDIA#1327. The NVIDIA DRA driver's supported configuration is ComputeDomain-only (no gpu.nvidia.com DeviceClass); whole GPUs come from the device plugin. AICR's conformance checks and inference-perf workload hard-required full-GPU DRA and fail on such clusters, while the CNCF secure_accelerator_access requirement permits 'device plugin or DRA'. Mirrors the upstream fix in kubernetes-sigs/ai-conformance#75. Capability probe (shared by the conformance checks): - Discovers the served resource.k8s.io version (v1, v1beta2, v1beta1 — the versions the driver chart accepts) and reads DeviceClasses and ResourceSlices at that version via the dynamic client, normalizing the v1beta1 per-device 'basic' wrapper for taints and topology. - DRA is usable only when the DeviceClass exists and a ResourceSlice from the configured driver, in a complete current-generation pool, advertises untainted devices reachable from a Ready, schedulable node (all four slice topologies; Kubernetes NotIn absent-key semantics). - Device-plugin usable = Ready, schedulable node with scalar allocatable nvidia.com/gpu; per KEP-5004 semantics such nodes are device-plugin-backed even when a DeviceClass maps the extended resource, so the mapping is recorded as attribution evidence rather than clearing usability. Dual advertisement (slices + scalar allocatable on the same nodes) logs an over-admission warning (promotion to an error lands with the recipe-flip PR). secure-accelerator-access: dispatches on the probe; both modes run the same isolation assertions including a multi-container subtest. The granted container must see EXACTLY one GPU (nvidia-smi UUID count); request-less probes stay device-file based. The device-plugin test pod uses required node affinity over all detected scalar-capacity nodes so the scheduler picks a free one; DRA test claims are built in the served API version's shape (v1beta1 uses direct request fields). dra-support: never falls back to the device plugin. Scope comes from the recipe's componentRefs (skip only when the recipe excludes or disables the driver; live-detection fallback when refs are absent); a recipe-enabled driver with missing workloads or no served DRA API fails. NVIDIA ResourceSlices count only after the same pool/taint/ topology validation; the behavioral allocation subtest runs whenever full-GPU DRA is usable (any served version), otherwise it is recorded as not applicable. Exercising the MNNVL ComputeDomain flow is a tracked follow-up. inference-perf: workers request GPUs via resources.limits nvidia.com/gpu (ResourceClaimTemplate removed). Occupancy counts effective nvidia.com/gpu requests of bound non-terminal pods (K8s effective-request rules: one-shot inits stack on preceding restartable sidecars; RuntimeClass overhead added) plus DRA gpu.nvidia.com allocations (adminAccess results excluded), deduplicating KEP-5004 DRA-backed extended-resource claims per claim request via pod.status.extendedResourceClaimStatus.requestMappings. List errors fail closed (context cancellation maps to ErrCodeTimeout; only 'DRA API not served' means deterministically zero DRA usage). Manifests: vllm/dynamo/gang-scheduling workloads converted to device-plugin GPU requests with kai.scheduler/queue labels moved onto pod templates; ComputeDomain/IMEX and RoCE DRA paths untouched. CNCF evidence descriptions, validator catalog, and user docs updated to the 'device plugin or DRA' model. Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
Part 1 of 2 for NVIDIA#1327. The NVIDIA DRA driver's supported configuration is ComputeDomain-only (no gpu.nvidia.com DeviceClass); whole GPUs come from the device plugin. AICR's conformance checks and inference-perf workload hard-required full-GPU DRA and fail on such clusters, while the CNCF secure_accelerator_access requirement permits 'device plugin or DRA'. Mirrors the upstream fix in kubernetes-sigs/ai-conformance#75. Capability probe (shared by the conformance checks): - Discovers the served resource.k8s.io version (v1, v1beta2, v1beta1 — the versions the driver chart accepts) and reads DeviceClasses and ResourceSlices at that version via the dynamic client, normalizing the v1beta1 per-device 'basic' wrapper for taints and topology. - DRA is usable only when the DeviceClass exists and a ResourceSlice from the configured driver, in a complete current-generation pool, advertises untainted devices reachable from a Ready, schedulable node (all four slice topologies; Kubernetes NotIn absent-key semantics). - Device-plugin usable = Ready, schedulable node with scalar allocatable nvidia.com/gpu; per KEP-5004 semantics such nodes are device-plugin-backed even when a DeviceClass maps the extended resource, so the mapping is recorded as attribution evidence rather than clearing usability. Dual advertisement (slices + scalar allocatable on the same nodes) logs an over-admission warning (promotion to an error lands with the recipe-flip PR). secure-accelerator-access: dispatches on the probe; both modes run the same isolation assertions including a multi-container subtest. The granted container must see EXACTLY one GPU (nvidia-smi UUID count); request-less probes stay device-file based. The device-plugin test pod uses required node affinity over all detected scalar-capacity nodes so the scheduler picks a free one; DRA test claims are built in the served API version's shape (v1beta1 uses direct request fields). dra-support: never falls back to the device plugin. Scope comes from the recipe's componentRefs (skip only when the recipe excludes or disables the driver; live-detection fallback when refs are absent); a recipe-enabled driver with missing workloads or no served DRA API fails. NVIDIA ResourceSlices count only after the same pool/taint/ topology validation; the behavioral allocation subtest runs whenever full-GPU DRA is usable (any served version), otherwise it is recorded as not applicable. Exercising the MNNVL ComputeDomain flow is a tracked follow-up. inference-perf: workers request GPUs via resources.limits nvidia.com/gpu (ResourceClaimTemplate removed). Occupancy counts effective nvidia.com/gpu requests of bound non-terminal pods (K8s effective-request rules: one-shot inits stack on preceding restartable sidecars; RuntimeClass overhead added) plus DRA gpu.nvidia.com allocations (adminAccess results excluded), deduplicating KEP-5004 DRA-backed extended-resource claims per claim request via pod.status.extendedResourceClaimStatus.requestMappings. List errors fail closed (context cancellation maps to ErrCodeTimeout; only 'DRA API not served' means deterministically zero DRA usage). Manifests: vllm/dynamo/gang-scheduling workloads converted to device-plugin GPU requests with kai.scheduler/queue labels moved onto pod templates; ComputeDomain/IMEX and RoCE DRA paths untouched. CNCF evidence descriptions, validator catalog, and user docs updated to the 'device plugin or DRA' model. Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
Part 1 of 2 for NVIDIA#1327. The NVIDIA DRA driver's supported configuration is ComputeDomain-only (no gpu.nvidia.com DeviceClass); whole GPUs come from the device plugin. AICR's conformance checks and inference-perf workload hard-required full-GPU DRA and fail on such clusters, while the CNCF secure_accelerator_access requirement permits 'device plugin or DRA'. Mirrors the upstream fix in kubernetes-sigs/ai-conformance#75. Capability probe (shared by the conformance checks): - Discovers the served resource.k8s.io version (v1, v1beta2, v1beta1 — the versions the driver chart accepts) and reads DeviceClasses and ResourceSlices at that version via the dynamic client, normalizing the v1beta1 per-device 'basic' wrapper for taints and topology. - DRA is usable only when the DeviceClass exists and a ResourceSlice from the configured driver, in a complete current-generation pool, advertises untainted devices reachable from a Ready, schedulable node (all four slice topologies; Kubernetes NotIn absent-key semantics). - Device-plugin usable = Ready, schedulable node with scalar allocatable nvidia.com/gpu; per KEP-5004 semantics such nodes are device-plugin-backed even when a DeviceClass maps the extended resource, so the mapping is recorded as attribution evidence rather than clearing usability. Dual advertisement (slices + scalar allocatable on the same nodes) logs an over-admission warning (promotion to an error lands with the recipe-flip PR). secure-accelerator-access: dispatches on the probe; both modes run the same isolation assertions including a multi-container subtest. The granted container must see EXACTLY one GPU (nvidia-smi UUID count); request-less probes stay device-file based. The device-plugin test pod uses required node affinity over all detected scalar-capacity nodes so the scheduler picks a free one; DRA test claims are built in the served API version's shape (v1beta1 uses direct request fields). dra-support: never falls back to the device plugin. Scope comes from the recipe's componentRefs (skip only when the recipe excludes or disables the driver; live-detection fallback when refs are absent); a recipe-enabled driver with missing workloads or no served DRA API fails. NVIDIA ResourceSlices count only after the same pool/taint/ topology validation; the behavioral allocation subtest runs whenever full-GPU DRA is usable (any served version), otherwise it is recorded as not applicable. Exercising the MNNVL ComputeDomain flow is a tracked follow-up. inference-perf: workers request GPUs via resources.limits nvidia.com/gpu (ResourceClaimTemplate removed). Occupancy counts effective nvidia.com/gpu requests of bound non-terminal pods (K8s effective-request rules: one-shot inits stack on preceding restartable sidecars; RuntimeClass overhead added) plus DRA gpu.nvidia.com allocations (adminAccess results excluded), deduplicating KEP-5004 DRA-backed extended-resource claims per claim request via pod.status.extendedResourceClaimStatus.requestMappings. List errors fail closed (context cancellation maps to ErrCodeTimeout; only 'DRA API not served' means deterministically zero DRA usage). Manifests: vllm/dynamo/gang-scheduling workloads converted to device-plugin GPU requests with kai.scheduler/queue labels moved onto pod templates; ComputeDomain/IMEX and RoCE DRA paths untouched. CNCF evidence descriptions, validator catalog, and user docs updated to the 'device plugin or DRA' model. Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
Part 1 of 2 for NVIDIA#1327. The NVIDIA DRA driver's supported configuration is ComputeDomain-only (no gpu.nvidia.com DeviceClass); whole GPUs come from the device plugin. AICR's conformance checks and inference-perf workload hard-required full-GPU DRA and fail on such clusters, while the CNCF secure_accelerator_access requirement permits 'device plugin or DRA'. Mirrors the upstream fix in kubernetes-sigs/ai-conformance#75. Capability probe (shared by the conformance checks): - Discovers the served resource.k8s.io version (v1, v1beta2, v1beta1 — the versions the driver chart accepts) and reads DeviceClasses and ResourceSlices at that version via the dynamic client, normalizing the v1beta1 per-device 'basic' wrapper for taints and topology. - DRA is usable only when the DeviceClass exists and a ResourceSlice from the configured driver, in a complete current-generation pool, advertises untainted devices reachable from a Ready, schedulable node (all four slice topologies; Kubernetes NotIn absent-key semantics). - Device-plugin usable = Ready, schedulable node with scalar allocatable nvidia.com/gpu; per KEP-5004 semantics such nodes are device-plugin-backed even when a DeviceClass maps the extended resource, so the mapping is recorded as attribution evidence rather than clearing usability. Dual advertisement (slices + scalar allocatable on the same nodes) logs an over-admission warning (promotion to an error lands with the recipe-flip PR). secure-accelerator-access: dispatches on the probe; both modes run the same isolation assertions including a multi-container subtest. The granted container must see EXACTLY one GPU (nvidia-smi UUID count); request-less probes stay device-file based. The device-plugin test pod uses required node affinity over all detected scalar-capacity nodes so the scheduler picks a free one; DRA test claims are built in the served API version's shape (v1beta1 uses direct request fields). dra-support: never falls back to the device plugin. Scope comes from the recipe's componentRefs (skip only when the recipe excludes or disables the driver; live-detection fallback when refs are absent); a recipe-enabled driver with missing workloads or no served DRA API fails. NVIDIA ResourceSlices count only after the same pool/taint/ topology validation; the behavioral allocation subtest runs whenever full-GPU DRA is usable (any served version), otherwise it is recorded as not applicable. Exercising the MNNVL ComputeDomain flow is a tracked follow-up. inference-perf: workers request GPUs via resources.limits nvidia.com/gpu (ResourceClaimTemplate removed). Occupancy counts effective nvidia.com/gpu requests of bound non-terminal pods (K8s effective-request rules: one-shot inits stack on preceding restartable sidecars; RuntimeClass overhead added) plus DRA gpu.nvidia.com allocations (adminAccess results excluded), deduplicating KEP-5004 DRA-backed extended-resource claims per claim request via pod.status.extendedResourceClaimStatus.requestMappings. List errors fail closed (context cancellation maps to ErrCodeTimeout; only 'DRA API not served' means deterministically zero DRA usage). Manifests: vllm/dynamo/gang-scheduling workloads converted to device-plugin GPU requests with kai.scheduler/queue labels moved onto pod templates; ComputeDomain/IMEX and RoCE DRA paths untouched. CNCF evidence descriptions, validator catalog, and user docs updated to the 'device plugin or DRA' model. Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
Part 1 of 2 for NVIDIA#1327. The NVIDIA DRA driver's supported configuration is ComputeDomain-only (no gpu.nvidia.com DeviceClass); whole GPUs come from the device plugin. AICR's conformance checks and inference-perf workload hard-required full-GPU DRA and fail on such clusters, while the CNCF secure_accelerator_access requirement permits 'device plugin or DRA'. Mirrors the upstream fix in kubernetes-sigs/ai-conformance#75. Capability probe (shared by the conformance checks): - Discovers the served resource.k8s.io version (v1, v1beta2, v1beta1 — the versions the driver chart accepts) and reads DeviceClasses and ResourceSlices at that version via the dynamic client, normalizing the v1beta1 per-device 'basic' wrapper for taints and topology. - DRA is usable only when the DeviceClass exists and a ResourceSlice from the configured driver, in a complete current-generation pool, advertises untainted devices reachable from a Ready, schedulable node (all four slice topologies; Kubernetes NotIn absent-key semantics). - Device-plugin usable = Ready, schedulable node with scalar allocatable nvidia.com/gpu; per KEP-5004 semantics such nodes are device-plugin-backed even when a DeviceClass maps the extended resource, so the mapping is recorded as attribution evidence rather than clearing usability. Dual advertisement (slices + scalar allocatable on the same nodes) logs an over-admission warning (promotion to an error lands with the recipe-flip PR). secure-accelerator-access: dispatches on the probe; both modes run the same isolation assertions including a multi-container subtest. The granted container must see EXACTLY one GPU (nvidia-smi UUID count); request-less probes stay device-file based. The device-plugin test pod uses required node affinity over all detected scalar-capacity nodes so the scheduler picks a free one; DRA test claims are built in the served API version's shape (v1beta1 uses direct request fields). dra-support: never falls back to the device plugin. Scope comes from the recipe's componentRefs (skip only when the recipe excludes or disables the driver; live-detection fallback when refs are absent); a recipe-enabled driver with missing workloads or no served DRA API fails. NVIDIA ResourceSlices count only after the same pool/taint/ topology validation; the behavioral allocation subtest runs whenever full-GPU DRA is usable (any served version), otherwise it is recorded as not applicable. Exercising the MNNVL ComputeDomain flow is a tracked follow-up. inference-perf: workers request GPUs via resources.limits nvidia.com/gpu (ResourceClaimTemplate removed). Occupancy counts effective nvidia.com/gpu requests of bound non-terminal pods (K8s effective-request rules: one-shot inits stack on preceding restartable sidecars; RuntimeClass overhead added) plus DRA gpu.nvidia.com allocations (adminAccess results excluded), deduplicating KEP-5004 DRA-backed extended-resource claims per claim request via pod.status.extendedResourceClaimStatus.requestMappings. List errors fail closed (context cancellation maps to ErrCodeTimeout; only 'DRA API not served' means deterministically zero DRA usage). Manifests: vllm/dynamo/gang-scheduling workloads converted to device-plugin GPU requests with kai.scheduler/queue labels moved onto pod templates; ComputeDomain/IMEX and RoCE DRA paths untouched. CNCF evidence descriptions, validator catalog, and user docs updated to the 'device plugin or DRA' model. Test-resource lifecycle: secure-access and the dra-support behavioral subtest run in a per-run generated namespace (128-bit token, ownership label aicr.run/gpu-test-run, UID-preconditioned deletion; foreign AlreadyExists collisions fail without deleting). Cleanup is a single namespace deletion under one bounded budget relying on the namespace deletion controller for durable garbage collection, with distinct confirmed-gone / in-progress / failed outcomes and ambiguous-create settle handling. The validator Job reserves cleanup headroom: activeDeadlineSeconds = check timeout + ValidatorCleanupGracePeriod, and the orchestrator wait covers the extended deadline. Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
Part 1 of 2 for NVIDIA#1327. The NVIDIA DRA driver's supported configuration is ComputeDomain-only (no gpu.nvidia.com DeviceClass); whole GPUs come from the device plugin. AICR's conformance checks and inference-perf workload hard-required full-GPU DRA and fail on such clusters, while the CNCF secure_accelerator_access requirement permits 'device plugin or DRA'. Mirrors the upstream fix in kubernetes-sigs/ai-conformance#75. Capability probe (shared by the conformance checks): - Discovers the served resource.k8s.io version (v1, v1beta2, v1beta1 — the versions the driver chart accepts) and reads DeviceClasses and ResourceSlices at that version via the dynamic client, normalizing the v1beta1 per-device 'basic' wrapper for taints and topology. - DRA is usable only when the DeviceClass exists and a ResourceSlice from the configured driver, in a complete current-generation pool, advertises untainted devices reachable from a Ready, schedulable node (all four slice topologies; Kubernetes NotIn absent-key semantics). - Device-plugin usable = Ready, schedulable node with scalar allocatable nvidia.com/gpu; per KEP-5004 semantics such nodes are device-plugin-backed even when a DeviceClass maps the extended resource, so the mapping is recorded as attribution evidence rather than clearing usability. Dual advertisement (slices + scalar allocatable on the same nodes) logs an over-admission warning (promotion to an error lands with the recipe-flip PR). secure-accelerator-access: dispatches on the probe; both modes run the same isolation assertions including a multi-container subtest. The granted container must see EXACTLY one GPU (nvidia-smi UUID count); request-less probes stay device-file based. The device-plugin test pod uses required node affinity over all detected scalar-capacity nodes so the scheduler picks a free one; DRA test claims are built in the served API version's shape (v1beta1 uses direct request fields). dra-support: never falls back to the device plugin. Scope comes from the recipe's componentRefs (skip only when the recipe excludes or disables the driver; live-detection fallback when refs are absent); a recipe-enabled driver with missing workloads or no served DRA API fails. NVIDIA ResourceSlices count only after the same pool/taint/ topology validation; the behavioral allocation subtest runs whenever full-GPU DRA is usable (any served version), otherwise it is recorded as not applicable. Exercising the MNNVL ComputeDomain flow is a tracked follow-up. inference-perf: workers request GPUs via resources.limits nvidia.com/gpu (ResourceClaimTemplate removed). Occupancy counts effective nvidia.com/gpu requests of bound non-terminal pods (K8s effective-request rules: one-shot inits stack on preceding restartable sidecars; RuntimeClass overhead added) plus DRA gpu.nvidia.com allocations (adminAccess results excluded), deduplicating KEP-5004 DRA-backed extended-resource claims per claim request via pod.status.extendedResourceClaimStatus.requestMappings. List errors fail closed (context cancellation maps to ErrCodeTimeout; only 'DRA API not served' means deterministically zero DRA usage). Manifests: vllm/dynamo/gang-scheduling workloads converted to device-plugin GPU requests with kai.scheduler/queue labels moved onto pod templates; ComputeDomain/IMEX and RoCE DRA paths untouched. CNCF evidence descriptions, validator catalog, and user docs updated to the 'device plugin or DRA' model. Test-resource lifecycle: secure-access and the dra-support behavioral subtest run in a per-run generated namespace (128-bit token, ownership label aicr.run/gpu-test-run, UID-preconditioned deletion; foreign AlreadyExists collisions fail without deleting). Cleanup is a single namespace deletion under one bounded budget relying on the namespace deletion controller for durable garbage collection, with distinct confirmed-gone / in-progress / failed outcomes and ambiguous-create settle handling. The validator Job reserves cleanup headroom: activeDeadlineSeconds = check timeout + ValidatorCleanupGracePeriod, and the orchestrator wait covers the extended deadline. Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
Part 1 of 2 for NVIDIA#1327. The NVIDIA DRA driver's supported configuration is ComputeDomain-only (no gpu.nvidia.com DeviceClass); whole GPUs come from the device plugin. AICR's conformance checks and inference-perf workload hard-required full-GPU DRA and fail on such clusters, while the CNCF secure_accelerator_access requirement permits 'device plugin or DRA'. Mirrors the upstream fix in kubernetes-sigs/ai-conformance#75. Capability probe (shared by the conformance checks): - Discovers the served resource.k8s.io version (v1, v1beta2, v1beta1 — the versions the driver chart accepts) and reads DeviceClasses and ResourceSlices at that version via the dynamic client, normalizing the v1beta1 per-device 'basic' wrapper for taints and topology. - DRA is usable only when the DeviceClass exists and a ResourceSlice from the configured driver, in a complete current-generation pool, advertises untainted devices reachable from a Ready, schedulable node (all four slice topologies; Kubernetes NotIn absent-key semantics). - Device-plugin usable = Ready, schedulable node with scalar allocatable nvidia.com/gpu; per KEP-5004 semantics such nodes are device-plugin-backed even when a DeviceClass maps the extended resource, so the mapping is recorded as attribution evidence rather than clearing usability. Dual advertisement (slices + scalar allocatable on the same nodes) logs an over-admission warning (promotion to an error lands with the recipe-flip PR). secure-accelerator-access: dispatches on the probe; both modes run the same isolation assertions including a multi-container subtest. The granted container must see EXACTLY one GPU (nvidia-smi UUID count); request-less probes stay device-file based. The device-plugin test pod uses required node affinity over all detected scalar-capacity nodes so the scheduler picks a free one; DRA test claims are built in the served API version's shape (v1beta1 uses direct request fields). dra-support: never falls back to the device plugin. Scope comes from the recipe's componentRefs (skip only when the recipe excludes or disables the driver; live-detection fallback when refs are absent); a recipe-enabled driver with missing workloads or no served DRA API fails. NVIDIA ResourceSlices count only after the same pool/taint/ topology validation; the behavioral allocation subtest runs whenever full-GPU DRA is usable (any served version), otherwise it is recorded as not applicable. Exercising the MNNVL ComputeDomain flow is a tracked follow-up. inference-perf: workers request GPUs via resources.limits nvidia.com/gpu (ResourceClaimTemplate removed). Occupancy counts effective nvidia.com/gpu requests of bound non-terminal pods (K8s effective-request rules: one-shot inits stack on preceding restartable sidecars; RuntimeClass overhead added) plus DRA gpu.nvidia.com allocations (adminAccess results excluded), deduplicating KEP-5004 DRA-backed extended-resource claims per claim request via pod.status.extendedResourceClaimStatus.requestMappings. List errors fail closed (context cancellation maps to ErrCodeTimeout; only 'DRA API not served' means deterministically zero DRA usage). Manifests: vllm/dynamo/gang-scheduling workloads converted to device-plugin GPU requests with kai.scheduler/queue labels moved onto pod templates; ComputeDomain/IMEX and RoCE DRA paths untouched. CNCF evidence descriptions, validator catalog, and user docs updated to the 'device plugin or DRA' model. Test-resource lifecycle: secure-access and the dra-support behavioral subtest run in a per-run generated namespace (128-bit token, ownership label aicr.run/gpu-test-run, UID-preconditioned deletion; foreign AlreadyExists collisions fail without deleting). Cleanup is a single namespace deletion under one bounded budget relying on the namespace deletion controller for durable garbage collection, with distinct confirmed-gone / in-progress / failed outcomes and ambiguous-create settle handling. The validator Job reserves cleanup headroom: activeDeadlineSeconds = check timeout + ValidatorCleanupGracePeriod, and the orchestrator wait covers the extended deadline. Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
Part 1 of 2 for NVIDIA#1327. The NVIDIA DRA driver's supported configuration is ComputeDomain-only (no gpu.nvidia.com DeviceClass); whole GPUs come from the device plugin. AICR's conformance checks and inference-perf workload hard-required full-GPU DRA and fail on such clusters, while the CNCF secure_accelerator_access requirement permits 'device plugin or DRA'. Mirrors the upstream fix in kubernetes-sigs/ai-conformance#75. Capability probe (shared by the conformance checks): - Discovers the served resource.k8s.io version (v1, v1beta2, v1beta1 — the versions the driver chart accepts) and reads DeviceClasses and ResourceSlices at that version via the dynamic client, normalizing the v1beta1 per-device 'basic' wrapper for taints and topology. - DRA is usable only when the DeviceClass exists and a ResourceSlice from the configured driver, in a complete current-generation pool, advertises untainted devices reachable from a Ready, schedulable node (all four slice topologies; Kubernetes NotIn absent-key semantics). - Device-plugin usable = Ready, schedulable node with scalar allocatable nvidia.com/gpu; per KEP-5004 semantics such nodes are device-plugin-backed even when a DeviceClass maps the extended resource, so the mapping is recorded as attribution evidence rather than clearing usability. Dual advertisement (slices + scalar allocatable on the same nodes) logs an over-admission warning (promotion to an error lands with the recipe-flip PR). secure-accelerator-access: dispatches on the probe; both modes run the same isolation assertions including a multi-container subtest. The granted container must see EXACTLY one GPU (nvidia-smi UUID count); request-less probes stay device-file based. The device-plugin test pod uses required node affinity over all detected scalar-capacity nodes so the scheduler picks a free one; DRA test claims are built in the served API version's shape (v1beta1 uses direct request fields). dra-support: never falls back to the device plugin. Scope comes from the recipe's componentRefs (skip only when the recipe excludes or disables the driver; live-detection fallback when refs are absent); a recipe-enabled driver with missing workloads or no served DRA API fails. NVIDIA ResourceSlices count only after the same pool/taint/ topology validation; the behavioral allocation subtest runs whenever full-GPU DRA is usable (any served version), otherwise it is recorded as not applicable. Exercising the MNNVL ComputeDomain flow is a tracked follow-up. inference-perf: workers request GPUs via resources.limits nvidia.com/gpu (ResourceClaimTemplate removed). Occupancy counts effective nvidia.com/gpu requests of bound non-terminal pods (K8s effective-request rules: one-shot inits stack on preceding restartable sidecars; RuntimeClass overhead added) plus DRA gpu.nvidia.com allocations (adminAccess results excluded), deduplicating KEP-5004 DRA-backed extended-resource claims per claim request via pod.status.extendedResourceClaimStatus.requestMappings. List errors fail closed (context cancellation maps to ErrCodeTimeout; only 'DRA API not served' means deterministically zero DRA usage). Manifests: vllm/dynamo/gang-scheduling workloads converted to device-plugin GPU requests with kai.scheduler/queue labels moved onto pod templates; ComputeDomain/IMEX and RoCE DRA paths untouched. CNCF evidence descriptions, validator catalog, and user docs updated to the 'device plugin or DRA' model. Test-resource lifecycle: secure-access and the dra-support behavioral subtest run in a per-run generated namespace (128-bit token, ownership label aicr.run/gpu-test-run, UID-preconditioned deletion; foreign AlreadyExists collisions fail without deleting). Cleanup is a single namespace deletion under one bounded budget relying on the namespace deletion controller for durable garbage collection, with distinct confirmed-gone / in-progress / failed outcomes and ambiguous-create settle handling. The validator Job reserves cleanup headroom: activeDeadlineSeconds = check timeout + ValidatorCleanupGracePeriod, and the orchestrator wait covers the extended deadline. Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
Part 1 of 2 for NVIDIA#1327. The NVIDIA DRA driver's supported configuration is ComputeDomain-only (no gpu.nvidia.com DeviceClass); whole GPUs come from the device plugin. AICR's conformance checks and inference-perf workload hard-required full-GPU DRA and fail on such clusters, while the CNCF secure_accelerator_access requirement permits 'device plugin or DRA'. Mirrors the upstream fix in kubernetes-sigs/ai-conformance#75. Capability probe (shared by the conformance checks): - Discovers the served resource.k8s.io version (v1, v1beta2, v1beta1 — the versions the driver chart accepts) and reads DeviceClasses and ResourceSlices at that version via the dynamic client, normalizing the v1beta1 per-device 'basic' wrapper for taints and topology. - DRA is usable only when the DeviceClass exists and a ResourceSlice from the configured driver, in a complete current-generation pool, advertises untainted devices reachable from a Ready, schedulable node (all four slice topologies; Kubernetes NotIn absent-key semantics). - Device-plugin usable = Ready, schedulable node with scalar allocatable nvidia.com/gpu; per KEP-5004 semantics such nodes are device-plugin-backed even when a DeviceClass maps the extended resource, so the mapping is recorded as attribution evidence rather than clearing usability. Dual advertisement (slices + scalar allocatable on the same nodes) logs an over-admission warning (promotion to an error lands with the recipe-flip PR). secure-accelerator-access: dispatches on the probe; both modes run the same isolation assertions including a multi-container subtest. The granted container must see EXACTLY one GPU (nvidia-smi UUID count); request-less probes stay device-file based. The device-plugin test pod uses required node affinity over all detected scalar-capacity nodes so the scheduler picks a free one; DRA test claims are built in the served API version's shape (v1beta1 uses direct request fields). dra-support: never falls back to the device plugin. Scope comes from the recipe's componentRefs (skip only when the recipe excludes or disables the driver; live-detection fallback when refs are absent); a recipe-enabled driver with missing workloads or no served DRA API fails. NVIDIA ResourceSlices count only after the same pool/taint/ topology validation; the behavioral allocation subtest runs whenever full-GPU DRA is usable (any served version), otherwise it is recorded as not applicable. Exercising the MNNVL ComputeDomain flow is a tracked follow-up. inference-perf: workers request GPUs via resources.limits nvidia.com/gpu (ResourceClaimTemplate removed). Occupancy counts effective nvidia.com/gpu requests of bound non-terminal pods (K8s effective-request rules: one-shot inits stack on preceding restartable sidecars; RuntimeClass overhead added) plus DRA gpu.nvidia.com allocations (adminAccess results excluded), deduplicating KEP-5004 DRA-backed extended-resource claims per claim request via pod.status.extendedResourceClaimStatus.requestMappings. List errors fail closed (context cancellation maps to ErrCodeTimeout; only 'DRA API not served' means deterministically zero DRA usage). Manifests: vllm/dynamo/gang-scheduling workloads converted to device-plugin GPU requests with kai.scheduler/queue labels moved onto pod templates; ComputeDomain/IMEX and RoCE DRA paths untouched. CNCF evidence descriptions, validator catalog, and user docs updated to the 'device plugin or DRA' model. Test-resource lifecycle: secure-access and the dra-support behavioral subtest run in a per-run generated namespace (128-bit token, ownership label aicr.run/gpu-test-run, UID-preconditioned deletion; foreign AlreadyExists collisions fail without deleting). Cleanup is a single namespace deletion under one bounded budget relying on the namespace deletion controller for durable garbage collection, with distinct confirmed-gone / in-progress / failed outcomes and ambiguous-create settle handling. Both checks derive a work budget from the check context deadline minus a documented cleanup reserve (failing fast before creating resources when the catalog timeout is too short), so cleanup fits inside the existing per-check timeouts; leaked namespaces carry the ownership label for external sweeping. Validator-wide lifecycle hardening is tracked separately in NVIDIA#1632. The DRA driver probes use the component's resolved namespace from the recipe (e.g. Talos overrides it), falling back to the default only when unset. Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
Part 1 of 2 for NVIDIA#1327. The NVIDIA DRA driver's supported configuration is ComputeDomain-only (no gpu.nvidia.com DeviceClass); whole GPUs come from the device plugin. AICR's conformance checks and inference-perf workload hard-required full-GPU DRA and fail on such clusters, while the CNCF secure_accelerator_access requirement permits 'device plugin or DRA'. Mirrors the upstream fix in kubernetes-sigs/ai-conformance#75. Capability probe (shared by the conformance checks): - Discovers the served resource.k8s.io version (v1, v1beta2, v1beta1 — the versions the driver chart accepts) and reads DeviceClasses and ResourceSlices at that version via the dynamic client, normalizing the v1beta1 per-device 'basic' wrapper for taints and topology. - DRA is usable only when the DeviceClass exists and a ResourceSlice from the configured driver, in a complete current-generation pool, advertises untainted devices reachable from a Ready, schedulable node (all four slice topologies; Kubernetes NotIn absent-key semantics). - Device-plugin usable = Ready, schedulable node with scalar allocatable nvidia.com/gpu; per KEP-5004 semantics such nodes are device-plugin-backed even when a DeviceClass maps the extended resource, so the mapping is recorded as attribution evidence rather than clearing usability. Dual advertisement (slices + scalar allocatable on the same nodes) logs an over-admission warning (promotion to an error lands with the recipe-flip PR). secure-accelerator-access: dispatches on the probe; both modes run the same isolation assertions including a multi-container subtest. The granted container must see EXACTLY one GPU (nvidia-smi UUID count); request-less probes stay device-file based. The device-plugin test pod uses required node affinity over all detected scalar-capacity nodes so the scheduler picks a free one; DRA test claims are built in the served API version's shape (v1beta1 uses direct request fields). dra-support: never falls back to the device plugin. Scope comes from the recipe's componentRefs (skip only when the recipe excludes or disables the driver; live-detection fallback when refs are absent); a recipe-enabled driver with missing workloads or no served DRA API fails. NVIDIA ResourceSlices count only after the same pool/taint/ topology validation; the behavioral allocation subtest runs whenever full-GPU DRA is usable (any served version), otherwise it is recorded as not applicable. Exercising the MNNVL ComputeDomain flow is a tracked follow-up. inference-perf: workers request GPUs via resources.limits nvidia.com/gpu (ResourceClaimTemplate removed). Occupancy counts effective nvidia.com/gpu requests of bound non-terminal pods (K8s effective-request rules: one-shot inits stack on preceding restartable sidecars; RuntimeClass overhead added) plus DRA gpu.nvidia.com allocations (adminAccess results excluded), deduplicating KEP-5004 DRA-backed extended-resource claims per claim request via pod.status.extendedResourceClaimStatus.requestMappings. List errors fail closed (context cancellation maps to ErrCodeTimeout; only 'DRA API not served' means deterministically zero DRA usage). Manifests: vllm/dynamo/gang-scheduling workloads converted to device-plugin GPU requests with kai.scheduler/queue labels moved onto pod templates; ComputeDomain/IMEX and RoCE DRA paths untouched. CNCF evidence descriptions, validator catalog, and user docs updated to the 'device plugin or DRA' model. Test-resource lifecycle: secure-access and the dra-support behavioral subtest run in a per-run generated namespace (128-bit token, ownership label aicr.run/gpu-test-run, UID-preconditioned deletion; foreign AlreadyExists collisions fail without deleting). Cleanup is a single namespace deletion under one bounded budget relying on the namespace deletion controller for durable garbage collection, with distinct confirmed-gone / in-progress / failed outcomes and ambiguous-create settle handling. Both checks derive a work budget from the check context deadline minus a documented cleanup reserve (failing fast before creating resources when the catalog timeout is too short), so cleanup fits inside the existing per-check timeouts; leaked namespaces carry the ownership label for external sweeping. Validator-wide lifecycle hardening is tracked separately in NVIDIA#1632. The DRA driver probes use the component's resolved namespace from the recipe (e.g. Talos overrides it), falling back to the default only when unset. Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
Part 1 of 2 for NVIDIA#1327. The NVIDIA DRA driver's supported configuration is ComputeDomain-only (no gpu.nvidia.com DeviceClass); whole GPUs come from the device plugin. AICR's conformance checks and inference-perf workload hard-required full-GPU DRA and fail on such clusters, while the CNCF secure_accelerator_access requirement permits 'device plugin or DRA'. Mirrors the upstream fix in kubernetes-sigs/ai-conformance#75. Capability probe (shared by the conformance checks): - Discovers the served resource.k8s.io version (v1, v1beta2, v1beta1 — the versions the driver chart accepts) and reads DeviceClasses and ResourceSlices at that version via the dynamic client, normalizing the v1beta1 per-device 'basic' wrapper for taints and topology. - DRA is usable only when the DeviceClass exists and a ResourceSlice from the configured driver, in a complete current-generation pool, advertises untainted devices reachable from a Ready, schedulable node (all four slice topologies; Kubernetes NotIn absent-key semantics). - Device-plugin usable = Ready, schedulable node with scalar allocatable nvidia.com/gpu; per KEP-5004 semantics such nodes are device-plugin-backed even when a DeviceClass maps the extended resource, so the mapping is recorded as attribution evidence rather than clearing usability. Dual advertisement (slices + scalar allocatable on the same nodes) logs an over-admission warning (promotion to an error lands with the recipe-flip PR). secure-accelerator-access: dispatches on the probe; both modes run the same isolation assertions including a multi-container subtest. The granted container must see EXACTLY one GPU (nvidia-smi UUID count); request-less probes stay device-file based. The device-plugin test pod uses required node affinity over all detected scalar-capacity nodes so the scheduler picks a free one; DRA test claims are built in the served API version's shape (v1beta1 uses direct request fields). dra-support: never falls back to the device plugin. Scope comes from the recipe's componentRefs (skip only when the recipe excludes or disables the driver; live-detection fallback when refs are absent); a recipe-enabled driver with missing workloads or no served DRA API fails. NVIDIA ResourceSlices count only after the same pool/taint/ topology validation; the behavioral allocation subtest runs whenever full-GPU DRA is usable (any served version), otherwise it is recorded as not applicable. Exercising the MNNVL ComputeDomain flow is a tracked follow-up. inference-perf: workers request GPUs via resources.limits nvidia.com/gpu (ResourceClaimTemplate removed). Occupancy counts effective nvidia.com/gpu requests of bound non-terminal pods (K8s effective-request rules: one-shot inits stack on preceding restartable sidecars; RuntimeClass overhead added) plus DRA gpu.nvidia.com allocations (adminAccess results excluded), deduplicating KEP-5004 DRA-backed extended-resource claims per claim request via pod.status.extendedResourceClaimStatus.requestMappings. List errors fail closed (context cancellation maps to ErrCodeTimeout; only 'DRA API not served' means deterministically zero DRA usage). Manifests: vllm/dynamo/gang-scheduling workloads converted to device-plugin GPU requests with kai.scheduler/queue labels moved onto pod templates; ComputeDomain/IMEX and RoCE DRA paths untouched. CNCF evidence descriptions, validator catalog, and user docs updated to the 'device plugin or DRA' model. Test-resource lifecycle: secure-access and the dra-support behavioral subtest run in a per-run generated namespace (128-bit token, ownership label aicr.run/gpu-test-run, UID-preconditioned deletion; foreign AlreadyExists collisions fail without deleting). Cleanup is a single namespace deletion under one bounded budget relying on the namespace deletion controller for durable garbage collection, with distinct confirmed-gone / in-progress / failed outcomes and ambiguous-create settle handling. Both checks derive a work budget from the check context deadline minus a documented cleanup reserve (failing fast before creating resources when the catalog timeout is too short), so cleanup fits inside the existing per-check timeouts; leaked namespaces carry the ownership label for external sweeping. Validator-wide lifecycle hardening is tracked separately in NVIDIA#1632. The DRA driver probes use the component's resolved namespace from the recipe (e.g. Talos overrides it), falling back to the default only when unset. Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
Part 1 of 2 for NVIDIA#1327. The NVIDIA DRA driver's supported configuration is ComputeDomain-only (no gpu.nvidia.com DeviceClass); whole GPUs come from the device plugin. AICR's conformance checks and inference-perf workload hard-required full-GPU DRA and fail on such clusters, while the CNCF secure_accelerator_access requirement permits 'device plugin or DRA'. Mirrors the upstream fix in kubernetes-sigs/ai-conformance#75. Capability probe (shared by the conformance checks): - Discovers the served resource.k8s.io version (v1, v1beta2, v1beta1 — the versions the driver chart accepts) and reads DeviceClasses and ResourceSlices at that version via the dynamic client, normalizing the v1beta1 per-device 'basic' wrapper for taints and topology. - DRA is usable only when the DeviceClass exists and a ResourceSlice from the configured driver, in a complete current-generation pool, advertises untainted devices reachable from a Ready, schedulable node (all four slice topologies; Kubernetes NotIn absent-key semantics). - Device-plugin usable = Ready, schedulable node with scalar allocatable nvidia.com/gpu; per KEP-5004 semantics such nodes are device-plugin-backed even when a DeviceClass maps the extended resource, so the mapping is recorded as attribution evidence rather than clearing usability. Dual advertisement (slices + scalar allocatable on the same nodes) logs an over-admission warning (promotion to an error lands with the recipe-flip PR). secure-accelerator-access: dispatches on the probe; both modes run the same isolation assertions including a multi-container subtest. The granted container must see EXACTLY one GPU (nvidia-smi UUID count); request-less probes stay device-file based. The device-plugin test pod uses required node affinity over all detected scalar-capacity nodes so the scheduler picks a free one; DRA test claims are built in the served API version's shape (v1beta1 uses direct request fields). dra-support: never falls back to the device plugin. Scope comes from the recipe's componentRefs (skip only when the recipe excludes or disables the driver; live-detection fallback when refs are absent); a recipe-enabled driver with missing workloads or no served DRA API fails. NVIDIA ResourceSlices count only after the same pool/taint/ topology validation; the behavioral allocation subtest runs whenever full-GPU DRA is usable (any served version), otherwise it is recorded as not applicable. Exercising the MNNVL ComputeDomain flow is a tracked follow-up. inference-perf: worker GPU wiring is mode-dispatched node-locally on the shared probe (validators/internal/allocmode) and supports exactly two GPU allocation configurations: nodes publishing node-local gpu.nvidia.com ResourceSlices bind a ResourceClaimTemplate at the served resource.k8s.io version (v1beta1 request shape included), sized from the validated per-node device count — kai classifies such nodes DRA-only and rejects scalar GPU requests, so a node whose raw slices AICR could not validate is ineligible for plugin wiring; ComputeDomain-only / no-full-GPU-slice nodes get resources.limits nvidia.com/gpu sized from scalar allocatable. Anything outside those two states fails fast with ErrCodeInvalidRequest instead of guessing (non-NVIDIA gpu-named slice drivers, non-node-local gpu.nvidia.com topologies, allocated claims whose pool matches no node name), citing NVIDIA#1327; generalized topology/driver support is tracked in NVIDIA#1652. Candidates are scored capacity-first as (node, mechanism) pairs by free GPUs (ties prefer DRA then node name), and the winning pair decides the wiring. Occupancy counts effective nvidia.com/gpu requests of bound non-terminal pods (K8s effective-request rules: one-shot inits stack on preceding restartable sidecars; RuntimeClass overhead added) plus DRA gpu.nvidia.com allocations (adminAccess results excluded), deduplicating KEP-5004 DRA-backed extended-resource claims per claim request via pod.status.extendedResourceClaimStatus.requestMappings. List errors fail closed (context cancellation maps to ErrCodeTimeout; only 'DRA API not served' means deterministically zero DRA usage). Manifests: only the default-scheduled vllm-metrics-test converts to device-plugin GPU requests. The kai-scheduled static entry points (vllm-agg demo CUJ, dynamo-vllm-agg + gang-scheduling evidence, dynamo-vllm-smoke-test) deliberately keep main's DRA-claims form — kai rejects scalar GPU requests on nodes bearing raw spec.nodeName gpu-driver ResourceSlices (unvalidated), so a scalar conversion breaks them on today's dual-advertised default clusters; their conversion lands atomically with PR-2's recipe flip. ComputeDomain/IMEX and RoCE DRA paths untouched. CNCF evidence descriptions, validator catalog, and user docs updated to the 'device plugin or DRA' model. Test-resource lifecycle: secure-access and the dra-support behavioral subtest run in a per-run generated namespace (128-bit token, ownership label aicr.run/gpu-test-run, UID-preconditioned deletion; foreign AlreadyExists collisions fail without deleting). Cleanup is a single namespace deletion under one bounded budget relying on the namespace deletion controller for durable garbage collection, with distinct confirmed-gone / in-progress / failed outcomes and ambiguous-create settle handling. Both checks derive a work budget from the check context deadline minus a documented cleanup reserve (failing fast before creating resources when the catalog timeout is too short), so cleanup fits inside the existing per-check timeouts; leaked namespaces carry the ownership label for external sweeping. Validator-wide lifecycle hardening is tracked separately in NVIDIA#1632. The DRA driver probes use the component's resolved namespace from the recipe (e.g. Talos overrides it), falling back to the default only when unset. Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
Part 1 of 2 for NVIDIA#1327. The NVIDIA DRA driver's supported configuration is ComputeDomain-only (no gpu.nvidia.com DeviceClass); whole GPUs come from the device plugin. AICR's conformance checks and inference-perf workload hard-required full-GPU DRA and fail on such clusters, while the CNCF secure_accelerator_access requirement permits 'device plugin or DRA'. Mirrors the upstream fix in kubernetes-sigs/ai-conformance#75. Capability probe (shared by the conformance checks): - Discovers the served resource.k8s.io version (v1, v1beta2, v1beta1 — the versions the driver chart accepts) and reads DeviceClasses and ResourceSlices at that version via the dynamic client, normalizing the v1beta1 per-device 'basic' wrapper for taints and topology. - DRA is usable only when the DeviceClass exists and a ResourceSlice from the configured driver, in a complete current-generation pool, advertises untainted devices reachable from a Ready, schedulable node (all four slice topologies; Kubernetes NotIn absent-key semantics). - Device-plugin usable = Ready, schedulable node with scalar allocatable nvidia.com/gpu; per KEP-5004 semantics such nodes are device-plugin-backed even when a DeviceClass maps the extended resource, so the mapping is recorded as attribution evidence rather than clearing usability. Dual advertisement (slices + scalar allocatable on the same nodes) logs an over-admission warning (promotion to an error lands with the recipe-flip PR). secure-accelerator-access: dispatches on the probe; both modes run the same isolation assertions including a multi-container subtest. The granted container must see EXACTLY one GPU (nvidia-smi UUID count); request-less probes stay device-file based. The device-plugin test pod uses required node affinity over all detected scalar-capacity nodes so the scheduler picks a free one; DRA test claims are built in the served API version's shape (v1beta1 uses direct request fields). dra-support: never falls back to the device plugin. Scope comes from the recipe's componentRefs (skip only when the recipe excludes or disables the driver; live-detection fallback when refs are absent); a recipe-enabled driver with missing workloads or no served DRA API fails. NVIDIA ResourceSlices count only after the same pool/taint/ topology validation; the behavioral allocation subtest runs whenever full-GPU DRA is usable (any served version), otherwise it is recorded as not applicable. Exercising the MNNVL ComputeDomain flow is a tracked follow-up. inference-perf: worker GPU wiring is mode-dispatched node-locally on the shared probe (validators/internal/allocmode) and supports exactly two GPU allocation configurations: nodes publishing node-local gpu.nvidia.com ResourceSlices bind a ResourceClaimTemplate at the served resource.k8s.io version (v1beta1 request shape included), sized from the validated per-node device count — kai classifies such nodes DRA-only and rejects scalar GPU requests, so a node whose raw slices AICR could not validate is ineligible for plugin wiring; ComputeDomain-only / no-full-GPU-slice nodes get resources.limits nvidia.com/gpu sized from scalar allocatable. Anything outside those two states fails fast with ErrCodeInvalidRequest instead of guessing (non-NVIDIA gpu-named slice drivers, allocated claims requesting a non-NVIDIA gpu-named DeviceClass — kai classifies claim demand by the request's class name, independent of the backing driver — non-node-local gpu.nvidia.com topologies, pools published by slices of multiple nodes, and allocations from pools no node-local slice publishes), citing NVIDIA#1327; generalized topology/driver support is tracked in NVIDIA#1652. Candidates are scored capacity-first as (node, mechanism) pairs by free GPUs (ties prefer DRA then node name), and the winning pair decides the wiring. Occupancy counts effective nvidia.com/gpu requests of bound non-terminal pods (K8s effective-request rules: one-shot inits stack on preceding restartable sidecars; RuntimeClass overhead added) plus DRA gpu.nvidia.com allocations attributed through the slice-derived pool-to-node map (the K8s API does not require pool names to be node names; adminAccess results excluded — a known, accepted divergence from kai's demand vector, documented in NVIDIA#1652), deduplicating KEP-5004 DRA-backed extended-resource claims per claim request via pod.status.extendedResourceClaimStatus.requestMappings. List errors fail closed (context cancellation maps to ErrCodeTimeout; only 'DRA API not served' means deterministically zero DRA usage). Manifests: only the default-scheduled vllm-metrics-test converts to device-plugin GPU requests. The kai-scheduled static entry points (vllm-agg demo CUJ, dynamo-vllm-agg + gang-scheduling evidence, dynamo-vllm-smoke-test) deliberately keep main's DRA-claims form — kai rejects scalar GPU requests on nodes bearing raw spec.nodeName gpu-driver ResourceSlices (unvalidated), so a scalar conversion breaks them on today's dual-advertised default clusters; their conversion lands atomically with PR-2's recipe flip. ComputeDomain/IMEX and RoCE DRA paths untouched. CNCF evidence descriptions, validator catalog, and user docs updated to the 'device plugin or DRA' model. Test-resource lifecycle: secure-access and the dra-support behavioral subtest run in a per-run generated namespace (128-bit token, ownership label aicr.run/gpu-test-run, UID-preconditioned deletion; foreign AlreadyExists collisions fail without deleting). Cleanup is a single namespace deletion under one bounded budget relying on the namespace deletion controller for durable garbage collection, with distinct confirmed-gone / in-progress / failed outcomes and ambiguous-create settle handling. Both checks derive a work budget from the check context deadline minus a documented cleanup reserve (failing fast before creating resources when the catalog timeout is too short), so cleanup fits inside the existing per-check timeouts; leaked namespaces carry the ownership label for external sweeping. Validator-wide lifecycle hardening is tracked separately in NVIDIA#1632. The DRA driver probes use the component's resolved namespace from the recipe (e.g. Talos overrides it), falling back to the default only when unset. Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
Part 1 of 2 for NVIDIA#1327. The NVIDIA DRA driver's supported configuration is ComputeDomain-only (no gpu.nvidia.com DeviceClass); whole GPUs come from the device plugin. AICR's conformance checks and inference-perf workload hard-required full-GPU DRA and fail on such clusters, while the CNCF secure_accelerator_access requirement permits 'device plugin or DRA'. Mirrors the upstream fix in kubernetes-sigs/ai-conformance#75. Capability probe (shared by the conformance checks): - Discovers the served resource.k8s.io version (v1, v1beta2, v1beta1 — the versions the driver chart accepts) and reads DeviceClasses and ResourceSlices at that version via the dynamic client, normalizing the v1beta1 per-device 'basic' wrapper for taints and topology. - DRA is usable only when the DeviceClass exists and a ResourceSlice from the configured driver, in a complete current-generation pool, advertises untainted devices reachable from a Ready, schedulable node (all four slice topologies; Kubernetes NotIn absent-key semantics). - Device-plugin usable = Ready, schedulable node with scalar allocatable nvidia.com/gpu; per KEP-5004 semantics such nodes are device-plugin-backed even when a DeviceClass maps the extended resource, so the mapping is recorded as attribution evidence rather than clearing usability. Dual advertisement (slices + scalar allocatable on the same nodes) logs an over-admission warning (promotion to an error lands with the recipe-flip PR). secure-accelerator-access: dispatches on the probe; both modes run the same isolation assertions including a multi-container subtest. The granted container must see EXACTLY one GPU (nvidia-smi UUID count); request-less probes stay device-file based. The device-plugin test pod uses required node affinity over all detected scalar-capacity nodes so the scheduler picks a free one; DRA test claims are built in the served API version's shape (v1beta1 uses direct request fields). dra-support: never falls back to the device plugin. Scope comes from the recipe's componentRefs (skip only when the recipe excludes or disables the driver; live-detection fallback when refs are absent); a recipe-enabled driver with missing workloads or no served DRA API fails. NVIDIA ResourceSlices count only after the same pool/taint/ topology validation; the behavioral allocation subtest runs whenever full-GPU DRA is usable (any served version), otherwise it is recorded as not applicable. Exercising the MNNVL ComputeDomain flow is a tracked follow-up. inference-perf: worker GPU wiring is mode-dispatched node-locally on the shared probe (validators/internal/allocmode) and supports exactly two GPU allocation configurations: nodes publishing node-local gpu.nvidia.com ResourceSlices bind a ResourceClaimTemplate at the served resource.k8s.io version (v1beta1 request shape included), sized from the validated per-node device count — kai classifies such nodes DRA-only and rejects scalar GPU requests, so a node whose raw slices AICR could not validate is ineligible for plugin wiring; ComputeDomain-only / no-full-GPU-slice nodes get resources.limits nvidia.com/gpu sized from scalar allocatable. Anything outside those two states fails fast with ErrCodeInvalidRequest instead of guessing (non-NVIDIA gpu-named slice drivers, allocated claims requesting a non-NVIDIA gpu-named DeviceClass — kai v0.14.1 classifies claim demand by the Exactly request's class name, independent of the backing driver; AICR also screens firstAvailable subrequest classes, a deliberately conservative policy — non-node-local gpu.nvidia.com topologies, pools published by slices of multiple nodes, and allocations from pools no node-local slice publishes), citing NVIDIA#1327; generalized topology/driver support is tracked in NVIDIA#1652. Candidates are scored capacity-first as (node, mechanism) pairs by free GPUs (ties prefer DRA then node name), and the winning pair decides the wiring. Occupancy counts effective nvidia.com/gpu requests of bound non-terminal pods (K8s effective-request rules: one-shot inits stack on preceding restartable sidecars; RuntimeClass overhead added) plus DRA gpu.nvidia.com allocations attributed through the slice-derived pool-to-node map (the K8s API does not require pool names to be node names; adminAccess results excluded — a known, accepted divergence from kai's demand vector, documented in NVIDIA#1652), deduplicating KEP-5004 DRA-backed extended-resource claims per claim request via pod.status.extendedResourceClaimStatus.requestMappings. List errors fail closed (context cancellation maps to ErrCodeTimeout; only 'DRA API not served' means deterministically zero DRA usage). Manifests: only the default-scheduled vllm-metrics-test converts to device-plugin GPU requests. The kai-scheduled static entry points (vllm-agg demo CUJ, dynamo-vllm-agg + gang-scheduling evidence, dynamo-vllm-smoke-test) deliberately keep main's DRA-claims form — kai rejects scalar GPU requests on nodes bearing raw spec.nodeName gpu-driver ResourceSlices (unvalidated), so a scalar conversion breaks them on today's dual-advertised default clusters; their conversion lands atomically with PR-2's recipe flip. ComputeDomain/IMEX and RoCE DRA paths untouched. CNCF evidence descriptions, validator catalog, and user docs updated to the 'device plugin or DRA' model. Test-resource lifecycle: secure-access and the dra-support behavioral subtest run in a per-run generated namespace (128-bit token, ownership label aicr.run/gpu-test-run, UID-preconditioned deletion; foreign AlreadyExists collisions fail without deleting). Cleanup is a single namespace deletion under one bounded budget relying on the namespace deletion controller for durable garbage collection, with distinct confirmed-gone / in-progress / failed outcomes and ambiguous-create settle handling. Both checks derive a work budget from the check context deadline minus a documented cleanup reserve (failing fast before creating resources when the catalog timeout is too short), so cleanup fits inside the existing per-check timeouts; leaked namespaces carry the ownership label for external sweeping. Validator-wide lifecycle hardening is tracked separately in NVIDIA#1632. The DRA driver probes use the component's resolved namespace from the recipe (e.g. Talos overrides it), falling back to the default only when unset. Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
Part 1 of 2 for NVIDIA#1327. The NVIDIA DRA driver's supported configuration is ComputeDomain-only (no gpu.nvidia.com DeviceClass); whole GPUs come from the device plugin. AICR's conformance checks and inference-perf workload hard-required full-GPU DRA and fail on such clusters, while the CNCF secure_accelerator_access requirement permits 'device plugin or DRA'. Mirrors the upstream fix in kubernetes-sigs/ai-conformance#75. Capability probe (shared by the conformance checks): - Discovers the served resource.k8s.io version (v1, v1beta2, v1beta1 — the versions the driver chart accepts) and reads DeviceClasses and ResourceSlices at that version via the dynamic client, normalizing the v1beta1 per-device 'basic' wrapper for taints and topology. - DRA is usable only when the DeviceClass exists and a ResourceSlice from the configured driver, in a complete current-generation pool, advertises untainted devices reachable from a Ready, schedulable node (all four slice topologies; Kubernetes NotIn absent-key semantics). - Device-plugin usable = Ready, schedulable node with scalar allocatable nvidia.com/gpu; per KEP-5004 semantics such nodes are device-plugin-backed even when a DeviceClass maps the extended resource, so the mapping is recorded as attribution evidence rather than clearing usability. Dual advertisement (slices + scalar allocatable on the same nodes) logs an over-admission warning (promotion to an error lands with the recipe-flip PR). secure-accelerator-access: dispatches on the probe; both modes run the same isolation assertions including a multi-container subtest. The granted container must see EXACTLY one GPU (nvidia-smi UUID count); request-less probes stay device-file based. The device-plugin test pod uses required node affinity over all detected scalar-capacity nodes so the scheduler picks a free one; DRA test claims are built in the served API version's shape (v1beta1 uses direct request fields). dra-support: never falls back to the device plugin. Scope comes from the recipe's componentRefs (skip only when the recipe excludes or disables the driver; live-detection fallback when refs are absent); a recipe-enabled driver with missing workloads or no served DRA API fails. NVIDIA ResourceSlices count only after the same pool/taint/ topology validation; the behavioral allocation subtest runs whenever full-GPU DRA is usable (any served version), otherwise it is recorded as not applicable. Exercising the MNNVL ComputeDomain flow is a tracked follow-up. inference-perf: worker GPU wiring is mode-dispatched node-locally on the shared probe (validators/internal/allocmode) and supports exactly two GPU allocation configurations: nodes publishing node-local gpu.nvidia.com ResourceSlices bind a ResourceClaimTemplate at the served resource.k8s.io version (v1beta1 request shape included), sized from the validated per-node device count — kai classifies such nodes DRA-only and rejects scalar GPU requests, so a node whose raw slices AICR could not validate is ineligible for plugin wiring; ComputeDomain-only / no-full-GPU-slice nodes get resources.limits nvidia.com/gpu sized from scalar allocatable. Anything outside those two states fails fast with ErrCodeInvalidRequest instead of guessing (non-NVIDIA gpu-named slice drivers, allocated claims requesting a non-NVIDIA gpu-named DeviceClass — kai v0.14.1 classifies claim demand by the Exactly request's class name, independent of the backing driver; AICR also screens firstAvailable subrequest classes, a deliberately conservative policy — non-node-local gpu.nvidia.com topologies, pools published by slices of multiple nodes, and allocations from pools no node-local slice publishes), citing NVIDIA#1327; generalized topology/driver support is tracked in NVIDIA#1652. Candidates are scored capacity-first as (node, mechanism) pairs by free GPUs (ties prefer DRA then node name), and the winning pair decides the wiring. Occupancy counts effective nvidia.com/gpu requests of bound non-terminal pods (K8s effective-request rules: one-shot inits stack on preceding restartable sidecars; RuntimeClass overhead added) plus DRA gpu.nvidia.com allocations attributed through the slice-derived pool-to-node map (the K8s API does not require pool names to be node names; adminAccess results excluded — a known, accepted divergence from kai's demand vector, documented in NVIDIA#1652), deduplicating KEP-5004 DRA-backed extended-resource claims per claim request via pod.status.extendedResourceClaimStatus.requestMappings. List errors fail closed (context cancellation maps to ErrCodeTimeout; only 'DRA API not served' means deterministically zero DRA usage). Manifests: only the default-scheduled vllm-metrics-test converts to device-plugin GPU requests. The kai-scheduled static entry points (vllm-agg demo CUJ, dynamo-vllm-agg + gang-scheduling evidence, dynamo-vllm-smoke-test) deliberately keep main's DRA-claims form — kai rejects scalar GPU requests on nodes bearing raw spec.nodeName gpu-driver ResourceSlices (unvalidated), so a scalar conversion breaks them on today's dual-advertised default clusters; their conversion lands atomically with PR-2's recipe flip. ComputeDomain/IMEX and RoCE DRA paths untouched. CNCF evidence descriptions, validator catalog, and user docs updated to the 'device plugin or DRA' model. Test-resource lifecycle: secure-access and the dra-support behavioral subtest run in a per-run generated namespace (128-bit token, ownership label aicr.run/gpu-test-run, UID-preconditioned deletion; foreign AlreadyExists collisions fail without deleting). Cleanup is a single namespace deletion under one bounded budget relying on the namespace deletion controller for durable garbage collection, with distinct confirmed-gone / in-progress / failed outcomes and ambiguous-create settle handling. Both checks derive a work budget from the check context deadline minus a documented cleanup reserve (failing fast before creating resources when the catalog timeout is too short), so cleanup fits inside the existing per-check timeouts; leaked namespaces carry the ownership label for external sweeping. Validator-wide lifecycle hardening is tracked separately in NVIDIA#1632. The DRA driver probes use the component's resolved namespace from the recipe (e.g. Talos overrides it), falling back to the default only when unset. Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
Part 1 of 2 for NVIDIA#1327. The NVIDIA DRA driver's supported configuration is ComputeDomain-only (no gpu.nvidia.com DeviceClass); whole GPUs come from the device plugin. AICR's conformance checks and inference-perf workload hard-required full-GPU DRA and fail on such clusters, while the CNCF secure_accelerator_access requirement permits 'device plugin or DRA'. Mirrors the upstream fix in kubernetes-sigs/ai-conformance#75. Capability probe (shared by the conformance checks): - Discovers the served resource.k8s.io version (v1, v1beta2, v1beta1 — the versions the driver chart accepts) and reads DeviceClasses and ResourceSlices at that version via the dynamic client, normalizing the v1beta1 per-device 'basic' wrapper for taints and topology. - DRA is usable only when the DeviceClass exists and a ResourceSlice from the configured driver, in a complete current-generation pool, advertises untainted devices reachable from a Ready, schedulable node (all four slice topologies; Kubernetes NotIn absent-key semantics). - Device-plugin usable = Ready, schedulable node with scalar allocatable nvidia.com/gpu; per KEP-5004 semantics such nodes are device-plugin-backed even when a DeviceClass maps the extended resource, so the mapping is recorded as attribution evidence rather than clearing usability. Dual advertisement (slices + scalar allocatable on the same nodes) logs an over-admission warning (promotion to an error lands with the recipe-flip PR). secure-accelerator-access: dispatches on the probe; both modes run the same isolation assertions including a multi-container subtest. The granted container must see EXACTLY one GPU (nvidia-smi UUID count); request-less probes stay device-file based. The device-plugin test pod uses required node affinity over all detected scalar-capacity nodes so the scheduler picks a free one; DRA test claims are built in the served API version's shape (v1beta1 uses direct request fields). dra-support: never falls back to the device plugin. Scope comes from the recipe's componentRefs (skip only when the recipe excludes or disables the driver; live-detection fallback when refs are absent); a recipe-enabled driver with missing workloads or no served DRA API fails. NVIDIA ResourceSlices count only after the same pool/taint/ topology validation; the behavioral allocation subtest runs whenever full-GPU DRA is usable (any served version), otherwise it is recorded as not applicable. Exercising the MNNVL ComputeDomain flow is a tracked follow-up. inference-perf: worker GPU wiring is mode-dispatched node-locally on the shared probe (validators/internal/allocmode) and supports exactly two GPU allocation configurations: nodes publishing node-local gpu.nvidia.com ResourceSlices bind a ResourceClaimTemplate at the served resource.k8s.io version (v1beta1 request shape included), sized from the validated per-node device count — kai classifies such nodes DRA-only and rejects scalar GPU requests, so a node whose raw slices AICR could not validate is ineligible for plugin wiring; ComputeDomain-only / no-full-GPU-slice nodes get resources.limits nvidia.com/gpu sized from scalar allocatable. Anything outside those two states fails fast with ErrCodeInvalidRequest instead of guessing (non-NVIDIA gpu-named slice drivers, allocated claims requesting a non-NVIDIA gpu-named DeviceClass — kai v0.14.1 classifies claim demand by the Exactly request's class name, independent of the backing driver; AICR also screens firstAvailable subrequest classes, a deliberately conservative policy — non-node-local gpu.nvidia.com topologies, pools published by slices of multiple nodes, and allocations from pools no node-local slice publishes), citing NVIDIA#1327; generalized topology/driver support is tracked in NVIDIA#1652. Candidates are scored capacity-first as (node, mechanism) pairs by free GPUs (ties prefer DRA then node name), and the winning pair decides the wiring. Occupancy counts effective nvidia.com/gpu requests of bound non-terminal pods (K8s effective-request rules: one-shot inits stack on preceding restartable sidecars; RuntimeClass overhead added) plus DRA gpu.nvidia.com allocations attributed through the slice-derived pool-to-node map (the K8s API does not require pool names to be node names; adminAccess results excluded — a known, accepted divergence from kai's demand vector, documented in NVIDIA#1652), deduplicating KEP-5004 DRA-backed extended-resource claims per claim request via pod.status.extendedResourceClaimStatus.requestMappings. List errors fail closed (context cancellation maps to ErrCodeTimeout; only 'DRA API not served' means deterministically zero DRA usage). Manifests: only the default-scheduled vllm-metrics-test converts to device-plugin GPU requests. The kai-scheduled static entry points (vllm-agg demo CUJ, dynamo-vllm-agg + gang-scheduling evidence, dynamo-vllm-smoke-test) deliberately keep main's DRA-claims form — kai rejects scalar GPU requests on nodes bearing raw spec.nodeName gpu-driver ResourceSlices (unvalidated), so a scalar conversion breaks them on today's dual-advertised default clusters; their conversion lands atomically with PR-2's recipe flip. ComputeDomain/IMEX and RoCE DRA paths untouched. CNCF evidence descriptions, validator catalog, and user docs updated to the 'device plugin or DRA' model. Test-resource lifecycle: secure-access and the dra-support behavioral subtest run in a per-run generated namespace (128-bit token, ownership label aicr.run/gpu-test-run, UID-preconditioned deletion; foreign AlreadyExists collisions fail without deleting). Cleanup is a single namespace deletion under one bounded budget relying on the namespace deletion controller for durable garbage collection, with distinct confirmed-gone / in-progress / failed outcomes and ambiguous-create settle handling. Both checks derive a work budget from the check context deadline minus a documented cleanup reserve (failing fast before creating resources when the catalog timeout is too short), so cleanup fits inside the existing per-check timeouts; leaked namespaces carry the ownership label for external sweeping. Validator-wide lifecycle hardening is tracked separately in NVIDIA#1632. The DRA driver probes use the component's resolved namespace from the recipe (e.g. Talos overrides it), falling back to the default only when unset. Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
Part 1 of 3 for NVIDIA#1327. The NVIDIA DRA driver's supported configuration is ComputeDomain-only (no gpu.nvidia.com DeviceClass); whole GPUs come from the device plugin. AICR's conformance checks and inference-perf workload hard-required full-GPU DRA and fail on such clusters, while the CNCF secure_accelerator_access requirement permits 'device plugin or DRA'. Mirrors the upstream fix in kubernetes-sigs/ai-conformance#75. Capability probe (shared by the conformance checks): - Discovers the served resource.k8s.io version (v1, v1beta2, v1beta1 — the versions the driver chart accepts) and reads DeviceClasses and ResourceSlices at that version via the dynamic client, normalizing the v1beta1 per-device 'basic' wrapper for taints and topology. - DRA is usable only when the DeviceClass exists and a ResourceSlice from the configured driver, in a complete current-generation pool, advertises untainted devices reachable from a Ready, schedulable node (all four slice topologies; Kubernetes NotIn absent-key semantics). - Device-plugin usable = Ready, schedulable node with scalar allocatable nvidia.com/gpu; per KEP-5004 semantics such nodes are device-plugin-backed even when a DeviceClass maps the extended resource, so the mapping is recorded as attribution evidence rather than clearing usability. Dual advertisement (slices + scalar allocatable on the same nodes) logs an over-admission warning (promotion to an error lands with the recipe-flip PR 3; the stacked PR 2 adds recipe-configured policy resolution). secure-accelerator-access: dispatches on the probe; both modes run the same isolation assertions including a multi-container subtest. The granted container must see EXACTLY one GPU (nvidia-smi UUID count); request-less probes stay device-file based. The device-plugin test pod uses required node affinity over all detected scalar-capacity nodes so the scheduler picks a free one; DRA test claims are built in the served API version's shape (v1beta1 uses direct request fields). dra-support: never falls back to the device plugin. Scope comes from the recipe's componentRefs (skip only when the recipe excludes or disables the driver; live-detection fallback when refs are absent); a recipe-enabled driver with missing workloads or no served DRA API fails. NVIDIA ResourceSlices count only after the same pool/taint/ topology validation; the behavioral allocation subtest runs whenever full-GPU DRA is usable (any served version), otherwise it is recorded as not applicable. Exercising the MNNVL ComputeDomain flow is a tracked follow-up. inference-perf: worker GPU wiring is mode-dispatched node-locally on the shared probe (validators/internal/allocmode) and supports exactly two GPU allocation configurations: nodes publishing node-local gpu.nvidia.com ResourceSlices bind a ResourceClaimTemplate at the served resource.k8s.io version (v1beta1 request shape included), sized from the validated per-node device count — kai classifies such nodes DRA-only and rejects scalar GPU requests, so a node whose raw slices AICR could not validate is ineligible for plugin wiring; ComputeDomain-only / no-full-GPU-slice nodes get resources.limits nvidia.com/gpu sized from scalar allocatable. Anything outside those two states fails fast with ErrCodeInvalidRequest instead of guessing (non-NVIDIA gpu-named slice drivers, allocated claims requesting a non-NVIDIA gpu-named DeviceClass — kai v0.14.1 classifies claim demand by the Exactly request's class name, independent of the backing driver; AICR also screens firstAvailable subrequest classes, a deliberately conservative policy — non-node-local gpu.nvidia.com topologies, pools published by slices of multiple nodes, and allocations from pools no node-local slice publishes), citing NVIDIA#1327; generalized topology/driver support is tracked in NVIDIA#1652. Candidates are scored capacity-first as (node, mechanism) pairs by free GPUs (ties prefer DRA then node name), and the winning pair decides the wiring. Occupancy counts effective nvidia.com/gpu requests of bound non-terminal pods (K8s effective-request rules: one-shot inits stack on preceding restartable sidecars; RuntimeClass overhead added) plus DRA gpu.nvidia.com allocations attributed through the slice-derived pool-to-node map (the K8s API does not require pool names to be node names; adminAccess results excluded — a known, accepted divergence from kai's demand vector, documented in NVIDIA#1652), deduplicating KEP-5004 DRA-backed extended-resource claims per claim request via pod.status.extendedResourceClaimStatus.requestMappings. List errors fail closed (context cancellation maps to ErrCodeTimeout; only 'DRA API not served' means deterministically zero DRA usage). Manifests: only the default-scheduled vllm-metrics-test converts to device-plugin GPU requests. The kai-scheduled static entry points (vllm-agg demo CUJ, dynamo-vllm-agg + gang-scheduling evidence, dynamo-vllm-smoke-test) deliberately keep main's DRA-claims form — kai rejects scalar GPU requests on nodes bearing raw spec.nodeName gpu-driver ResourceSlices (unvalidated), so a scalar conversion breaks them on today's dual-advertised default clusters; their conversion lands atomically with PR 3's recipe flip. ComputeDomain/IMEX and RoCE DRA paths untouched. CNCF evidence descriptions, validator catalog, and user docs updated to the 'device plugin or DRA' model. Test-resource lifecycle: secure-access and the dra-support behavioral subtest run in a per-run generated namespace (128-bit token, ownership label aicr.run/gpu-test-run, UID-preconditioned deletion; foreign AlreadyExists collisions fail without deleting). Cleanup is a single namespace deletion under one bounded budget relying on the namespace deletion controller for durable garbage collection, with distinct confirmed-gone / in-progress / failed outcomes and ambiguous-create settle handling. Both checks derive a work budget from the check context deadline minus a documented cleanup reserve (failing fast before creating resources when the catalog timeout is too short), so cleanup fits inside the existing per-check timeouts; leaked namespaces carry the ownership label for external sweeping. Validator-wide lifecycle hardening is tracked separately in NVIDIA#1632. The DRA driver probes use the component's resolved namespace from the recipe (e.g. Talos overrides it), falling back to the default only when unset. Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
Part 1 of 3 for NVIDIA#1327. Regular Go-validator descriptions (recipes/validators/catalog.yaml) say DRA-or-device-plugin — those checks are mode-dispatched. The CNCF submission collector's feature descriptions (pkg/evidence/cncf) remain DRA-only: its shell collector exercises gpu.nvidia.com ResourceClaims until NVIDIA#1629 makes it mode-aware. The NVIDIA DRA driver's supported configuration is ComputeDomain-only (no gpu.nvidia.com DeviceClass); whole GPUs come from the device plugin. AICR's conformance checks and inference-perf workload hard-required full-GPU DRA and fail on such clusters, while the CNCF secure_accelerator_access requirement permits 'device plugin or DRA'. Mirrors the upstream fix in kubernetes-sigs/ai-conformance#75. Capability probe (shared by the conformance checks): - Discovers the served resource.k8s.io version (v1, v1beta2, v1beta1 — the versions the driver chart accepts) and reads DeviceClasses and ResourceSlices at that version via the dynamic client, normalizing the v1beta1 per-device 'basic' wrapper for taints and topology. - DRA is usable only when the DeviceClass exists and a ResourceSlice from the configured driver, in a complete current-generation pool, advertises untainted devices reachable from a Ready, schedulable node (all four slice topologies; Kubernetes NotIn absent-key semantics). - Device-plugin usable = Ready, schedulable node with scalar allocatable nvidia.com/gpu; per KEP-5004 semantics such nodes are device-plugin-backed even when a DeviceClass maps the extended resource, so the mapping is recorded as attribution evidence rather than clearing usability. Dual advertisement (slices + scalar allocatable on the same nodes) logs an over-admission warning (promotion to an error lands with the recipe-flip PR 3; the stacked PR 2 adds recipe-configured policy resolution). secure-accelerator-access: dispatches on the probe; both modes run the same isolation assertions including a multi-container subtest. The granted container must see EXACTLY one GPU (nvidia-smi UUID count); request-less probes stay device-file based. The device-plugin test pod uses required node affinity over all detected scalar-capacity nodes so the scheduler picks a free one; DRA test claims are built in the served API version's shape (v1beta1 uses direct request fields). dra-support: never falls back to the device plugin. Scope comes from the recipe's componentRefs (skip only when the recipe excludes or disables the driver; live-detection fallback when refs are absent); a recipe-enabled driver with missing workloads or no served DRA API fails. NVIDIA ResourceSlices count only after the same pool/taint/ topology validation; the behavioral allocation subtest runs whenever full-GPU DRA is usable (any served version), otherwise it is recorded as not applicable. Exercising the MNNVL ComputeDomain flow is a tracked follow-up. inference-perf: worker GPU wiring is mode-dispatched node-locally on the shared probe (validators/internal/allocmode) and supports exactly two GPU allocation configurations: nodes publishing node-local gpu.nvidia.com ResourceSlices bind a ResourceClaimTemplate at the served resource.k8s.io version (v1beta1 request shape included), sized from the validated per-node device count — kai classifies such nodes DRA-only and rejects scalar GPU requests, so a node whose raw slices AICR could not validate is ineligible for plugin wiring; ComputeDomain-only / no-full-GPU-slice nodes get resources.limits nvidia.com/gpu sized from scalar allocatable. Anything outside those two states fails fast with ErrCodeInvalidRequest instead of guessing (non-NVIDIA gpu-named slice drivers, allocated claims requesting a non-NVIDIA gpu-named DeviceClass — kai v0.14.1 classifies claim demand by the Exactly request's class name, independent of the backing driver; AICR also screens firstAvailable subrequest classes, a deliberately conservative policy — non-node-local gpu.nvidia.com topologies, pools published by slices of multiple nodes, and allocations from pools no node-local slice publishes), citing NVIDIA#1327; generalized topology/driver support is tracked in NVIDIA#1652. Candidates are scored capacity-first as (node, mechanism) pairs by free GPUs (ties prefer DRA then node name), and the winning pair decides the wiring. Occupancy counts effective nvidia.com/gpu requests of bound non-terminal pods (K8s effective-request rules: one-shot inits stack on preceding restartable sidecars; RuntimeClass overhead added) plus DRA gpu.nvidia.com allocations attributed through the slice-derived pool-to-node map (the K8s API does not require pool names to be node names; adminAccess results excluded — a known, accepted divergence from kai's demand vector, documented in NVIDIA#1652), deduplicating KEP-5004 DRA-backed extended-resource claims per claim request via pod.status.extendedResourceClaimStatus.requestMappings. List errors fail closed (context cancellation maps to ErrCodeTimeout; only 'DRA API not served' means deterministically zero DRA usage). Manifests: only the default-scheduled vllm-metrics-test converts to device-plugin GPU requests. The kai-scheduled static entry points (vllm-agg demo CUJ, dynamo-vllm-agg + gang-scheduling evidence, dynamo-vllm-smoke-test) deliberately keep main's DRA-claims form — kai rejects scalar GPU requests on nodes bearing raw spec.nodeName gpu-driver ResourceSlices (unvalidated), so a scalar conversion breaks them on today's dual-advertised default clusters; their conversion lands atomically with PR 3's recipe flip. ComputeDomain/IMEX and RoCE DRA paths untouched. CNCF evidence descriptions, validator catalog, and user docs updated to the 'device plugin or DRA' model. Test-resource lifecycle: secure-access and the dra-support behavioral subtest run in a per-run generated namespace (128-bit token, ownership label aicr.run/gpu-test-run, UID-preconditioned deletion; foreign AlreadyExists collisions fail without deleting). Cleanup is a single namespace deletion under one bounded budget relying on the namespace deletion controller for durable garbage collection, with distinct confirmed-gone / in-progress / failed outcomes and ambiguous-create settle handling. Both checks derive a work budget from the check context deadline minus a documented cleanup reserve (failing fast before creating resources when the catalog timeout is too short), so cleanup fits inside the existing per-check timeouts; leaked namespaces carry the ownership label for external sweeping. Validator-wide lifecycle hardening is tracked separately in NVIDIA#1632. The DRA driver probes use the component's resolved namespace from the recipe (e.g. Talos overrides it), falling back to the default only when unset. Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
Part 1 of 3 for NVIDIA#1327. Regular Go-validator descriptions (recipes/validators/catalog.yaml) say DRA-or-device-plugin — those checks are mode-dispatched. The CNCF submission collector's feature descriptions (pkg/evidence/cncf) remain DRA-only: its shell collector exercises gpu.nvidia.com ResourceClaims until NVIDIA#1629 makes it mode-aware. The NVIDIA DRA driver's supported configuration is ComputeDomain-only (no gpu.nvidia.com DeviceClass); whole GPUs come from the device plugin. AICR's conformance checks and inference-perf workload hard-required full-GPU DRA and fail on such clusters, while the CNCF secure_accelerator_access requirement permits 'device plugin or DRA'. Mirrors the upstream fix in kubernetes-sigs/ai-conformance#75. Capability probe (shared by the conformance checks): - Discovers the served resource.k8s.io version (v1, v1beta2, v1beta1 — the versions the driver chart accepts) and reads DeviceClasses and ResourceSlices at that version via the dynamic client, normalizing the v1beta1 per-device 'basic' wrapper for taints and topology. - DRA is usable only when the DeviceClass exists and a ResourceSlice from the configured driver, in a complete current-generation pool, advertises untainted devices reachable from a Ready, schedulable node (all four slice topologies; Kubernetes NotIn absent-key semantics). - Device-plugin usable = Ready, schedulable node with scalar allocatable nvidia.com/gpu; per KEP-5004 semantics such nodes are device-plugin-backed even when a DeviceClass maps the extended resource, so the mapping is recorded as attribution evidence rather than clearing usability. Dual advertisement (slices + scalar allocatable on the same nodes) logs an over-admission warning (promotion to an error lands with the recipe-flip PR 3; the stacked PR 2 adds recipe-configured policy resolution). secure-accelerator-access: dispatches on the probe; both modes run the same isolation assertions including a multi-container subtest. The granted container must see EXACTLY one GPU (nvidia-smi UUID count); request-less probes stay device-file based. The device-plugin test pod uses required node affinity over all detected scalar-capacity nodes so the scheduler picks a free one; DRA test claims are built in the served API version's shape (v1beta1 uses direct request fields). dra-support: never falls back to the device plugin. Scope comes from the recipe's componentRefs (skip only when the recipe excludes or disables the driver; live-detection fallback when refs are absent); a recipe-enabled driver with missing workloads or no served DRA API fails. NVIDIA ResourceSlices count only after the same pool/taint/ topology validation; the behavioral allocation subtest runs whenever full-GPU DRA is usable (any served version), otherwise it is recorded as not applicable. Exercising the MNNVL ComputeDomain flow is a tracked follow-up. inference-perf: worker GPU wiring is mode-dispatched node-locally on the shared probe (validators/internal/allocmode) and supports exactly two GPU allocation configurations: nodes publishing node-local gpu.nvidia.com ResourceSlices bind a ResourceClaimTemplate at the served resource.k8s.io version (v1beta1 request shape included), sized from the validated per-node device count — kai classifies such nodes DRA-only and rejects scalar GPU requests, so a node whose raw slices AICR could not validate is ineligible for plugin wiring; ComputeDomain-only / no-full-GPU-slice nodes get resources.limits nvidia.com/gpu sized from scalar allocatable. Anything outside those two states fails fast with ErrCodeInvalidRequest instead of guessing (non-NVIDIA gpu-named slice drivers, allocated claims requesting a non-NVIDIA gpu-named DeviceClass — kai v0.14.1 classifies claim demand by the Exactly request's class name, independent of the backing driver; AICR also screens firstAvailable subrequest classes, a deliberately conservative policy — non-node-local gpu.nvidia.com topologies, pools published by slices of multiple nodes, and allocations from pools no node-local slice publishes), citing NVIDIA#1327; generalized topology/driver support is tracked in NVIDIA#1652. Candidates are scored capacity-first as (node, mechanism) pairs by free GPUs (ties prefer DRA then node name), and the winning pair decides the wiring. Occupancy counts effective nvidia.com/gpu requests of bound non-terminal pods (K8s effective-request rules: one-shot inits stack on preceding restartable sidecars; RuntimeClass overhead added) plus DRA gpu.nvidia.com allocations attributed through the slice-derived pool-to-node map (the K8s API does not require pool names to be node names; adminAccess results excluded — a known, accepted divergence from kai's demand vector, documented in NVIDIA#1652), deduplicating KEP-5004 DRA-backed extended-resource claims per claim request via pod.status.extendedResourceClaimStatus.requestMappings. List errors fail closed (context cancellation maps to ErrCodeTimeout; only 'DRA API not served' means deterministically zero DRA usage). Manifests: only the default-scheduled vllm-metrics-test converts to device-plugin GPU requests. The kai-scheduled static entry points (vllm-agg demo CUJ, dynamo-vllm-agg + gang-scheduling evidence, dynamo-vllm-smoke-test) deliberately keep main's DRA-claims form — kai rejects scalar GPU requests on nodes bearing raw spec.nodeName gpu-driver ResourceSlices (unvalidated), so a scalar conversion breaks them on today's dual-advertised default clusters; their conversion lands atomically with PR 3's recipe flip. ComputeDomain/IMEX and RoCE DRA paths untouched. CNCF evidence descriptions, validator catalog, and user docs updated to the 'device plugin or DRA' model. Test-resource lifecycle: secure-access and the dra-support behavioral subtest run in a per-run generated namespace (128-bit token, ownership label aicr.run/gpu-test-run, UID-preconditioned deletion; foreign AlreadyExists collisions fail without deleting). Cleanup is a single namespace deletion under one bounded budget relying on the namespace deletion controller for durable garbage collection, with distinct confirmed-gone / in-progress / failed outcomes and ambiguous-create settle handling. Both checks derive a work budget from the check context deadline minus a documented cleanup reserve (failing fast before creating resources when the catalog timeout is too short), so cleanup fits inside the existing per-check timeouts; leaked namespaces carry the ownership label for external sweeping. Validator-wide lifecycle hardening is tracked separately in NVIDIA#1632. The DRA driver probes use the component's resolved namespace from the recipe (e.g. Talos overrides it), falling back to the default only when unset. Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
|
/test pull-ai-conformance-e2e-gcp |
|
Please ignore the test failure. It's non-blocking for now. |
f1c0364 to
929f241
Compare
|
@janetkuo I also folded in a small fix for the e2e job failure: /retest |
|
I'm fixing the test failures in a separate PR: #77 Let's keep this PR focused on device-plugin support |
| echo "Installing boskosctl..." | ||
| go install sigs.k8s.io/boskos/cmd/boskosctl@latest | ||
| fi | ||
|
|
There was a problem hiding this comment.
@yuanchen8911 would you revert the changes here? I'm fixing the failures in #77, and prefer keeping this PR focused. The test won't block PR merges.
There was a problem hiding this comment.
Done — reverted in 4d54820; this PR no longer touches run-e2e-gcp.sh. FYI for #77: the retest that ran with corrected boskosctl flags acquired/released the Boskos project cleanly and then hit GPU STOCKOUT for the L4 in us-central1-b, so the multi-zone fallback + T4 switch there looks like the right fix.
The secure_accelerator_access requirement permits accelerator access mediated by the Kubernetes resource management framework 'device plugin or DRA', but the automated test only exercises the DRA path. Clusters running the NVIDIA DRA driver in its supported configuration (ComputeDomain only, whole GPUs via the device plugin) expose no gpu.nvidia.com DeviceClass and cannot run the test despite satisfying the requirement as written. Add an -allocation-mode flag (auto|dra|device-plugin, default auto) controlling how test pods request accelerators. All three isolation subtests run identically in both modes. Detection is capability-based and fails closed: - DRA is usable only when the DeviceClass exists and a ResourceSlice from the configured driver, in a complete current-generation pool (obsolete generations and pools with missing slices are ignored, per ResourceSliceCount — the scheduler's allocator does the same), advertises devices without inline NoSchedule/NoExecute device taints, reachable from a Ready, schedulable node — resolving all four slice topologies (nodeName, nodeSelector, allNodes, perDeviceNodeSelection) to a concrete node, preferring nodes that advertise the extended resource for broad (allNodes/selector) slices. DeviceClass CEL selectors and alpha DeviceTaintRule objects are documented as out of scope for the preflight. - Device-plugin capacity requires a Ready, schedulable node advertising the extended resource; the mode (explicit or auto fallback) is rejected when a DRA DeviceClass maps the extended resource name (DRAExtendedResource / spec.extendedResourceName), since such requests may be satisfied by DRA and the attribution would be wrong. Only 'DRA API not served' bypasses that guard; other DeviceClass-list errors propagate. Also hardened while extending the test: - Resolve an accelerator node at parent level and pin the negative isolation pod to it (refined by the positive pod's placement), so it cannot schedule onto a CPU-only node and pass vacuously — including under -run subtest filtering. - Separate DRADriver from DeviceClass in AcceleratorConfig instead of assuming the class name equals the ResourceSlice driver name. - Subtest cleanup waits for pod deletion AND release of template-generated ResourceClaims: claim names come from pod.status.resourceClaimStatuses (falling back to the last-known pod), an owner-reference scan whenever the status yields no claim names, and a final owner rescan after the pod is gone — the resourceclaim controller creates the generated claim before patching pod status, so both the status-lag and create-after-capture races are closed. Non-NotFound API errors propagate instead of masking as timeouts. - Validate -accelerator-type up front; skip NotReady nodes in capacity detection; tolerate NotFound in namespace cleanup when the test fails before namespace creation; guard nil ResourceSlice NodeName. - Hermetic fake-client unit tests (-race) for mode detection, slice-topology and pool-generation/taint resolution, the fail-closed attribution guard (reactor-injected API errors), pod construction, and the cleanup helpers. Verified on an EKS GB200 cluster (2 nodes x 4 GPUs, both mechanisms advertised): all three subtests pass in dra (auto-detected) and device-plugin modes. Ref: kubernetes-sigs#27 Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
929f241 to
4d54820
Compare
|
Sounds good — reverted the |
|
@yuanchen8911: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: janetkuo The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
6fe6254
into
kubernetes-sigs:main
Fixes the gap discussed in #27 (see this comment): the
secure_accelerator_accessrequirement permits accelerator access mediated by the Kubernetes resource management framework "(device plugin or DRA)", but the automated test from #45 exercises only the DRA path, andtest/README.mdlists a DRA driver as a hard prerequisite.This gap is practical, not hypothetical. The NVIDIA DRA driver chart deliberately fails rendering with
resources.gpus.enabled=trueunless the operator setsgpuResourcesEnabledOverride=true— its own error message states the driver "cannot be deployed alongside the standard GPU device plugin on the same node" until KEP 5004 is GA. Clusters configured the supported way — standard device plugin retained, whole-GPU DRA disabled, DRA serving ComputeDomain/IMEX — therefore expose nogpu.nvidia.comDeviceClass, allocate whole GPUs vianvidia.com/gpu, satisfy the requirement as written, and cannot run the current automated test.What this adds
-allocation-modeflag (auto|dra|device-plugin, defaultauto) controlling how test pods request accelerators. All three isolation subtests run identically in both modes.ResourceSliceCount, matching the scheduler's allocator), advertises devices without inlineNoSchedule/NoExecutedevice taints, reachable from a Ready, schedulable node — resolving all four slice topologies (nodeName,nodeSelector,allNodes,perDeviceNodeSelection) to a concrete eligible node, preferring nodes that advertise the extended resource for broad (allNodes/selector) slices. DeviceClass CEL selectors and alphaDeviceTaintRuleobjects are documented as out of scope for the preflight.spec.extendedResourceName, DRAExtendedResource feature), since such requests may be satisfied by DRA and the reported mediation would be wrong. Only "DRA API not served" bypasses that guard; other DeviceClass-list errors propagate.autoprefers DRA when usable, otherwise falls back to the device plugin; explicit modes fail with clear environment errors, keeping CI deterministic.extended-resourceas the mode name (it describes the request rather than the backend) — happy to rename if maintainers prefer.Hardening included (issues found while extending the test; most pre-existing)
-runsubtest filtering. This implements the node-pinning concern raised in Test Plan: [Security] Secure Accelerator Access #27.AcceleratorConfigseparatesDRADriverfromDeviceClassrather than assuming name equality (DeviceClass eligibility is CEL-selector-based in general).pod.status.resourceClaimStatuses, falling back to the last-known pod, and — because the resourceclaim controller creates the generated claim before patching pod status — an owner-reference scan of the namespace's ResourceClaims whenever the status yields no claim names. Non-NotFound API errors propagate instead of masking as timeouts.-accelerator-typeis validated up front; NotReady nodes are excluded from capacity detection; nilResourceSlice.spec.nodeNameno longer panics; namespace cleanup tolerates NotFound when the test fails before setup.-race, no cluster needed) for mode detection, slice-topology resolution, the fail-closed attribution guard (reactor-injected API errors), pod construction, and the cleanup helpers.Also updates KAR-0049's test-plan reference (tests were "being developed in #45" → added and extended) and the README prerequisites/flags.
Known limitation carried over from #45 (follow-up, not addressed here): the
/dev/nvidia*probe cannot prove that exactly one GPU was allocated to the authorized container.Verification
gofmt,go vet ./test,go mod tidy -diff, and the hermetic unit suite under-race— all clean.gpu.nvidia.comResourceSlices and device-pluginnvidia.com/gpu), against this exact HEAD:The negative-isolation pod was pinned to the GPU node in both runs, so its pass is non-vacuous.
Ref: #27