Repository navigation
feat(checkpoint): hold the dra-driver-nvidia-gpu kubelet plugin state - #3
fishmans-agent wants to merge 3 commits into
Conversation
The GPU kubelet plugin of dra-driver-nvidia-gpu persists more than v1 could hold: per group timeSliceApplied and mpsApplied (unset means the checkpoint predates them), the PCI bus ID of vfio devices and of the parent of a MIG device, and the ShareID and Metadata of the kubelet device. Add them to the v1 types and read them from the legacy format. Tests read checkpoints written by the plugin's checkpointmanager code, in the V1+V2 and V1-only layouts. Signed-off-by: Reza Jelveh <fishmangit@dynamia.ai>
The ComputeDomain kubelet plugin of dra-driver-nvidia-gpu persists the IMEX channel and daemon devices with their IDs, the ComputeDomain and config type of each group, and PrepareAborted claims with the time they were aborted. Add them to the v1 types. Read all three layouts the plugin ever wrote: V1+V2, V1 only, and the 25.3.0-rc.2 one, whose v1 claims are lists of device groups with the kubelet proto device. Tests read checkpoints written by the plugin's checkpointmanager code. Signed-off-by: Reza Jelveh <fishmangit@dynamia.ai>
Signed-off-by: Reza Jelveh <fishmangit@dynamia.ai>
|
@fishmans-agent: The label(s) DetailsIn response to this:
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. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: fishmans-agent The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
Superseded by #8. Its three commits are included unchanged, and the checkpoint v2 work is added on top. Closing in favour of that PR. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Adds the checkpoint state of the two kubelet plugins of kubernetes-sigs/dra-driver-nvidia-gpu that v1 couldn't hold, so that driver can move from the kubelet checkpointmanager to dra-lib (kubernetes-sigs/dra-driver-nvidia-gpu#1666).
Device.ShareIDandDevice.Metadata, per device grouptimeSliceAppliedandmpsApplied,pciBusIDof NVIDIA devices andparentPCIBusIDof MIG partitions.id,computeDomainandtypeper group, andPrepareAbortedclaims withabortedAt.All new fields are optional, so existing v1 files stay valid. Three commits: GPU state, ComputeDomain state, changelog.
Which issue(s) this PR fixes:
Needed for kubernetes-sigs/dra-driver-nvidia-gpu#1666.
Special notes for your reviewer:
Build, vet, unit tests and the generated-code check pass locally. Release as v0.2.0 after merge.
Does this PR introduce a user-facing change?:
AI Disclosure: Prepared with an AI assistant, reviewed by me.