diff --git a/tools/collector/debian-scripts/collect_host b/tools/collector/debian-scripts/collect_host index 345c6d59..a06d7b4b 100755 --- a/tools/collector/debian-scripts/collect_host +++ b/tools/collector/debian-scripts/collect_host @@ -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} )