Skip to content

Add device-plugin allocation mode to secure accelerator access test - #75

Merged
kubernetes-prow[bot] merged 1 commit into
kubernetes-sigs:mainfrom
yuanchen8911:secure-access-device-plugin
Jul 8, 2026
Merged

kubernetes-prow[bot] merged 1 commit into
kubernetes-sigs:mainfrom
yuanchen8911:secure-access-device-plugin

Conversation

@yuanchen8911

@yuanchen8911 yuanchen8911 commented Jul 6, 2026 •

Copy link
Copy Markdown
Member

Fixes the gap discussed in #27 (see this comment): the secure_accelerator_access requirement 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, and test/README.md lists 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=true unless the operator sets gpuResourcesEnabledOverride=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 no gpu.nvidia.com DeviceClass, allocate whole GPUs via nvidia.com/gpu, satisfy the requirement as written, and cannot run the current automated test.

What this adds

  • -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, matching the scheduler's allocator), 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 eligible 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 (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.
  • auto prefers DRA when usable, otherwise falls back to the device plugin; explicit modes fail with clear environment errors, keeping CI deterministic.
  • Mode names follow the requirement's vocabulary ("device plugin or DRA") so certification reviewers can map results directly onto the requirement text. We considered extended-resource as 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)

  • An accelerator node is resolved up front and the negative isolation pod is pinned to it (refined by the positive pod's actual placement), so a request-less pod can no longer schedule onto a CPU-only node and pass vacuously — including under -run subtest filtering. This implements the node-pinning concern raised in Test Plan: [Security] Secure Accelerator Access #27.
  • AcceleratorConfig separates DRADriver from DeviceClass rather than assuming name equality (DeviceClass eligibility is CEL-selector-based in general).
  • 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, 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-type is validated up front; NotReady nodes are excluded from capacity detection; nil ResourceSlice.spec.nodeName no longer panics; namespace cleanup tolerates NotFound when the test fails before setup.
  • Hermetic fake-client unit tests (run under -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.
  • Live runs on an EKS GB200 cluster (2 nodes × 4 GPUs each, K8s 1.34, both mechanisms advertised — gpu.nvidia.com ResourceSlices and device-plugin nvidia.com/gpu), against this exact HEAD:
$ go test -v ./test -run TestSecureAcceleratorAccess
    util_test.go:184: Auto-detected allocation mode: dra
    util_test.go:151: Secure accelerator access test running with allocation mode: dra (accelerator node: ip-100-64-162-146.ec2.internal)
--- PASS: TestSecureAcceleratorAccess (130.92s)
    --- PASS: TestSecureAcceleratorAccess/PositiveAccessTest
    --- PASS: TestSecureAcceleratorAccess/NegativeIsolationTest
    --- PASS: TestSecureAcceleratorAccess/MultiContainerIsolationTest

$ go test -v ./test -run TestSecureAcceleratorAccess -allocation-mode=device-plugin
    util_test.go:151: Secure accelerator access test running with allocation mode: device-plugin (accelerator node: ip-100-64-162-146.ec2.internal)
--- PASS: TestSecureAcceleratorAccess (139.09s)
    --- PASS: TestSecureAcceleratorAccess/PositiveAccessTest
    --- PASS: TestSecureAcceleratorAccess/NegativeIsolationTest
    --- PASS: TestSecureAcceleratorAccess/MultiContainerIsolationTest

The negative-isolation pod was pinned to the GPU node in both runs, so its pass is non-vacuous.

Ref: #27

@kubernetes-prow
kubernetes-prow Bot requested review from ritazh and terrytangyuan July 6, 2026 19:43
@kubernetes-prow kubernetes-prow Bot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jul 6, 2026
@yuanchen8911
yuanchen8911 force-pushed the secure-access-device-plugin branch 4 times, most recently from bb35acd to 219d401 Compare July 6, 2026 20:32
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Jul 6, 2026
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>
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Jul 6, 2026
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>
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Jul 6, 2026
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>
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Jul 6, 2026
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>
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Jul 6, 2026
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>
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Jul 7, 2026
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>
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Jul 7, 2026
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>
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Jul 7, 2026
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>
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Jul 7, 2026
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>
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Jul 7, 2026
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>
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Jul 7, 2026
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>
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Jul 7, 2026
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>
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Jul 7, 2026
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>
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Jul 7, 2026
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>
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Jul 7, 2026
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>
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Jul 7, 2026
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>
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Jul 7, 2026
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>
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Jul 7, 2026
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>
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Jul 8, 2026
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>
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Jul 8, 2026
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>
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Jul 8, 2026
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>
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Jul 8, 2026
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>
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Jul 8, 2026
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>
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Jul 8, 2026
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>
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Jul 8, 2026
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>
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Jul 8, 2026
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>
@janetkuo

janetkuo commented Jul 8, 2026

Copy link
Copy Markdown
Member

/test pull-ai-conformance-e2e-gcp

@janetkuo

janetkuo commented Jul 8, 2026

Copy link
Copy Markdown
Member

Please ignore the test failure. It's non-blocking for now.

@yuanchen8911
yuanchen8911 force-pushed the secure-access-device-plugin branch 2 times, most recently from f1c0364 to 929f241 Compare July 8, 2026 21:29
@yuanchen8911

Copy link
Copy Markdown
Member Author

@janetkuo I also folded in a small fix for the e2e job failure: test/e2e/run-e2e-gcp.sh was calling boskosctl with flags that don't match the current CLI. Fixed --server/--owner → --server-url/--owner-name, added the required --state free --target-state busy to acquire (which prints a JSON lease, so the project name is now extracted with jq -r .name), passed the lease JSON to heartbeat --resource (it loops internally, so the manual while-loop is gone), and added the required --target-state dirty to release. Happy to split this into a separate PR if you'd prefer.

/retest

@janetkuo

janetkuo commented Jul 8, 2026

Copy link
Copy Markdown
Member

I'm fixing the test failures in a separate PR: #77

Let's keep this PR focused on device-plugin support

@yuanchen8911

Copy link
Copy Markdown
Member Author

@janetkuo Comments addressed — PTAL when you get a chance.

/cc @janetkuo

@kubernetes-prow
kubernetes-prow Bot requested a review from janetkuo July 8, 2026 21:32
Comment thread test/e2e/run-e2e-gcp.sh
echo "Installing boskosctl..."
go install sigs.k8s.io/boskos/cmd/boskosctl@latest
fi

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@yuanchen8911
yuanchen8911 force-pushed the secure-access-device-plugin branch from 929f241 to 4d54820 Compare July 8, 2026 21:47
@yuanchen8911

Copy link
Copy Markdown
Member Author

Sounds good — reverted the run-e2e-gcp.sh changes from this PR (now 4d54820, back to focusing on device-plugin support only). One data point that may be useful for #77: the retest that ran with the corrected boskosctl flags acquired and released the Boskos project cleanly, and then failed on GPU capacity — STOCKOUT for the L4 in us-central1-b — so the multi-zone fallback and T4 switch in #77 look like exactly the right fix.

@kubernetes-prow

Copy link
Copy Markdown
Contributor

@yuanchen8911: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-ai-conformance-e2e-gcp 4d54820 link false /test pull-ai-conformance-e2e-gcp

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.

Details

Instructions 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.

@janetkuo janetkuo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@kubernetes-prow kubernetes-prow Bot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 8, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubernetes-prow kubernetes-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 8, 2026
@kubernetes-prow
kubernetes-prow Bot merged commit 6fe6254 into kubernetes-sigs:main Jul 8, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants