Private IP networks now work, and are the default

This commit is contained in:
Michael Vines
2018-09-04 22:21:58 -07:00
parent db9219ccc8
commit e677cda027
6 changed files with 78 additions and 61 deletions

View File

@ -25,7 +25,6 @@ Operate a configured testnet
start-specific options:
-S snapFilename - Deploy the specified Snap file
-s edge|beta|stable - Deploy the latest Snap on the specified Snap release channel
-a "setup args" - Optional additional arguments for ./multinode-demo/setup.sh
Note: if RUST_LOG is set in the environment it will be propogated into the
network nodes.
@ -43,7 +42,6 @@ EOF
snapChannel=
snapFilename=
nodeSetupArgs=
deployMethod=local
sanityExtraArgs=
@ -51,7 +49,7 @@ command=$1
[[ -n $command ]] || usage
shift
while getopts "h?S:s:a:o:" opt; do
while getopts "h?S:s:o:" opt; do
case $opt in
h | \?)
usage
@ -72,9 +70,6 @@ while getopts "h?S:s:a:o:" opt; do
;;
esac
;;
a)
nodeSetupArgs="$OPTARG"
;;
o)
case $OPTARG in
noLedgerVerify|noValidatorSanity)
@ -144,7 +139,7 @@ startLeader() {
esac
ssh "${sshOptions[@]}" -n "$ipAddress" \
"./solana/net/remote/remote-node.sh $deployMethod leader $leaderIp $expectedNodeCount \"$nodeSetupArgs\" \"$RUST_LOG\""
"./solana/net/remote/remote-node.sh $deployMethod leader $publicNetwork $entrypointIp $expectedNodeCount \"$RUST_LOG\""
) >> "$logFile" 2>&1 || {
cat "$logFile"
echo "^^^ +++"
@ -161,7 +156,7 @@ startValidator() {
set -x
common_start_setup "$ipAddress"
ssh "${sshOptions[@]}" -n "$ipAddress" \
"./solana/net/remote/remote-node.sh $deployMethod validator $leaderIp $expectedNodeCount \"$nodeSetupArgs\" \"$RUST_LOG\""
"./solana/net/remote/remote-node.sh $deployMethod validator $publicNetwork $entrypointIp $expectedNodeCount \"$RUST_LOG\""
) >> "$netLogDir/validator-$ipAddress.log" 2>&1 &
declare pid=$!
ln -sfT "validator-$ipAddress.log" "$netLogDir/validator-$pid.log"
@ -177,7 +172,7 @@ startClient() {
set -x
common_start_setup "$ipAddress"
ssh "${sshOptions[@]}" -f "$ipAddress" \
"./solana/net/remote/remote-client.sh $deployMethod $leaderIp $expectedNodeCount \"$RUST_LOG\""
"./solana/net/remote/remote-client.sh $deployMethod $entrypointIp $expectedNodeCount \"$RUST_LOG\""
) >> "$logFile" 2>&1 || {
cat "$logFile"
echo "^^^ +++"