Merge "Add Rook Ceph logs to the collect scripts"

This commit is contained in:
Zuul 2024-07-18 18:22:41 +00:00 committed by Gerrit Code Review
commit 6d71e3f01c

View File

@ -1,7 +1,7 @@
#! /bin/bash
########################################################################
#
# Copyright (c) 2016-2022 Wind River Systems, Inc.
# Copyright (c) 2016-2024 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
@ -443,6 +443,15 @@ for i in /var/lib/nova/instances/*/console.log; do
fi
done
# Add Rook-ceph logs
for i in /var/lib/ceph/data/rook-ceph/log/*; do
if [ -e "$i" ]; then
rook_ceph_log_dir="var/log/rook-ceph"
mkdir -p ${COLLECT_NAME_DIR}/$rook_ceph_log_dir
cp $i ${COLLECT_NAME_DIR}/$rook_ceph_log_dir
fi
done
log_space "before first tar ....:"
(cd ${COLLECT_NAME_DIR} ; ${IONICE_CMD} ${NICE_CMD} ${TAR_CMD} ${COLLECT_NAME_DIR}/${COLLECT_NAME}.tar -T ${VAR_LOG_INCLUDE_LIST} -X ${RUN_EXCLUDE} -X ${ETC_EXCLUDE} -X ${VAR_LOG_EXCLUDE} ${COLLECT_INCLUDE} 2>>${COLLECT_ERROR_LOG} 1>>${COLLECT_ERROR_LOG} )