Repository navigation
fix(uat): collect nodewright namespace pod logs in debug bundle - #3005
Conversation
Signed-off-by: Alex Yuskauskas <ayuskauskas@nvidia.com>
d278e21 to
5f4a79a
Compare
Coverage Report β
Coverage BadgeNo Go source files changed in this PR. |
|
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 configurationConfiguration used: Repository: NVIDIA/aicr/.coderabbit.yaml Review profile: ASSERTIVE Plan: Enterprise Run ID: π Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 8 remain after this review. π WalkthroughWalkthroughThe default debug log collection namespace list now includes both Priority: β¬οΈ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix Β· Severity of issue fixed: Low Suggested reviewers: Merge Risk: βͺ Minimal Β· up to 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)
β¨ Finishing Touchesπ Generate docstrings
π§ͺ Generate unit tests (beta)
Comment |
Summary
Add
nodewrighttoCLUSTER_DEBUG_LOG_NAMESPACESin the UAT debug-bundle collector, sokubectl describe podsand 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.0apply Job hitInit:Error/BackoffLimitExceededon a GPU node, leaving theruntime-requiredtaint in place. The debug bundle carried the NodeWright CR status, pod list, and events for thenodewrightnamespace β but no pod logs and nodescribe 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 notnodewright, 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
Component(s) Affected
cmd/aicr,pkg/cli)cmd/aicrd,pkg/server)pkg/recipe)pkg/bundler,pkg/component/*)pkg/collector,pkg/snapshotter)pkg/validator)pkg/errors,pkg/k8s)docs/,examples/)tests/uat/lib/collect-debug.sh)Implementation Notes
Both
nodewrightandskyhookare listed (mirroring the CR-capture loop) because Helm cannot relocate a release: a cluster deployed before the namespace move still runs inskyhook, 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
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:nodewrightandskyhookboth select full log collection; non-allowlisted namespaces (kubeflow,default) still fall through to get/events-only.Risk Assessment
Rollout notes: N/A β takes effect on the next UAT debug-bundle collection; the env var remains overridable.
Checklist
make testwith-race) β not run: shell-only change, no Go/YAML touchedmake lint) β not run: shell-only change;bash -n+ shellcheck cleangit commit -S) β GPG signing info