Allow testnet creation with no validator nodes (#3846)
This commit is contained in:
parent
a2c8e3952f
commit
d0fb55d9b1
|
@ -322,6 +322,7 @@ EOF
|
||||||
cloud_ForEachInstance waitForStartupComplete
|
cloud_ForEachInstance waitForStartupComplete
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $additionalFullNodeCount -gt 0 ]]; then
|
||||||
echo "Looking for additional fullnode instances..."
|
echo "Looking for additional fullnode instances..."
|
||||||
for zone in "${zones[@]}"; do
|
for zone in "${zones[@]}"; do
|
||||||
cloud_FindInstances "$prefix-$zone-fullnode"
|
cloud_FindInstances "$prefix-$zone-fullnode"
|
||||||
|
@ -332,6 +333,7 @@ EOF
|
||||||
cloud_ForEachInstance recordInstanceIp fullnodeIpList
|
cloud_ForEachInstance recordInstanceIp fullnodeIpList
|
||||||
cloud_ForEachInstance waitForStartupComplete
|
cloud_ForEachInstance waitForStartupComplete
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
if $externalNodes; then
|
if $externalNodes; then
|
||||||
echo "Let's not reset the current client configuration"
|
echo "Let's not reset the current client configuration"
|
||||||
|
@ -510,6 +512,7 @@ EOF
|
||||||
"$startupScript" "$bootstrapLeaderAddress" "$bootDiskType"
|
"$startupScript" "$bootstrapLeaderAddress" "$bootDiskType"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $additionalFullNodeCount -gt 0 ]]; then
|
||||||
num_zones=${#zones[@]}
|
num_zones=${#zones[@]}
|
||||||
numNodesPerZone=$((additionalFullNodeCount / num_zones))
|
numNodesPerZone=$((additionalFullNodeCount / num_zones))
|
||||||
numLeftOverNodes=$((additionalFullNodeCount % num_zones))
|
numLeftOverNodes=$((additionalFullNodeCount % num_zones))
|
||||||
|
@ -524,6 +527,7 @@ EOF
|
||||||
done
|
done
|
||||||
|
|
||||||
wait
|
wait
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $clientNodeCount -gt 0 ]]; then
|
if [[ $clientNodeCount -gt 0 ]]; then
|
||||||
cloud_CreateInstances "$prefix" "$prefix-client" "$clientNodeCount" \
|
cloud_CreateInstances "$prefix" "$prefix-client" "$clientNodeCount" \
|
||||||
|
|
Loading…
Reference in New Issue