Skip to content

Commit

Permalink
harvester-collector: move supportconfig to scc folder instead logs
Browse files Browse the repository at this point in the history
Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
  • Loading branch information
Vicente-Cheng committed Jun 13, 2024
1 parent 5cd34eb commit 416670a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions hack/collector-harvester
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,18 @@ collect_etc ${BUNDLE_DIR}/configs/etc
###############################################################################
# collect logs
###############################################################################
mkdir -p logs
cd logs
mkdir -p scc

# Generate supportconfig from node
chroot $HOST_PATH /sbin/supportconfig -c -m -B supportconfig_$SUPPORT_BUNDLE_NODE_NAME \
-i BOOT,DAEMONS,ETC,ISCSI,MEM,MOD,NTP,SMART,DISK,pharvester_plugin_rke2,pharvester_plugin_console
mv $HOST_PATH/var/log/scc_supportconfig_$SUPPORT_BUNDLE_NODE_NAME.txz .
mv $HOST_PATH/var/log/scc_supportconfig_$SUPPORT_BUNDLE_NODE_NAME.txz ./scc

###############################################################################
# collect logs
###############################################################################
mkdir -p logs
cd logs

chroot $HOST_PATH /usr/bin/journalctl -k > kernel.log
# also collect logs of previous two boots
Expand Down

0 comments on commit 416670a

Please sign in to comment.