Repository navigation
Conversation
👷 Deploy request for dra-driver-nvidia-gpu pending review.Visit the deploys page to approve it
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: thc1006 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 |
|
No actionable comments were generated in the recent review. Walkthrough
Severity of issue fixed: Low Merge Risk:
|
1c18061 to
58f8c58
Compare
58f8c58 to
6cfa927
Compare
applyComputeDomainDaemonConfig created the daemon's config directory and template before it looked up the ComputeDomain and, on nodes with a clique ID, parsed the fabric-imex-mgmt capability. When either step failed, the directory stayed behind. For a ComputeDomain the informer did not know, it stayed until the periodic cleanup removed it. Do both steps first and write the files last, so these failures leave no directory. The files are still written on nodes without a clique ID. Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com>
6cfa927 to
537ea9a
Compare
What type of PR is this?
/kind bug
What this PR does / why we need it:
applyComputeDomainDaemonConfigwrote the daemon's config directory and template before it looked up the ComputeDomain and, on nodes with a clique ID, parsed the fabric-imex-mgmt capability. A claim for a ComputeDomain the informer did not know left the directory behind on every attempt, and only the periodic cleanup removed it.The files are now written after both steps succeed.
Which issue(s) this PR is related to:
Fixes #1348
Special notes for your reviewer:
On main the first new test fails. With the daemon template at its fixed path it fails with
directory ".../cd-uid" exists. Without it, as in CI, main returns the template error instead of the expected one. The second makesPreparefail on purpose, on nodes with and without a clique ID, so it fails ifPrepareis skipped on either or its error is dropped. Both read the nvcap and /proc/devices from temp files, not from the host.make testandmake golangci-lintpass. I have not run this on MNNVL hardware.This PR was written with the assistance of generative AI.
Does this PR introduce a user-facing change?
Additional documentation (design docs, usage docs, etc.):
Checklist
make check testpasses locallymake check-generatepasses ifapi/changed (CRDs, deepcopy, informers, listers, clientset)make check-modulespasses ifgo.mod/go.sumchangeddeployments/helm) updated if flags, RBAC, or defaults changed