Skip to content

Commit

Permalink
CI: get repo directories from nodes for troubleshooting
Browse files Browse the repository at this point in the history
Change-Id: I0f7a3dcb021f726693725f070d9a2ff80d84fe0e
(cherry picked from commit f9fee1f)
  • Loading branch information
bbezak committed Mar 9, 2023
1 parent 5a92bd7 commit 5864191
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions roles/kayobe-diagnostics/files/get_logs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ copy_logs() {
cp -r /etc/NetworkManager/system-connections/ ${LOG_DIR}/system_logs/
fi

if [[ -d /etc/yum.repos.d/ ]]; then
cp -r /etc/yum.repos.d/ ${LOG_DIR}/system_logs/
fi

if [[ -d /etc/apt/sources.list.d/ ]]; then
cp -r /etc/apt/sources.list.d/ ${LOG_DIR}/system_logs/
fi

df -h > ${LOG_DIR}/system_logs/df.txt
# Gather disk usage statistics for files and directories larger than 1MB
du -d 5 -hx / | sort -hr | grep '^[0-9\.]*[MGT]' > ${LOG_DIR}/system_logs/du.txt
Expand Down

0 comments on commit 5864191

Please sign in to comment.