Repository navigation
Conversation
|
A node can run I read this PR together with #62 and ran the unit tests at 0ab708d. My evidence is two unit tests (below) and a code reading. I did not run aim-engine end to end on such a cluster. On real AMD GPUs I only saw plain pods that request Important: a DRA node with the A DeviceClass can set
So on a mapped cluster the controller stops reconciling a running service, and no mode gives a new service a pod that requests Two tests reproduce this (first block below):
For the explicit The suggested fix is 22 lines without the tests. The sketch has these limits:
Failing tests (both fail at 0ab708d and pass with the fix below)diff --git a/internal/v1alpha2/aimprofile/node_inventory_test.go b/internal/v1alpha2/aimprofile/node_inventory_test.go
index cac1bdc2..b2580496 100644
--- a/internal/v1alpha2/aimprofile/node_inventory_test.go
+++ b/internal/v1alpha2/aimprofile/node_inventory_test.go
@@ -34,6 +34,8 @@ import (
"k8s.io/utils/ptr"
"sigs.k8s.io/controller-runtime/pkg/client/fake"
+ aimv1alpha1 "github.com/amd-enterprise-ai/aim-engine/api/v1alpha1"
+ aimv1alpha2 "github.com/amd-enterprise-ai/aim-engine/api/v1alpha2"
"github.com/amd-enterprise-ai/aim-engine/internal/constants"
)
@@ -124,3 +126,59 @@ func TestListNodeInventoryWithoutResourceAPI(t *testing.T) {
t.Errorf("inventory = %+v, want one node and no DRA devices", inventory)
}
}
+
+// When a DeviceClass sets extendedResourceName: amd.com/gpu, the scheduler
+// serves an amd.com/gpu request from DRA devices. The node then has no
+// allocatable amd.com/gpu, but a device-plugin style pod still runs there.
+func TestMatchProfileNodesDRANodeWithExtendedResourceMapping(t *testing.T) {
+ node := makeNode("dra", map[string]string{
+ AcceleratorVendorLabelPrefix + "GPU.AMD": "8",
+ AcceleratorLabelPrefix + "MI300X": "8",
+ PartitioningSchemeLabelPrefix + PartitioningSchemeDefault: "8",
+ }, hostCapacity("192"))
+ slice := amdSlice("dra", "dra", "dra", 1, repeatDevices(8, "0x74a1", DRADeviceTypeGPU, "spx_nps1")...)
+ spec := aimv1alpha2.AIMProfileSpecCommon{
+ AcceleratorType: aimv1alpha1.AcceleratorTypeGPU,
+ AcceleratorModel: "MI300X",
+ AcceleratorCount: 1,
+ }
+
+ for _, tt := range []struct {
+ name string
+ extendedResourceName *string
+ wantDevicePlugin int32
+ }{
+ {name: "no mapping", wantDevicePlugin: 0},
+ {name: "class maps amd.com/gpu", extendedResourceName: ptr.To(constants.AMDGPUResourceName), wantDevicePlugin: 1},
+ } {
+ t.Run(tt.name, func(t *testing.T) {
+ class := &resourcev1.DeviceClass{
+ ObjectMeta: metav1.ObjectMeta{Name: constants.AMDGPUDRADriverName},
+ Spec: resourcev1.DeviceClassSpec{
+ Selectors: []resourcev1.DeviceSelector{{CEL: &resourcev1.CELDeviceSelector{
+ Expression: "device.driver == '" + constants.AMDGPUDRADriverName + "'",
+ }}},
+ ExtendedResourceName: tt.extendedResourceName,
+ },
+ }
+ scheme := runtime.NewScheme()
+ if err := corev1.AddToScheme(scheme); err != nil {
+ t.Fatal(err)
+ }
+ if err := resourcev1.AddToScheme(scheme); err != nil {
+ t.Fatal(err)
+ }
+ c := fake.NewClientBuilder().WithScheme(scheme).WithObjects(&node, &slice, class).Build()
+
+ inventory, err := ListNodeInventory(context.Background(), c)
+ if err != nil {
+ t.Fatal(err)
+ }
+ result := MatchProfileNodes(inventory, spec, ResolveProfileResources(spec))
+ if result.MatchingNodes != tt.wantDevicePlugin || result.DRAMatchingNodes != 1 {
+ t.Errorf("device plugin %d, DRA %d; want %d and 1\nmismatches: %+v",
+ result.MatchingNodes, result.DRAMatchingNodes, tt.wantDevicePlugin, result.NodeMismatches)
+ }
+ })
+ }
+}
diff --git a/internal/v1alpha2/aimservice/dra_test.go b/internal/v1alpha2/aimservice/dra_test.go
index d1b012c8..dd944f52 100644
--- a/internal/v1alpha2/aimservice/dra_test.go
+++ b/internal/v1alpha2/aimservice/dra_test.go
@@ -288,6 +288,61 @@ func TestAllocationAvailable(t *testing.T) {
}
}
+// A service made before the allocation modes requests amd.com/gpu. When a
+// DeviceClass maps amd.com/gpu, its pod still runs on a DRA node, so the
+// device-plugin mode that Auto keeps for it must find that node.
+func TestAutoKeepsRunningDevicePluginServiceOnMappedDRANode(t *testing.T) {
+ node := &corev1.Node{
+ ObjectMeta: metav1.ObjectMeta{Name: "dra", Labels: map[string]string{
+ aimprofile.AcceleratorLabelPrefix + "MI300X": "8",
+ aimprofile.PartitioningSchemeLabelPrefix + aimprofile.PartitioningSchemeDefault: "8",
+ }},
+ Status: corev1.NodeStatus{Allocatable: corev1.ResourceList{
+ corev1.ResourceCPU: resource.MustParse("192"),
+ corev1.ResourceMemory: resource.MustParse("1Ti"),
+ }},
+ }
+ slice := &resourcev1.ResourceSlice{
+ ObjectMeta: metav1.ObjectMeta{Name: "dra"},
+ Spec: resourcev1.ResourceSliceSpec{
+ Driver: constants.AMDGPUDRADriverName,
+ NodeName: ptr.To("dra"),
+ Pool: resourcev1.ResourcePool{Name: "dra", Generation: 1, ResourceSliceCount: 1},
+ Devices: []resourcev1.Device{{
+ Name: "gpu-0",
+ Attributes: map[resourcev1.QualifiedName]resourcev1.DeviceAttribute{
+ "deviceID": {StringValue: ptr.To("0x74a1")},
+ "type": {StringValue: ptr.To(aimprofile.DRADeviceTypeGPU)},
+ "partitionProfile": {StringValue: ptr.To(aimprofile.DRAUnpartitionedProfile)},
+ },
+ }},
+ },
+ }
+ class := &resourcev1.DeviceClass{
+ ObjectMeta: metav1.ObjectMeta{Name: constants.AMDGPUDRADriverName},
+ Spec: resourcev1.DeviceClassSpec{ExtendedResourceName: ptr.To(constants.AMDGPUResourceName)},
+ }
+ spec := sampleProfileSpec()
+ service := &aimv1alpha1.AIMService{ObjectMeta: metav1.ObjectMeta{Name: testServiceName, Namespace: "ns"}}
+ profile := &aimv1alpha2.AIMClusterProfile{ObjectMeta: metav1.ObjectMeta{Name: testClusterProfileName}}
+ c, _ := newProfileRuntimePipelineFixture(t, service, profile, node, slice, class)
+
+ inventory, err := aimprofile.ListNodeInventory(context.Background(), c)
+ if err != nil {
+ t.Fatal(err)
+ }
+ match := aimprofile.MatchProfileNodes(inventory, *spec, aimprofile.ResolveProfileResources(*spec))
+ status := profileStatusWith(match.MatchingNodes, match.DRAMatchingNodes)
+ running := &servingv1beta1.InferenceService{}
+
+ decision := decideAllocation(service, testClusterProfileName, spec, status.MatchingNodesByAllocation, running, nil)
+
+ if decision.mode != aimv1alpha1.AcceleratorAllocationDevicePlugin || !allocationAvailable(decision, status) {
+ t.Errorf("mode %q, nodes available %t (device plugin %d, DRA %d); want DevicePlugin with a node",
+ decision.mode, allocationAvailable(decision, status), match.MatchingNodes, match.DRAMatchingNodes)
+ }
+}
+
func TestStaleClaimTemplateCleanup(t *testing.T) {
obs := ServiceObservation{}
named := func(name string) resourcev1.ResourceClaimTemplate {Output at 0ab708d: Suggested fix (diff against the test commit, without the generated
|
pre
left a comment
There was a problem hiding this comment.
Requesting changes: on a cluster where a DeviceClass maps amd.com/gpu to DRA devices, a pod can still request amd.com/gpu, but this PR counts those nodes as DRA-only. Hence, a service that main deployed there gets NoNodesForAllocation after the upgrade and DevicePlugin mode finds no node. The failing tests and a 22-line fix are in #64 (comment)
|
I ran the cases from my comment above on real GPUs. The regression shows there, and the fix removes it. Setup. One node with 8 AMD Instinct MI300X (SPX, NPS1), Kubernetes v1.36.6, and the AMD GPU DRA driver v1.0.1 with no device plugin. The DeviceClass Without the fix, every profile reports
With the fix from my comment above, applied on 0ab708d, every profile reports
DRA mode also works without the fix. With and without the mapping, Two more findings:
|
|
Applied. The node counting lives in #62, so the fix and
The |
pre
left a comment
There was a problem hiding this comment.
I tested the changes, they work, thank you!
d793442 to
55e2a4e
Compare
a5df2d8 to
ba60b37
Compare
Add acceleratorAllocation.mode (Auto, DRA, DevicePlugin) to the shared runtime config, with Auto as the default: DRA when a node with the AMD GPU DRA driver has the profile's GPUs, the device plugin otherwise. A running service keeps the mode its InferenceService uses. A DRA service gets a ResourceClaimTemplate selecting devices of one GPU model by PCI device ID and partitioning mode, and references a variant of the profile's ServingRuntime without amd.com/gpu or node affinity. Profiles count DRA nodes in matchingNodes and HardwareAvailable; their projected runtimes stay device-plugin only.
Auto now uses DRA only when no device-plugin node has the profile's GPUs, and decides from the nodes that fit the service's resources when spec.resources overrides them. DRA pods get the amd.com/gpu NoSchedule toleration that ExtendedResourceToleration gives device-plugin pods. Document the new RBAC and the upgrade behaviour.
…node A service deployed before the allocation modes requests amd.com/gpu. When a DeviceClass maps amd.com/gpu, its pod still runs on a DRA node, so the device-plugin mode Auto keeps for it must find that node. Co-authored-by: Petrus Repo <petrus.repo@amd.com>
…artitioned claims AMD GPU nodes with more than one GPU model can serve AIMServices through DRA, which selects devices by model. Say so in the mixed-model mismatch reason for AMD nodes and in the accelerator detection and upgrade docs. An unpartitioned DRA claim now also requires the device to have no partition profile or the spx_nps1 profile, so it does not take a partition of a partitioned GPU.
Evaluate the CEL selector of every model and partitioning mode with cel-go against the ResourceSlices the ROCm GPU DRA driver publishes, and require the same verdict as the Go node matcher for each device. A drift would let a profile report DRA nodes that its claims cannot be allocated on.
The scheduler allocates a device with a DRA device taint only to a claim that tolerates it, and the claims AIM Engine creates tolerate none. Leave tainted devices out of the DRA match and name them in the mismatch reason. The CEL selector stays taint-free: the scheduler checks taints apart from a claim's selectors.
55e2a4e to
506e365
Compare
ba60b37 to
f806e26
Compare
|
Rebased onto the updated #62 and onto
|
bjorn-amd
left a comment
There was a problem hiding this comment.
Review summary
Verdict: Request changes.
DRA isn't behind an operator flag, so the requirement for merging is that every path where DRA doesn't apply behaves as it does on main. DRA allocation itself can ship as experimental. Items 7 and later only affect services that use DRA, and can be follow-ups.
The rebase, the LLMInferenceService handling in Auto, the shared device-ID table and the CEL/matcher test look good.
References are to f806e26f.
Before merge
-
NotAvailableis rejected by the status enum (internal/v1alpha2/aimservice/reconcile.go:679,:689). The framework keepsNotAvailableas the worst component state, andSetStatuspasses it through tostatus.status, whose enum isPending;Starting;Running;Degraded;Failed(api/v1alpha1/aimservice_types.go:676). The API server rejects the whole status update (on kind:status.status: Unsupported value: "NotAvailable"), so the service keeps its previous status and conditions, e.g.Running/Ready=True.mainhas the same bug (reconcile.go:660;SetStatuspasses the value through unchanged), but this PR makes it the only path that reportsNoNodesForAllocation. Suggest a separate PR tomainthat mapsNotAvailableinSetStatus, with a test that the status write succeeds. -
Paths where DRA doesn't apply:
- A cluster-wide
mode: DRA.requestedAllocationModefalls back to the runtime config's mode.decideAllocationthen sets an error for every NVIDIA profile (dra.go:109-111) and every LLMInferenceService service (dra.go:105-108), so they all reportFailed(ConfigValid=False) and nothing more is applied for them, running ones included. A unit test with only the runtime config set toDRAgivesProfileConfigFailed/AcceleratorAllocationUnsupportedfor both. Is that intended? Erroring only when the AIMService itself setsDRA, and falling back toDevicePluginwhen the mode comes from a runtime config, would avoid it. - An explicit
DevicePluginmode.resolver.godoesn't consider the mode, and a profile that only DRA nodes can serve is Ready. In a unit test with an MI300X profile matching only DRA nodes and an MI355X profile matching only device-plugin nodes, a service with a selector matching both and modeDevicePluginresolves to the MI300X profile, which has no nodes for its mode. - ResourceClaimTemplates are listed for every GPU service but never watched (
dra.go:306). With the cached client this starts an informer inside the reconcile, as the DeviceClass list in #62 did, so I'd expect the same blocking without RBAC (not reproduced).Owns(&resourcev1.ResourceClaimTemplate{}), gated on the API being served (e.g. inWatchAMDGPUDRAInventory), also makes a deleted template trigger a reconcile. - Device-plugin services. #62 now has a parity test for profiles. Is there an equivalent for services, checking that an existing device-plugin service's InferenceService and ServingRuntime are unchanged by this PR?
- A cluster-wide
-
The quota docs don't hold.
CHANGELOG.md:52recommendsmode: DevicePluginin the cluster runtime config to keepamd.com/gpuquotas effective, andruntime-config.md:466offersDevicePluginas the alternative to DeviceClass quota. But a namespaceAIMRuntimeConfigtakes precedence over the cluster one when they are merged, andrequestedAllocationModeprefers the AIMService's own mode, so either can setDRA. Quota on the DeviceClass is the only effective control, andsecurity.mdshould say so. -
spec.dra.deviceClassName(api/v1alpha1/aimruntimeconfig_shared.go:291-295):- Node matching only reads
gpu.amd.comslices (the cache is now restricted to that driver), so a different class can leave a profile Ready while pods stay Pending. - A misspelled class isn't detected.
- The documented quota key assumes the default class.
Remove the field for now. Adding it later is not a breaking change; removing it after release is.
- Node matching only reads
-
Leftovers from the rebase:
- The #63 changelog entry (
CHANGELOG.md:24) has lost "and an empty list removes the inherited one".mainand the v0.2.8 notes in #94 still have it. - Nothing in the code says why the
-draServingRuntime variant is needed. The reason still holds with KServe v0.20:MergeContainerWithPatch(pkg/utils/container_merge.go) applies a strategic merge patch built from the marshalled InferenceService container, which can overrideamd.com/gpubut not remove it. A comment onDRARuntimeName(serving/runtime.go:114) would help.
- The #63 changelog entry (
-
Mark DRA allocation as experimental in the docs and changelog, including that services using DRA may restart on operator upgrades.
After the retarget to main this needs two new approvals. @pre, could you re-run the MI300X check then?
Follow-ups (affect only services that use DRA)
- Auto keeps the existing InferenceService's mode unconditionally (
dra.go:119-124). The InferenceService name comes from the service name and namespace only, so the mode is kept after the mode has no nodes left, and after aspec.profile.namechange, a selector rebind or a forced rebind. profileOverridesand node counts (reconcile.go:867-870). Withoutspec.resources, the counts come fromseedObs.resolvedProfileStatus. For a service whoseprofileOverrideschange the GPU model, is that the overridden profile's status or the base profile's?- Stale ResourceClaimTemplates are deleted in the same plan that applies the new InferenceService (
dra.go:300, called fromreconcile.go:1656). If the old ReplicaSet recreates a pod while the rollout is still in progress, that pod's template is already gone. Since pod claims are created from the template, I'd expect such a pod to stay Pending (not reproduced). - The claim template name (
dra.go:196-198). The hash covers the device class, count and selector, but not the service name. Two services in the same namespace whose names share the truncated prefix, and that request the same devices, get the same template. Because the rendered CEL is part of the hash, any change to the selector text renames every template and restarts every DRA service. Changing the hash later also restarts DRA services, so it's cheaper to fix before release. - The rollback section in
upgrading.md(:357) doesn't mention that-draServingRuntimes and ResourceClaimTemplates are left behind. - Question: could
decideAllocationmove from Fetch to Compose, by fetching both ServingRuntime names and deciding there?
Run the service pipeline for services that use the device plugin and compare their InferenceService, ServingRuntime and ConfigMap with a golden file generated before AIM Engine allocated GPUs through DRA. Each service is also run in a cluster that has a DRA node, where Auto must still pick the device plugin.
Reconcile lists a service's templates through the cached client, which otherwise starts the informer inside the reconcile. Own them when the cluster serves resource.k8s.io/v1, so the informer starts with the manager and a deleted template reconciles its service.
KServe merges the InferenceService container into the runtime container with a strategic merge patch, which can override amd.com/gpu but not remove it.
…ates Decide the mode after the profileOverrides overlay is resolved, so the node counts are those of the profile the service runs. Fetch reads the profile's ServingRuntime as before, plus its DRA variant for GPU profiles, and ComposeState swaps in the variant for DRA services. A DRA mode inherited from a runtime config applies only to services that can use DRA: NVIDIA profiles and LLMInferenceService services keep the device plugin, and only a DRA mode the service sets itself is refused. Auto keeps the mode of a running InferenceService only while it serves the same profile and that mode has nodes, or neither mode has any. Name claim templates from the service name and the device request rather than the CEL text, so rewriting the selector keeps running pods. A template's spec is immutable, so an existing one is not applied again. Delete a stale template only once the InferenceService no longer references it, its rollout has finished and no predictor pod references it. Remove spec.dra.deviceClassName: node matching reads only gpu.amd.com slices, so another class could leave a profile Ready with pods Pending.
A profile that only DRA nodes can serve is Ready, so a selector with mode DevicePlugin could resolve to it and report NoNodesForAllocation while another candidate had device-plugin nodes. With an explicit mode, from the service or its runtime config, the resolver now skips Ready profiles without nodes for the mode the service would use on them. When no candidate has any, it keeps them all, so the service still binds and names the mode that has nodes. The runtime config is fetched before the profile is resolved for this.
Quota on the gpu.amd.com DeviceClass is the only way to limit DRA devices: a namespace runtime config and the service itself take precedence over the cluster runtime config's mode. Say so in the changelog, the runtime config page and the security page. DRA services may restart once on a later operator upgrade. The rollback section names the -dra ServingRuntimes and ResourceClaimTemplates that v0.2.7 leaves behind. Restore the #63 changelog wording that an empty toleration list removes the inherited one.
|
Thanks. Everything is addressed in
Lint, the full unit suite and per-commit build/vet/tests pass. I haven't run the KWOK chainsaw tests locally for this push. |
|
I ran e47911b on real GPUs, with #95 merged on top so that Setup. One node with 8 AMD Instinct MI300X in SPX and NPS1 mode, Kubernetes v1.36.6, KServe 0.16.0, the ROCm device plugin, and the AMD GPU DRA driver v1.0.1. The DeviceClass The upgrade is clean. The five services kept their pods, and their InferenceService, ServingRuntime and ConfigMap did not change. The only diff is the new Important: Auto moves a running service onto a GPU that its old pod still holdsWhen the device plugin stops on a node, Auto moves a running service to DRA, as runtime-config.md#L441 says. The code is dra.go#L149-L160. The Deployment starts the DRA pod while the old pod still runs. The old pod keeps the GPU that the device plugin gave it, and neither the DRA driver nor the scheduler knows about that GPU. So the claim of the new pod can get the same GPU. On the test node this happened to all three services that moved:
vLLM in each new pod sees 179 GB of the GPU in use and exits with Only one of the eight GPUs was free at that moment, so a collision was likely, and the allocator did not pick the free one. An earlier service moved to DRA when more GPUs were free, and its claim got a free GPU. Two more cases fail the same way:
Could Auto keep the running mode while a predictor pod of that mode still runs, and move only when none is left? A replacement pod from the old ReplicaSet requests Important: a service with
|
|
This follows up on my first comment. The rest of the tests on the same node are done. They found one new problem with the DeviceClass mapping, and they confirmed both earlier problems in more cases. Most other cases passed; the list is at the end. Important: with the DeviceClass mapping, a node that ran the device plugin gets no device-plugin matchWhen the device plugin stops, the kubelet keeps So in the mapped setup, this PR treats the node as DRA-only:
The cause is in the node matching from #62. After I removed the key again with a node status patch, the profiles showed Could the mapped branch skip the The mixed-model path moves running services onto busy GPUs tooupgrading.md#L333 says that in Auto mode, a service on a mixed-model node moves to DRA once only DRA nodes have its GPUs, for example after an administrator installs the DRA driver there. I had no node with two GPU models. Instead, I set the label Within 3 s, all GPU profiles showed When I removed the label, the profiles showed In every collision, the old pod got its GPU from the device plugin itself. The one old pod that got its GPU through the mapping caused no collision. After I removed the mapping, an Auto service moved to DRA, its new claim got a free GPU, and the rollout finished in 1 min 44 s. The old pod's GPU was in an extended-resource claim, so the allocator did not give it out again. Recovery from the collision needs a manual delete and gives an outageIn my first comment, I said I was still testing whether deleting the old pod lets a stalled rollout finish. It does. The old ReplicaSet makes a replacement pod, which stays Pending because the node has no The service has no Ready pod from the delete until the DRA pod is Ready. For three services that took 5 min 27 s, 6 min 19 s and 6 min 50 s. Most of that time is the 5-minute CrashLoopBackOff wait, and vLLM then took 92 to 164 s to start. One claim got the GPU of another service's pod, so I had to delete that pod as well. The service with that claim had no Ready pod for 10 min 10 s. The other service had So a documented workaround still costs each service an outage. That is a reason for the change I asked about in the first comment, to keep the running mode until no pod of that mode is left.
|
Part 3b of DRA support. DRA allocation is marked experimental. Services that use the device plugin behave as on
main.What changes
acceleratorAllocation.mode(Auto,DRA,DevicePlugin) is added to the shared runtime config, so it can be set in anAIMRuntimeConfig, anAIMClusterRuntimeConfigor on theAIMService.Autois the default. It uses the device plugin when a device-plugin node has the profile's GPUs, and DRA when only DRA nodes have them (DRA-only hardware, or nodes with mixed GPU models).spec.resourcesoverride, the nodes that fit the service's resources decide. WithprofileOverrides, the overlay profile's nodes decide.ComposeState. Fetch reads the profile's ServingRuntime as before, plus its DRA variant for GPU profiles.DRAmode inherited from a runtime config leaves NVIDIA profiles and LLMInferenceService services on the device plugin. Only aDRAmode the service sets itself is refused, withAcceleratorAllocationUnsupported.DRAorDevicePlugin, a selector skips Ready profiles that have no nodes for that mode. If no candidate has any, it keeps them all, so the service still binds and reportsNoNodesForAllocation.acceleratorCountdevices from thegpu.amd.comDeviceClass. There is nospec.dra.deviceClassName: node matching reads onlygpu.amd.comslices.amdGPUModelsByDeviceID, and by partitioning mode. AmatchAttributeongpu.amd.com/deviceIDkeeps a multi-GPU claim to one model.Owns), so it watches them when the cluster servesresource.k8s.io/v1.<runtime>-dra, a variant of the profile's ServingRuntime withoutamd.com/gpuand node affinity. KServe'sMergeContainerWithPatchcan overrideamd.com/gpubut not remove it, andServingRuntimePodSpechas noresourceClaimsbefore v0.21. The variant is projected only when a DRA service needs it.status.projectedRuntimeNameand the model-slug runtime are projected only when a device-plugin node matches.status.matchingNodesandHardwareAvailable.status.acceleratorAllocationis added to the AIMService, with two new reasons:NoNodesForAllocationwhen the chosen mode has no node.AcceleratorAllocationUnsupportedwhen a DRA service setsamd.com/gpuinspec.resources, or when the service itself setsDRAfor a non-AMD profile or for LLMInferenceService serving.resource.k8s.ioResourceClaimTemplates.Upgrade note
DRA allocations are not
requests.amd.com/gpu. WithAutoas the default, new services whose GPUs exist only on DRA nodes bypass namespace quotas and dashboards keyed on that resource. Quota on the DeviceClass (gpu.amd.com.deviceclass.resource.k8s.io/devices) is the only way to limit them: a namespace runtime config or the service can setDRAwhatever the cluster runtime config says. The changelog,runtime-config.mdandsecurity.mdsay so.DRA pods get no toleration from
ExtendedResourceToleration, so AIM Engine adds the sameamd.com/gpu:NoScheduletoleration to them. Other taints needspec.tolerations(#63).The claim and ServingRuntime of DRA services may change in later releases, which restarts their pods once on that upgrade. The rollback section of
upgrading.mdlists what v0.2.7 leaves behind: the-draServingRuntimes and their ConfigMaps, and the ResourceClaimTemplates.Tests
TestDevicePluginServicesAreUnchangedruns the service pipeline for five device-plugin services and compares their InferenceService, ServingRuntime and ConfigMap with a golden file generated on Match profiles against AMD GPU DRA nodes and report them separately #62's branch. Each also runs in a cluster with a DRA node. The cases are profile defaults,spec.resources, tolerations, four GPUs and an NVIDIA profile.DRAon NVIDIA and LLMInferenceService services, and Auto with a running service whose mode lost its nodes or whose profile changed.amd.com/gpu, the claim wired in, and the DRA runtime name.TestDRAClaimSelectorAgreesWithNodeMatcherevaluates the generated CEL withcel-gofor every model and partitioning mode, over the ResourceSlices the driver publishes (hack/fakegpu/testdata), and requires the Go matcher's verdict for every device.tests/e2e/kwok/dra-inference-service: an Auto-mode service on DRA-only hardware getsstatus.acceleratorAllocation: DRA, a claim template, the GPU-less runtime, and a predictor pod on a DRA MI355X node with eight allocated devices.tests/e2e/kwok/profile-node-matchingnow expects DRA nodes inmatchingNodes.