Avoid -d arg conflict
-D is now "delete" -d is now "disk type"
This commit is contained in:
@ -13,6 +13,7 @@ snapChannel=edge
|
|||||||
tarChannelOrTag=edge
|
tarChannelOrTag=edge
|
||||||
delete=false
|
delete=false
|
||||||
enableGpu=false
|
enableGpu=false
|
||||||
|
bootDiskType=""
|
||||||
leaderRotation=true
|
leaderRotation=true
|
||||||
useTarReleaseChannel=false
|
useTarReleaseChannel=false
|
||||||
|
|
||||||
@ -45,7 +46,8 @@ Deploys a CD testnet
|
|||||||
-g - Enable GPU (default: $enableGpu)
|
-g - Enable GPU (default: $enableGpu)
|
||||||
-b - Disable leader rotation
|
-b - Disable leader rotation
|
||||||
-a [address] - Set the bootstrap fullnode's external IP address to this GCE address
|
-a [address] - Set the bootstrap fullnode's external IP address to this GCE address
|
||||||
-d - Delete the network
|
-d [disk-type] - Specify a boot disk type (default None) Use pd-ssd to get ssd on GCE.
|
||||||
|
-D - Delete the network
|
||||||
|
|
||||||
Note: the SOLANA_METRICS_CONFIG environment variable is used to configure
|
Note: the SOLANA_METRICS_CONFIG environment variable is used to configure
|
||||||
metrics
|
metrics
|
||||||
@ -61,7 +63,7 @@ zone=$3
|
|||||||
[[ -n $zone ]] || usage "Zone not specified"
|
[[ -n $zone ]] || usage "Zone not specified"
|
||||||
shift 3
|
shift 3
|
||||||
|
|
||||||
while getopts "h?p:Pn:c:s:t:gG:a:db" opt; do
|
while getopts "h?p:Pn:c:s:t:gG:a:Dbd:" opt; do
|
||||||
case $opt in
|
case $opt in
|
||||||
h | \?)
|
h | \?)
|
||||||
usage
|
usage
|
||||||
@ -110,6 +112,9 @@ while getopts "h?p:Pn:c:s:t:gG:a:db" opt; do
|
|||||||
bootstrapFullNodeAddress=$OPTARG
|
bootstrapFullNodeAddress=$OPTARG
|
||||||
;;
|
;;
|
||||||
d)
|
d)
|
||||||
|
bootDiskType=$OPTARG
|
||||||
|
;;
|
||||||
|
D)
|
||||||
delete=true
|
delete=true
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@ -127,6 +132,10 @@ create_args=(
|
|||||||
-z "$zone"
|
-z "$zone"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if [[ -n $bootDiskType ]]; then
|
||||||
|
create_args+=(-d "$bootDiskType")
|
||||||
|
fi
|
||||||
|
|
||||||
if $enableGpu; then
|
if $enableGpu; then
|
||||||
if [[ -z $bootstrapFullNodeMachineType ]]; then
|
if [[ -z $bootstrapFullNodeMachineType ]]; then
|
||||||
create_args+=(-g)
|
create_args+=(-g)
|
||||||
|
@ -204,7 +204,7 @@ start() {
|
|||||||
export NO_VALIDATOR_SANITY=1
|
export NO_VALIDATOR_SANITY=1
|
||||||
ci/testnet-deploy.sh edge-testnet-solana-com ec2 us-west-1a \
|
ci/testnet-deploy.sh edge-testnet-solana-com ec2 us-west-1a \
|
||||||
-t "$CHANNEL_OR_TAG" -n 3 -c 0 -P -a eipalloc-0ccd4f2239886fa94 \
|
-t "$CHANNEL_OR_TAG" -n 3 -c 0 -P -a eipalloc-0ccd4f2239886fa94 \
|
||||||
${maybeDelete:+-d}
|
${maybeDelete:+-D}
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
testnet-edge-perf)
|
testnet-edge-perf)
|
||||||
@ -217,7 +217,7 @@ start() {
|
|||||||
ci/testnet-deploy.sh edge-perf-testnet-solana-com ec2 us-west-2b \
|
ci/testnet-deploy.sh edge-perf-testnet-solana-com ec2 us-west-2b \
|
||||||
-g -t "$CHANNEL_OR_TAG" -c 2 \
|
-g -t "$CHANNEL_OR_TAG" -c 2 \
|
||||||
-b \
|
-b \
|
||||||
${maybeDelete:+-d}
|
${maybeDelete:+-D}
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
testnet-beta)
|
testnet-beta)
|
||||||
@ -230,7 +230,7 @@ start() {
|
|||||||
ci/testnet-deploy.sh beta-testnet-solana-com ec2 us-west-1a \
|
ci/testnet-deploy.sh beta-testnet-solana-com ec2 us-west-1a \
|
||||||
-t "$CHANNEL_OR_TAG" -n 3 -c 0 -P -a eipalloc-0f286cf8a0771ce35 \
|
-t "$CHANNEL_OR_TAG" -n 3 -c 0 -P -a eipalloc-0f286cf8a0771ce35 \
|
||||||
-b \
|
-b \
|
||||||
${maybeDelete:+-d}
|
${maybeDelete:+-D}
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
testnet-beta-perf)
|
testnet-beta-perf)
|
||||||
@ -243,7 +243,7 @@ start() {
|
|||||||
ci/testnet-deploy.sh beta-perf-testnet-solana-com ec2 us-west-2b \
|
ci/testnet-deploy.sh beta-perf-testnet-solana-com ec2 us-west-2b \
|
||||||
-g -t "$CHANNEL_OR_TAG" -c 2 \
|
-g -t "$CHANNEL_OR_TAG" -c 2 \
|
||||||
-b \
|
-b \
|
||||||
${maybeDelete:+-d}
|
${maybeDelete:+-D}
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
testnet)
|
testnet)
|
||||||
@ -255,11 +255,11 @@ start() {
|
|||||||
export NO_VALIDATOR_SANITY=1
|
export NO_VALIDATOR_SANITY=1
|
||||||
#ci/testnet-deploy.sh testnet-solana-com gce us-east1-c \
|
#ci/testnet-deploy.sh testnet-solana-com gce us-east1-c \
|
||||||
# -s "$CHANNEL_OR_TAG" -n 3 -c 0 -P -a testnet-solana-com \
|
# -s "$CHANNEL_OR_TAG" -n 3 -c 0 -P -a testnet-solana-com \
|
||||||
# ${maybeDelete:+-d}
|
# ${maybeDelete:+-D}
|
||||||
ci/testnet-deploy.sh testnet-solana-com ec2 us-west-1a \
|
ci/testnet-deploy.sh testnet-solana-com ec2 us-west-1a \
|
||||||
-t "$CHANNEL_OR_TAG" -n 3 -c 0 -P -a eipalloc-0fa502bf95f6f18b2 \
|
-t "$CHANNEL_OR_TAG" -n 3 -c 0 -P -a eipalloc-0fa502bf95f6f18b2 \
|
||||||
-b \
|
-b \
|
||||||
${maybeDelete:+-d}
|
${maybeDelete:+-D}
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
testnet-perf)
|
testnet-perf)
|
||||||
@ -274,11 +274,11 @@ start() {
|
|||||||
-t "$CHANNEL_OR_TAG" -c 2 \
|
-t "$CHANNEL_OR_TAG" -c 2 \
|
||||||
-b \
|
-b \
|
||||||
-d pd-ssd \
|
-d pd-ssd \
|
||||||
${maybeDelete:+-d}
|
${maybeDelete:+-D}
|
||||||
#ci/testnet-deploy.sh perf-testnet-solana-com ec2 us-east-1a \
|
#ci/testnet-deploy.sh perf-testnet-solana-com ec2 us-east-1a \
|
||||||
# -g \
|
# -g \
|
||||||
# -t "$CHANNEL_OR_TAG" -c 2 \
|
# -t "$CHANNEL_OR_TAG" -c 2 \
|
||||||
# ${maybeDelete:+-d}
|
# ${maybeDelete:+-D}
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
Reference in New Issue
Block a user