Skip to content

fix(uat): collect nodewright namespace pod logs in debug bundle - #3005

Merged
mchmarny merged 1 commit into
mainfrom
fix/uat-collect-nodewright-logs
Sep 30, 2026
Merged

mchmarny merged 1 commit into
mainfrom
fix/uat-collect-nodewright-logs

Conversation

@ayuskauskas

Copy link
Copy Markdown
Contributor

Summary

Add nodewright to CLUSTER_DEBUG_LOG_NAMESPACES in the UAT debug-bundle collector, so kubectl describe pods and pod logs (current and --previous) are captured from the namespace where the NodeWright package apply Jobs run.

Motivation / Context

UAT run 36745844287 failed its readiness gate because the nvidia-tuned:0.10.0 apply Job hit Init:Error / BackoffLimitExceeded on a GPU node, leaving the runtime-required taint in place. The debug bundle carried the NodeWright CR status, pod list, and events for the nodewright namespace — but no pod logs and no describe pods, so the init-container failure reason is unrecoverable (the cluster is torn down after collection).

Cause: the pod-log allowlist lists skyhook (the pre-move namespace) but not nodewright, the current registry default. The Skyhook-CR capture block in the same script already scans both namespaces for exactly this reason; the Tier-2 log/describe loop was never updated to match.

Fixes: N/A
Related: N/A

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring (no functional changes)
  • Build/CI/tooling

Component(s) Affected

  • CLI (cmd/aicr, pkg/cli)
  • API server (cmd/aicrd, pkg/server)
  • Recipe engine / data (pkg/recipe)
  • Bundlers (pkg/bundler, pkg/component/*)
  • Collectors / snapshotter (pkg/collector, pkg/snapshotter)
  • Validator (pkg/validator)
  • Core libraries (pkg/errors, pkg/k8s)
  • Docs/examples (docs/, examples/)
  • Other: UAT debug-bundle collector (tests/uat/lib/collect-debug.sh)

Implementation Notes

Both nodewright and skyhook are listed (mirroring the CR-capture loop) because Helm cannot relocate a release: a cluster deployed before the namespace move still runs in skyhook, and covering only one namespace leaves the other's tuning failures status-only. Privacy posture is unchanged — the namespace runs only the operator and package apply Jobs (NVIDIA workloads, no token-bearing tenants), consistent with the allowlist's stated criteria; non-allowlisted namespaces still get get/events only.

Testing

bash -n tests/uat/lib/collect-debug.sh   # syntax OK
shellcheck tests/uat/lib/collect-debug.sh # clean

Shell-only change (no Go / YAML touched). Also simulated the exact case " ${CLUSTER_DEBUG_LOG_NAMESPACES} " match from the Tier-2 loop with the new value: nodewright and skyhook both select full log collection; non-allowlisted namespaces (kubeflow, default) still fall through to get/events-only.

Risk Assessment

  • Low — Isolated change, well-tested, easy to revert
  • Medium — Touches multiple components or has broader impact
  • High — Breaking change, affects critical paths, or complex rollout

Rollout notes: N/A — takes effect on the next UAT debug-bundle collection; the env var remains overridable.

Checklist

  • Tests pass locally (make test with -race) — not run: shell-only change, no Go/YAML touched
  • Linter passes (make lint) — not run: shell-only change; bash -n + shellcheck clean
  • I did not skip/disable tests to make CI green
  • I added/updated tests for new functionality
  • I updated docs if user-facing behavior changed
  • Changes follow existing patterns in the codebase
  • Commits are cryptographically signed (git commit -S) — GPG signing info

@ayuskauskas
ayuskauskas requested a review from a team as a code owner September 30, 2026 18:39
@ayuskauskas ayuskauskas added the theme/ci-dx CI pipelines, developer experience, and build tooling label Sep 30, 2026
Signed-off-by: Alex Yuskauskas <ayuskauskas@nvidia.com>
@ayuskauskas
ayuskauskas force-pushed the fix/uat-collect-nodewright-logs branch from d278e21 to 5f4a79a Compare September 30, 2026 18:40
@ayuskauskas

Copy link
Copy Markdown
Contributor Author

Rebased onto origin/main (merge gate requires up-to-date branches) and force-pushed: d278e21 → 5f4a79a. Content unchanged — same single-file +8/−1 diff, verified with range-diff.

@github-actions

github-actions Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Coverage Report ✅

Metric Value
Coverage 85.0%
Threshold 83%
Status Pass
Coverage Badge
![Coverage](https://img.shields.io/badge/coverage-85.0%25-brightgreen)

No Go source files changed in this PR.

@mchmarny
mchmarny enabled auto-merge (squash) September 30, 2026 18:42
@coderabbitai

coderabbitai Bot commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: NVIDIA/aicr/.coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: fb8f1a40-b244-4c3c-97c2-5994929c6fb9

📥 Commits

Reviewing files that changed from the base of the PR and between 71a1d47 and 5f4a79a.

📒 Files selected for processing (1)
  • tests/uat/lib/collect-debug.sh

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 8 remain after this review.


📝 Walkthrough

Walkthrough

The default debug log collection namespace list now includes both nodewright and skyhook. Pod descriptions and current and previous logs are collected from either namespace, alongside the existing allowlisted namespaces.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix · Severity of issue fixed: Low

Suggested reviewers: njhensley

Merge Risk: ⚪ Minimal · up to 5f4a7

The debug bundle will include nodewright diagnostics alongside skyhook. No material merge-blocking risk is indicated by the supplied change.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely identifies the main change: collecting NodeWright namespace pod logs in UAT debug bundles.
Description check ✅ Passed The description directly explains the namespace allowlist change, its motivation, scope, testing, and risk.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Comment @coderabbitai help to get the list of available commands.

@mchmarny
mchmarny merged commit c346ec2 into main Sep 30, 2026
48 checks passed
@mchmarny
mchmarny deleted the fix/uat-collect-nodewright-logs branch September 30, 2026 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/tests size/XS theme/ci-dx CI pipelines, developer experience, and build tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants