From 3e3b41cce0c5c17fc81d68fe38759ed90173aea1 Mon Sep 17 00:00:00 2001 From: Bartosz Bezak Date: Tue, 1 Aug 2023 11:50:24 +0200 Subject: [PATCH] CI: fetch systemd configuration including kolla-generated unit files Change-Id: I4ea22dbe43cd4780335df5cf0eee5c4339855fac (cherry picked from commit 09507a38248ccdbd34d978aca2fa4936cec55fc3) --- roles/kayobe-diagnostics/files/get_logs.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/kayobe-diagnostics/files/get_logs.sh b/roles/kayobe-diagnostics/files/get_logs.sh index be50104de..639969575 100644 --- a/roles/kayobe-diagnostics/files/get_logs.sh +++ b/roles/kayobe-diagnostics/files/get_logs.sh @@ -65,6 +65,10 @@ copy_logs() { cp -r /etc/apt/sources.list.d/ ${LOG_DIR}/system_logs/ fi + if [[ -d /etc/systemd/ ]]; then + cp -rL /etc/systemd/ ${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