Skip to content

kola/tests/sysext: add tests for the NVIDIA drivers sysext#598

Merged
danzatt merged 2 commits intoflatcar-masterfrom
add-nvidia-sysext-tests
May 16, 2025
Merged

kola/tests/sysext: add tests for the NVIDIA drivers sysext#598
danzatt merged 2 commits intoflatcar-masterfrom
add-nvidia-sysext-tests

Conversation

@danzatt
Copy link
Copy Markdown
Contributor

@danzatt danzatt commented Apr 10, 2025

Add tests for NVIDIA drivers sysext

@danzatt danzatt force-pushed the add-nvidia-sysext-tests branch from 0ccbd6f to dfda189 Compare April 10, 2025 13:01
Comment on lines +33 to +42
storage:
files:
- path: /opt/extensions/flatcar-nvidia-drivers/flatcar-nvidia-drivers-{{ .NvidiaDriversVersion }}.raw
mode: 0644
contents:
source: https://bincache.flatcar-linux.net/images/amd64/9999.9.4+nvidia-drivers-signing/flatcar-nvidia-drivers-{{ .NvidiaDriversVersion }}.raw
links:
- path: /etc/extensions/flatcar-nvidia-drivers-{{ .NvidiaDriversVersion }}.raw
target: /opt/extensions/flatcar-nvidia-drivers/flatcar-nvidia-drivers-{{ .NvidiaDriversVersion }}.raw
hard: false
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

For "official" sysexts, the way to enable them is to write to /etc/flatcar/enabled-sysext.conf.

Could you rework the test to use that method?

Docs: https://www.flatcar.org/docs/latest/provisioning/sysext/#types-of-systemd-sysext-images
Example in the zfs test:

- path: /etc/flatcar/enabled-sysext.conf
contents:
inline: |
zfs
.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed now

@danzatt danzatt force-pushed the add-nvidia-sysext-tests branch from dfda189 to a6d08b2 Compare April 29, 2025 14:47
@danzatt danzatt changed the title [WIP] kola/tests/sysext: add tests for the NVIDIA drivers sysext kola/tests/sysext: add tests for the NVIDIA drivers sysext Apr 29, 2025
@danzatt danzatt force-pushed the add-nvidia-sysext-tests branch 2 times, most recently from 36837ab to ebcc059 Compare May 13, 2025 14:38
Upgrade Kubernetes version from v1.30.8 to v1.32.2. Switch NVIDIA
runtime sysext to newer extensions.flatcar.org link.

Signed-off-by: Daniel Zatovic <daniel.zatovic@gmail.com>
@danzatt danzatt force-pushed the add-nvidia-sysext-tests branch 2 times, most recently from c3a971b to 4a8b85e Compare May 15, 2025 10:04
Copy link
Copy Markdown
Contributor

@tormath1 tormath1 left a comment

Choose a reason for hiding this comment

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

LGTM - I think it should easier to maintain in this format. Thanks!

c.Fatal(err)
}
out := c.MustSSH(m, "/opt/bin/nvidia-smi")
out := c.MustSSH(m, "/usr/bin/nvidia-smi")
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.

I think the path is conditioned on sysextMode as well?

@danzatt danzatt force-pushed the add-nvidia-sysext-tests branch from 4a8b85e to 5d76459 Compare May 16, 2025 09:58
Signed-off-by: Daniel Zatovic <daniel.zatovic@gmail.com>
@danzatt danzatt force-pushed the add-nvidia-sysext-tests branch from 5d76459 to eaf064c Compare May 16, 2025 09:59
danzatt added a commit to flatcar/scripts that referenced this pull request May 16, 2025
Add prebuilt NVIDIA drivers in a sysext

- Add capability to specify per-sysext USE flags and compile different versions of upstream portage nvidia-drivers (including open and non-open variants).
- Allow architecture-specific OS-dependent sysexts
- Pull `nvidia-drivers` from portage and build sysexts from the package

Related PRs:
NVIDIA tests using sysext: [mantle #598](flatcar/mantle#598)
NVIDIA runtime modifications to remove `nvidia-smi` symlink: [sysext-bakery #153](flatcar/sysext-bakery#153)
@danzatt danzatt merged commit 62cd553 into flatcar-master May 16, 2025
2 checks passed
@tormath1 tormath1 deleted the add-nvidia-sysext-tests branch May 19, 2025 07:36
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.

4 participants