Add Rook Ceph logs to the collect scripts
Add a check for the Rook Ceph logs located in /var/lib/ceph/data/rook-ceph/log and places them in the tarball for each host at <host>/var/log/rook-ceph Test Plan: - PASS: Check tarball generated for Rook Ceph logs on a single node with Rook Ceph installed - PASS: Check tarball generated for Rook Ceph logs on a DX with Rook Ceph for all nodes - PASS: Check tarbal generated for the absense of Rook Ceph logs and diretory on a DX without Rook Ceph for all nodes Story: 2011066 Task: 50488 Change-Id: Ied4a9712d331b8b29fbbb0ca216754f9cd9af88c Signed-off-by: Caio Correa <caio.correa@windriver.com>
This commit is contained in:
parent
3f9e736ee8
commit
0485bfae1e
@ -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
|
||||
#
|
||||
@ -440,6 +440,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} )
|
||||
|
Loading…
x
Reference in New Issue
Block a user