Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nvidia-bug-report to eks-logs-collector #1864

Merged
merged 4 commits into from
Jun 26, 2024
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 command nvidia-bug-report.sh --output-file "${COLLECT_DIR}"/gpu/nvidia-bug-report.log &> /dev/null
suket22 marked this conversation as resolved.
Show resolved Hide resolved
fi
ok
}

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