fix(vgpu-device-manager): wait for host-installed vGPU Manager readiness#2599
Conversation
|
/ok-to-test c03bb17 |
|
The failing
The test VM was never created, so the operator was never installed and the vGPU validator this PR touches never ran. The |
|
Update, superseding my earlier note: the re-run got past Holodeck provisioning and stood up the cluster and operator, but What the log shows: the operator Helm-installs cleanly ( The same signature shows up on unrelated changes:
So this looks like an environmental break in the nvidiadriver e2e — the driver DaemonSet is never created — that appeared after main was last green, not a regression from this change. The operator-side logs weren't archived in the run ("No files were found ... ./logs/"), so I can't yet pin the exact upstream cause; glad to dig further if the captured cluster logs are available somewhere. |
|
@lexfrei Can you rebase your PR? I think the e2e test failure may be related to a bug introduced in our |
The vgpu-manager-validation init container waited only for the vgpu-manager-ready status file, which the validator writes when the vGPU Manager is deployed as a container. When the vGPU Manager driver is pre-installed on the host (driver.enabled=false), the validator writes host-vgpu-manager-ready instead, so the init container blocked indefinitely on "waiting for NVIDIA vGPU Manager to be setup" and the vGPU Device Manager never started. Wait for either status file so the operand starts in both the container-managed and host-installed driver modes, resolving the existing TODO in the daemonset asset. Assisted-By: Claude <noreply@anthropic.com> Signed-off-by: Aleksei Sviridkin <f@lex.la>
c03bb17 to
2121660
Compare
|
Rebased onto current main (also rebased #2601, which hit the same nvidiadriver e2e failure). Thanks for the pointer! |
|
/ok to test 2121660 |
|
Thanks @lexfrei, this looks good to me. I'd like to get an approve from @cdesiniotis before merging this. |
cdesiniotis
left a comment
There was a problem hiding this comment.
Thanks for the contribution @lexfrei
Description
The
vgpu-manager-validationinit container of thenvidia-vgpu-device-managerDaemonSet waited only for thevgpu-manager-readystatus file, which the validator writes when the vGPU Manager is deployed as a container. When the vGPU Manager driver is pre-installed on the host (driver.enabled=false), the validator instead writeshost-vgpu-manager-ready(and deletes both files at the start of each run), so the init container blocked indefinitely on "waiting for NVIDIA vGPU Manager to be setup" and the vGPU Device Manager never started.host-vgpu-manager-readyis written by the validator but read nowhere else in the tree, so the host-installed-driver path never had a working readiness gate. There was already aTODOnext to the gate acknowledging this.This makes the init container wait for either status file, so the operand starts in both the container-managed and host-installed driver modes, and resolves that
TODO.Checklist
make lint)make validate-generated-assets)make validate-modules)Testing
Added
TestVGPUDeviceManagerReadinessGate(controllers package) which decodes the daemonset asset and asserts the init container's readiness gate waits for bothvgpu-manager-readyandhost-vgpu-manager-ready, combined with||(OR) so it passes when either file is present. Verified red/green: the test fails on the previous single-file gate and on an accidental&&, and passes with the fix.go test ./controllers/,go vet ./controllers/, andgolangci-lint runon the changed package all pass. This changes only a static asset and a unit test, soapi/,config/,bundle/,deployments/, and the module files are untouched.