Skip to content

Commit

Permalink
Add netstat output to failure log dump
Browse files Browse the repository at this point in the history
Signed-off-by: Brad Davidson <[email protected]>
  • Loading branch information
brandond committed Mar 9, 2021
1 parent f0b8977 commit e0a5163
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/test-helpers
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ dump-logs() {
docker exec $server kubectl describe node/$hostname >$node/logs/kubectl-describe-node.txt
docker cp $name:/var/lib/rancher/rke2/agent/containerd/containerd.log $node/logs/containerd.log 2>/dev/null
docker logs $name >$node/logs/system.log 2>&1
docker exec $name bash -c 'apt install net-tools -y &>/dev/null && netstat -lntpa' >>$node/logs/netstat.txt
docker exec $name crictl pods >$node/logs/crictl-pods.txt
docker exec $name crictl ps -a >$node/logs/crictl-ps.txt
docker exec $name crictl ps -a -o json >$node/metadata/crictl-ps.json
Expand Down Expand Up @@ -442,6 +443,7 @@ provision-agent() {
--privileged \
-e RKE2_TOKEN=$(cat $TEST_DIR/metadata/secret) \
-e RKE2_URL=$RKE2_URL \
-e RKE2_DEBUG=true \
$RKE2_IMAGE agent $ARGS $AGENT_ARGS ${!AGENT_INSTANCE_ARGS}

echo "Started $name"
Expand Down

0 comments on commit e0a5163

Please sign in to comment.