ci: 收集 kind CRI 容器日志
This commit is contained in:
@@ -69,6 +69,16 @@ jobs:
|
|||||||
systemctl --no-pager --failed
|
systemctl --no-pager --failed
|
||||||
systemctl --no-pager status \
|
systemctl --no-pager status \
|
||||||
multi-user.target containerd.service kubelet.service
|
multi-user.target containerd.service kubelet.service
|
||||||
|
echo "### CRI containers"
|
||||||
|
endpoint=unix:///run/containerd/containerd.sock
|
||||||
|
crictl --runtime-endpoint "$endpoint" ps --all
|
||||||
|
for id in $(
|
||||||
|
crictl --runtime-endpoint "$endpoint" ps --all --quiet
|
||||||
|
); do
|
||||||
|
echo "### CRI container $id"
|
||||||
|
crictl --runtime-endpoint "$endpoint" inspect "$id"
|
||||||
|
crictl --runtime-endpoint "$endpoint" logs "$id"
|
||||||
|
done
|
||||||
journalctl --no-pager -b -n 500
|
journalctl --no-pager -b -n 500
|
||||||
' 2>&1 || true
|
' 2>&1 || true
|
||||||
echo '::endgroup::'
|
echo '::endgroup::'
|
||||||
|
|||||||
Reference in New Issue
Block a user