Add --no-deploy option to allow restarting nodes without a software update (#5182) (#5239)

automerge
This commit is contained in:
mergify[bot]
2019-07-22 22:20:39 -07:00
committed by Grimes
parent 8c23508cd5
commit cf7c5cdb03
4 changed files with 75 additions and 52 deletions

View File

@@ -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 @@ start() {
local)
build
;;
skip)
;;
*)
usage "Internal error: invalid deployMethod: $deployMethod"
;;
@@ -692,6 +704,8 @@ start() {
local)
networkVersion="$(git rev-parse HEAD || echo local-unknown)"
;;
skip)
;;
*)
usage "Internal error: invalid deployMethod: $deployMethod"
;;