Skip to content

Do not swallow nvidia-imex-ctl stdout/stderr as part of check - #636

Merged
klueska merged 1 commit into
kubernetes-sigs:mainfrom
jgehrcke:jp/show-imex-ctl-stdouterr
Oct 6, 2025
Merged

klueska merged 1 commit into
kubernetes-sigs:mainfrom
jgehrcke:jp/show-imex-ctl-stdouterr

Conversation

@jgehrcke

@jgehrcke jgehrcke commented Oct 2, 2025 •

Copy link
Copy Markdown
Contributor

Resolves #635.

With this patch, when nvidia-imex-ctl exits non-zero, the wrapper (compute-domain-daemon check) logs the output (stdout & stderr) of the child process.

That applies to startup probe, readiness probe, and liveness probe.

With that, a kubectl describe ... shows for example:

Startup probe failed: E1002 11:14:54.489874      71 main.go:353]    nvidia-imex-ctl failed (exit status 1), stdout/err: [...]

That may be verbose, but allows for faster debug cycles. Without this, users have to for example shell into a container to run nvidia-imex-ctl manually to get to this kind of output.

We may potentially want to backport this; should apply cleanly; cf. code.

Resolves kubernetes-sigs#635.

Now, when nvidia-imex-ctl exits non-zero, the wrapper
(`compute-domain-daemon check`) logs the complete output
(stdout and stderr) of the child process.

That applies to startup probe, readiness probe, and liveness probe.

With that, a `kubectl describe ...` shows  for example:

    Startup probe failed: E1002 11:14:54.489874      71 main.go:353] \
       nvidia-imex-ctl failed (exit status 1), stdout/err: [...]

That may be verbose, but allows for faster debug cycles. Without this,
users have to for example shell into a container to run nvidia-imex-ctl
manually to get to this kind of output.

Signed-off-by: Dr. Jan-Philip Gehrcke <jgehrcke@nvidia.com>
@jgehrcke jgehrcke added this to the v25.8.0 milestone Oct 2, 2025
@jgehrcke jgehrcke self-assigned this Oct 2, 2025
@jgehrcke jgehrcke changed the title Do not swallow nvidia-imex-ctl stdout/stderr as part of check Do not swallow nvidia-imex-ctl stdout/stderr as part of check Oct 2, 2025
@jgehrcke jgehrcke added kind/bug Categorizes issue or PR as related to a bug. debuggability issue/pr related to the ability to debug the system backport-25.3 labels Oct 2, 2025
@klueska
klueska merged commit c10a367 into kubernetes-sigs:main Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-25.3 debuggability issue/pr related to the ability to debug the system kind/bug Categorizes issue or PR as related to a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CD daemon (live/readiness)probes: output swallowed on failure

3 participants