mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-07 21:13:44 +02:00
Add more debug output
This commit is contained in:
parent
81b13772b9
commit
810e247a0f
1 changed files with 16 additions and 9 deletions
25
.github/workflows/validate-1m-linux.sh
vendored
25
.github/workflows/validate-1m-linux.sh
vendored
|
@ -119,9 +119,9 @@ time_zt_node2_start=`date +%s`
|
||||||
|
|
||||||
for ((s=0; s<=MAX_WAIT_SECS; s++))
|
for ((s=0; s<=MAX_WAIT_SECS; s++))
|
||||||
do
|
do
|
||||||
echo "Checking for online status: $s"
|
|
||||||
node1_online="$($ZT1 -j info | jq '.online' 2>/dev/null)"
|
node1_online="$($ZT1 -j info | jq '.online' 2>/dev/null)"
|
||||||
node2_online="$($ZT2 -j info | jq '.online' 2>/dev/null)"
|
node2_online="$($ZT2 -j info | jq '.online' 2>/dev/null)"
|
||||||
|
echo "Checking for online status: try #$s, node1:$node1_online, node2:$node2_online"
|
||||||
if [[ "$node1_online" == "true" ]]
|
if [[ "$node1_online" == "true" ]]
|
||||||
then
|
then
|
||||||
time_zt_node1_online=`date +%s`
|
time_zt_node1_online=`date +%s`
|
||||||
|
@ -138,19 +138,26 @@ do
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo -e "\nStatus of each instance:"
|
||||||
|
|
||||||
|
echo -e "\n\nNode 1:"
|
||||||
|
$ZT1 status
|
||||||
|
echo -e "\n\nNode 2:"
|
||||||
|
$ZT2 status
|
||||||
|
|
||||||
|
echo -e "\nps:"
|
||||||
|
|
||||||
|
echo -e "\n\nNode 1:"
|
||||||
|
$NS1 ps aux | grep zerotier-one
|
||||||
|
echo -e "\n\nNode 2:"
|
||||||
|
$NS2 ps aux | grep zerotier-one
|
||||||
|
|
||||||
if [[ "$both_instances_online" != "true" ]]
|
if [[ "$both_instances_online" != "true" ]]
|
||||||
then
|
then
|
||||||
echo "One or more instances of ZeroTier failed to come online. Aborting test." >&2
|
echo "One or more instances of ZeroTier failed to come online. Aborting test."
|
||||||
$ZT1 -j info
|
|
||||||
$ZT2 -j info
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "\nChecking status of each instance:"
|
|
||||||
|
|
||||||
$ZT1 status
|
|
||||||
$ZT2 status
|
|
||||||
|
|
||||||
echo -e "\nJoining networks"
|
echo -e "\nJoining networks"
|
||||||
|
|
||||||
$ZT1 join $TEST_NETWORK
|
$ZT1 join $TEST_NETWORK
|
||||||
|
|
Loading…
Add table
Reference in a new issue