File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
log-collector-script/linux Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -565,6 +565,20 @@ get_nodeadm_info() {
565565
566566 timeout 75 journalctl --unit=nodeadm-run --since " ${DAYS_10} " > " ${COLLECT_DIR} " /nodeadm/nodeadm-run.log
567567
568+ timeout 75 journalctl --unit=nodeadm-boot-hook --since " ${DAYS_10} " > " ${COLLECT_DIR} " /nodeadm/nodeadm-boot-hook.log
569+
570+ # Collect udev-net-manager logs using cached interface names for this instance.
571+ # https://github.com/awslabs/amazon-eks-ami/blob/main/nodeadm/cmd/nodeadm-internal/udev/broker.go#L16
572+ NETWORK_MANAGER_CACHE_DIR=" /etc/eks/nodeadm/udev-net-manager/${INSTANCE_ID} "
573+ if [ -d " $NETWORK_MANAGER_CACHE_DIR " ]; then
574+ for interface_file in " $NETWORK_MANAGER_CACHE_DIR " /* ; do
575+ if [ -f " $interface_file " ]; then
576+ interface=$( basename " $interface_file " )
577+ timeout 75 journalctl --unit=udev-net-manager@${interface} --since " ${DAYS_10} " > " ${COLLECT_DIR} " /nodeadm/udev-net-manager_${interface} .log
578+ fi
579+ done
580+ fi
581+
568582 ;;
569583 * )
570584 warning " The current operating system is not supported."
You can’t perform that action at this time.
0 commit comments