Skip to content

Commit

Permalink
harvester-collector: reduce supportconfig features
Browse files Browse the repository at this point in the history
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 <kiefer.chang@suse.com>
  • Loading branch information
bk201 authored and Vicente-Cheng committed Mar 12, 2024
1 parent f7a9866 commit f73f72d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hack/collector-harvester
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
collect_images_info

0 comments on commit f73f72d

Please sign in to comment.