Add --no-deploy option to allow restarting nodes without a software update (#5182)
This commit is contained in:
14
net/net.sh
14
net/net.sh
@ -72,6 +72,11 @@ Operate a configured testnet
|
||||
- If set, validators will skip verifying
|
||||
the ledger they already have saved to disk at
|
||||
boot (results in a much faster boot)
|
||||
--no-deploy
|
||||
- Don't deploy new software, use the
|
||||
existing deployment
|
||||
|
||||
|
||||
sanity/start/update-specific options:
|
||||
-F - Discard validator nodes that didn't bootup successfully
|
||||
-o noLedgerVerify - Skip ledger verification
|
||||
@ -137,6 +142,9 @@ while [[ -n $1 ]]; do
|
||||
elif [[ $1 = --no-snapshot ]]; then
|
||||
maybeNoSnapshot="$1"
|
||||
shift 1
|
||||
elif [[ $1 = --no-deploy ]]; then
|
||||
deployMethod=skip
|
||||
shift 1
|
||||
elif [[ $1 = --skip-ledger-verify ]]; then
|
||||
maybeSkipLedgerVerify="$1"
|
||||
shift 1
|
||||
@ -365,6 +373,8 @@ startBootstrapLeader() {
|
||||
local)
|
||||
rsync -vPrc -e "ssh ${sshOptions[*]}" "$SOLANA_ROOT"/farf/bin/* "$ipAddress:~/.cargo/bin/"
|
||||
;;
|
||||
skip)
|
||||
;;
|
||||
*)
|
||||
usage "Internal error: invalid deployMethod: $deployMethod"
|
||||
;;
|
||||
@ -597,6 +607,8 @@ prepare_deploy() {
|
||||
local)
|
||||
build
|
||||
;;
|
||||
skip)
|
||||
;;
|
||||
*)
|
||||
usage "Internal error: invalid deployMethod: $deployMethod"
|
||||
;;
|
||||
@ -694,6 +706,8 @@ deploy() {
|
||||
local)
|
||||
networkVersion="$(git rev-parse HEAD || echo local-unknown)"
|
||||
;;
|
||||
skip)
|
||||
;;
|
||||
*)
|
||||
usage "Internal error: invalid deployMethod: $deployMethod"
|
||||
;;
|
||||
|
Reference in New Issue
Block a user