From f73f72d439015fde2fcee805e9986efd79529eb8 Mon Sep 17 00:00:00 2001 From: Kiefer Chang Date: Fri, 8 Mar 2024 16:36:20 +0800 Subject: [PATCH] harvester-collector: reduce supportconfig features By default supportconfig collects too many system infos and this might exceed the support bundle manager timeout. Reduce the features to minimum features and some selected ones. Signed-off-by: Kiefer Chang --- hack/collector-harvester | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hack/collector-harvester b/hack/collector-harvester index 2bc04e21e..aef5140d1 100755 --- a/hack/collector-harvester +++ b/hack/collector-harvester @@ -90,7 +90,8 @@ mkdir -p logs cd logs # Generate supportconfig from node -chroot $HOST_PATH /sbin/supportconfig -c -Q -B supportconfig_$SUPPORT_BUNDLE_NODE_NAME +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 . chroot $HOST_PATH /usr/bin/journalctl -k > kernel.log @@ -111,4 +112,4 @@ cp ${HOST_PATH}/var/lib/rancher/rke2/agent/logs/kubelet.log . cp ${HOST_PATH}/var/lib/rancher/rke2/agent/containerd/containerd.log . cp ${HOST_PATH}/var/log/console.log . -collect_images_info \ No newline at end of file +collect_images_info