Skip to content

fix(gpu): tear down cuda-lts VHD prebake on GRID nodes before managed…#8925

Closed
awesomenix wants to merge 3 commits into
official/v20260713from
nishp/test/cherry-pick
Closed

fix(gpu): tear down cuda-lts VHD prebake on GRID nodes before managed…#8925
awesomenix wants to merge 3 commits into
official/v20260713from
nishp/test/cherry-pick

Conversation

@awesomenix

Copy link
Copy Markdown
Contributor

… install (#8919)
testing cherry-pick

DO NOT MERGE

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses a GPU provisioning failure on Ubuntu GRID / converged A10 (NVv5) nodes booting from CUDA-prebaked shared VHDs by tearing down a mismatched CUDA prebake before a GRID driver install path runs, preventing NVML “driver/library version mismatch”.

Changes:

  • Added cleanUpGridNodeCudaPrebake in cse_config.sh and invoked it early in ensureGPUDrivers (Ubuntu-only) to remove CUDA prebake when the node’s driver type maps to GRID.
  • Added ShellSpec coverage for cleanUpGridNodeCudaPrebake decision logic in cse_config_spec.sh.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
parts/linux/cloud-init/artifacts/cse_config.sh Adds GRID-vs-CUDA prebake teardown logic and calls it before GPU driver dispatch.
spec/parts/linux/cloud-init/artifacts/cse_config_spec.sh Adds ShellSpec tests validating teardown vs no-op behavior across marker/node-kind combinations.

# GRID and a prebake marker exists. Reuses cleanUpPrebakedGPUDriver (from cse_install_ubuntu.sh) for
# the actual removal. NAP/agentpool cuda nodes are intentionally untouched here.
cleanUpGridNodeCudaPrebake() {
[ "$OS" = "$UBUNTU_OS_NAME" ] || return 0
Comment on lines +1362 to +1364
if [ "$OS" = "$UBUNTU_OS_NAME" ]; then
logs_to_events "AKS.CSE.ensureGPUDrivers.cleanUpGridNodeCudaPrebake" cleanUpGridNodeCudaPrebake || exit $ERR_GPU_DRIVERS_START_FAIL
fi
Copilot AI review requested due to automatic review settings July 13, 2026 22:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@awesomenix

Copy link
Copy Markdown
Contributor Author

hotfixing works

@awesomenix awesomenix closed this Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants