You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(nvidia-tuned): version-aware profile directory on tuned 1.3.1 base (#87)
## Summary
Part 2 of the version-aware tuned profile directory change. The
`nvidia-tuned` package now deploys and verifies all NVIDIA tuned
profiles in the single directory the installed tuned version reads from:
- tuned >= 2.23.0: `/etc/tuned/profiles`
- older tuned: `/etc/tuned`
Everything (common base, OS, and service profiles) goes to that one
directory; nothing is written to `/usr/lib/tuned`. This fixes profiles
being invisible to tuned on distros shipping tuned >= 2.23.0.
> Stacked on #86 (the `tuned` package change that adds the shared
`resolve_tuned_profiles_dir` helper). This PR's base is the #86 branch
so the diff shows only the Part 2 commits. After #86 merges, I will
retarget the base to `main` (rebasing if #86 is squash-merged).
## Changes
- `skyhook_dir/prepare_nvidia_profiles.sh`: sources the inherited
`utils.sh`, resolves `TUNED_PROFILES_DIR`, and deploys common + OS +
service profiles to that single dir (drops the old `/usr/lib/tuned`
system dir).
- `skyhook_dir/prepare_nvidia_profiles_check.sh`: sources `utils.sh` and
verifies under the resolved dir.
- `tests/integration/nvidia_tuned/test_prepare_nvidia_profiles.py`:
derives the expected dir from the container's tuned version and injects
the parent `utils.sh` into test containers.
- `Dockerfile`: `ARG TUNED_VERSION` 1.2.0 -> 1.3.0 (the Part 1 release).
- `config.json`: `package_version` 0.3.0 -> 0.3.1.
- `RELEASE_NOTES.md`, `README.md`: document the version-aware directory.
## Sequencing
- Depends on #86: this needs
`ghcr.io/nvidia/skyhook-packages/tuned:1.3.0` published, so `make
validate-inherited` and the CI dev build will not pass until #86 is
merged, tagged `tuned/1.3.0`, and its image is published.
- After merge, tag `nvidia-tuned/0.3.1`.
## Testing
The Docker-based integration suite and `make validate-inherited` were
not run locally (they require the published `tuned:1.3.0` base image).
In-session gates pass: `shellcheck` (no new findings beyond pre-existing
style items), `python -m py_compile` on the test file, and `make
license-check`.
Signed-off-by: Alex Yuskauskas <ayuskauskas@nvidia.com>
Copy file name to clipboardExpand all lines: nvidia-tuned/README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ A NodeWright package that extends the base `tuned` package with NVIDIA-specific
6
6
7
7
This package inherits from the base `tuned` package and adds pre-configured tuned profiles optimized for NVIDIA hardware. The profiles are organized by:
8
8
9
-
-**Common base profiles**: Foundational settings deployed to `/usr/lib/tuned/`
9
+
-**Common base profiles**: Foundational settings deployed to the tuned profiles dir (`/etc/tuned/profiles` on tuned >= 2.23, else `/etc/tuned`)
10
10
-**OS-specific workload profiles**: Profiles that may vary by OS version
0 commit comments