Commit 2bf9460
fix(gpu): e2e-validated hardening for CUDA prebake
Incorporates fixes surfaced by multi-SKU AgentBaker e2e validation of the
prebake feature, and integrates with main's logs_to_events-wrapped GPU install:
- cse_config.sh: only request install-skip-build when the prebake marker's
driver_kind matches THIS node's NVIDIA_GPU_DRIVER_TYPE. A CUDA-prebaked marker
on a shared VHD must NOT short-circuit a GRID node's install: the GRID image
may not support install-skip-build and would fail to stage its userspace files
(observed as CSE exit 84 in e2e). Pass the action through the timed
installGPUDriverImage wrapper added on main.
- cse_install_ubuntu.sh (cleanUpPrebakedGPUDriver): drop the slow per-version
'dkms remove --all' (~35s on the non-GPU provisioning critical path) in favor
of removing the DKMS source tree + built module; also remove the driver
userspace BINARIES (nvidia-smi etc.) so a non-GPU node is genuinely
driver-free instead of leaving nvidia-smi on PATH erroring on missing libs.
- install-dependencies.sh: install gcc/make/libc6-dev before the build-only
bake -- the standard non-GPU VHD builder ships gcc/make but not libc6-dev, so
nvidia-installer cannot compile the module without it. The boot-time fallback
recompile already gets these via installDeps, so it stays intact.
- specs: cover the driver_kind guard (match -> skip-build, mismatch -> full
install) and the faster binaries+marker teardown.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 5283813 commit 2bf9460
5 files changed
Lines changed: 57 additions & 42 deletions
File tree
- parts/linux/cloud-init/artifacts
- ubuntu
- spec/parts/linux/cloud-init/artifacts
- vhdbuilder/packer
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1221 | 1221 | | |
1222 | 1222 | | |
1223 | 1223 | | |
1224 | | - | |
1225 | | - | |
1226 | | - | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
1227 | 1230 | | |
1228 | | - | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
1229 | 1234 | | |
1230 | 1235 | | |
1231 | 1236 | | |
| |||
Lines changed: 14 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
251 | 248 | | |
| 249 | + | |
252 | 250 | | |
253 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
254 | 260 | | |
255 | 261 | | |
256 | 262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1890 | 1890 | | |
1891 | 1891 | | |
1892 | 1892 | | |
1893 | | - | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
1894 | 1898 | | |
1895 | 1899 | | |
1896 | 1900 | | |
1897 | 1901 | | |
1898 | 1902 | | |
1899 | 1903 | | |
1900 | 1904 | | |
| 1905 | + | |
1901 | 1906 | | |
1902 | 1907 | | |
1903 | 1908 | | |
1904 | 1909 | | |
1905 | 1910 | | |
1906 | 1911 | | |
1907 | | - | |
| 1912 | + | |
1908 | 1913 | | |
1909 | 1914 | | |
1910 | 1915 | | |
1911 | 1916 | | |
1912 | 1917 | | |
1913 | 1918 | | |
1914 | 1919 | | |
1915 | | - | |
| 1920 | + | |
1916 | 1921 | | |
| 1922 | + | |
1917 | 1923 | | |
1918 | 1924 | | |
1919 | 1925 | | |
1920 | 1926 | | |
1921 | 1927 | | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
1922 | 1940 | | |
1923 | 1941 | | |
1924 | 1942 | | |
| |||
Lines changed: 8 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 17 | | |
26 | 18 | | |
27 | 19 | | |
28 | 20 | | |
29 | 21 | | |
30 | | - | |
| 22 | + | |
31 | 23 | | |
| 24 | + | |
| 25 | + | |
32 | 26 | | |
| 27 | + | |
| 28 | + | |
33 | 29 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 30 | + | |
| 31 | + | |
51 | 32 | | |
52 | 33 | | |
53 | 34 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
749 | 749 | | |
750 | 750 | | |
751 | 751 | | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
752 | 757 | | |
753 | 758 | | |
754 | 759 | | |
| |||
0 commit comments