From 6c4f7d81c6474cc918c842e20a0af306f7dc80d0 Mon Sep 17 00:00:00 2001 From: Sreejith Gopinathan <132908825+jithlab@users.noreply.github.com> Date: Thu, 26 Oct 2023 22:14:19 +0530 Subject: [PATCH] Update to collect more filesystem info (#108) --- generate_postmortem.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/generate_postmortem.sh b/generate_postmortem.sh index 32841e0..e8b3257 100755 --- a/generate_postmortem.sh +++ b/generate_postmortem.sh @@ -318,6 +318,10 @@ if [[ $IS_OVA -eq 1 ]]; then DOCKERLOGSFOLDER="${DOCKERFOLDER}/logs" mkdir -p $DOCKERLOGSFOLDER mkdir -p $CONTAINERD + OVA_LIBFOLDER="${OVA_FILESYSTEM}/var/lib" + OVA_USRLOCALLIBFOLDER="${OVA_FILESYSTEM}/usr/local/lib" + mkdir -p $OVA_LIBFOLDER + mkdir -p $OVA_USRLOCALLIBFOLDER #grab version @@ -413,6 +417,18 @@ if [[ $IS_OVA -eq 1 ]]; then #Get Docker and Crictl Version docker version &> "${DOCKERFOLDER}/docker-version.out" + #Getting subsystem meta file content + cat /var/lib/apiconnect-subsystem/meta.yml 1>"${OVA_LIBFOLDER}/subsystem-meta.out" 2>/dev/null + + #Getting side-registry recursive file listing + find /var/lib/apiconnect/side-registry/ 1>"${OVA_LIBFOLDER}/side-registry.out" 2>/dev/null + + #Getting appliance-control-plane recursive file listing + find /usr/local/lib/appliance-control-plane/ 1>"${OVA_USRLOCALLIBFOLDER}/appliance-control-plane.out" 2>/dev/null + + #Getting appliance-side-registry recursive file listing + find /usr/local/lib/appliance-side-registry/ 1>"${OVA_USRLOCALLIBFOLDER}/appliance-side-registry.out" 2>/dev/null + fi #=================================================================================================================