Skip to content

Commit

Permalink
Add nvidia-bug-report to eks-logs-collector (#1864)
Browse files Browse the repository at this point in the history
* Add nvidia-bug-report to eks-logs-collector

* Fixing linter error

* Fixing linter again oof

* Addressing comments
  • Loading branch information
suket22 authored Jun 26, 2024
1 parent 3c7bf4b commit bfca904
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions log-collector-script/linux/eks-log-collector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ COMMON_DIRECTORIES=(
kubelet # eks
nodeadm # eks
cni # eks
gpu # eks
)

COMMON_LOGS=(
Expand Down Expand Up @@ -287,6 +288,7 @@ collect() {
get_sandboxImage_info
get_cpu_throttled_processes
get_io_throttled_processes
get_nvidia_bug_report
}

pack() {
Expand Down Expand Up @@ -796,6 +798,16 @@ get_io_throttled_processes() {
ok
}

get_nvidia_bug_report() {
try "Collect Nvidia Bug report"
if ! command -v nvidia-bug-report.sh &> /dev/null; then
echo "No Nvidia drivers found, nothing to do."
else
timeout 75 nvidia-bug-report.sh --output-file "${COLLECT_DIR}"/gpu/nvidia-bug-report.log &> /dev/null
fi
ok
}

# -----------------------------------------------------------------------------
# Entrypoint
parse_options "$@"
Expand Down

0 comments on commit bfca904

Please sign in to comment.