diff options
author | Rushil Kumar <rushil.kumar@10gen.com> | 2017-08-01 14:53:36 -0400 |
---|---|---|
committer | dalyd <david.daly@mongodb.com> | 2017-09-11 14:11:56 -0400 |
commit | 2ca7e0d9aa22726d1426a37575e9beaf2437ec35 (patch) | |
tree | ce228333b2973ca1f8f1970d48a695c34f6731e4 | |
parent | 593e20a6869c47ad1682f1f0b5d175f495f2804f (diff) | |
download | mongo-2ca7e0d9aa22726d1426a37575e9beaf2437ec35.tar.gz |
SERVER-29524: Use infrastructure provisioning python script instead of bash script.
Signed-off-by: dalyd <david.daly@mongodb.com>
(cherry picked from commit 41221453c7bfb54ac35b3390887d9a9ae45013de)
-rw-r--r-- | etc/longevity.yml | 11 | ||||
-rw-r--r-- | etc/system_perf.yml | 6 |
2 files changed, 9 insertions, 8 deletions
diff --git a/etc/longevity.yml b/etc/longevity.yml index b5cb674a354..af830baf318 100644 --- a/etc/longevity.yml +++ b/etc/longevity.yml @@ -141,15 +141,15 @@ functions: "infrastructure provisioning": - command: shell.exec - # call infrastructure-provisioning.sh. This will either create a cluster, or update tags on existing instances. + # call infrastructure-provisioning.py. This will either create a cluster, or update tags on existing instances. params: working_dir: work script: | set -e set -v source ./dsienv.sh - export PRODUCTION=true - $DSI_PATH/bin/infrastructure_provisioning.sh ${cluster} + source ./venv/bin/activate + $DSI_PATH/bin/infrastructure_provisioning.py "configure mongodb cluster": - command: shell.exec @@ -190,10 +190,11 @@ functions: set -o verbose source ./dsienv.sh # Longevity runs so rarely, we simply teardown the cluster when done. - # Note that nowadays infrastructure_teardown.sh is actually copying the terraform.tfstate into /data/infrastructure_provisioning + # Note that nowadays infrastructure_teardown.py is actually copying the terraform.tfstate into /data/infrastructure_provisioning # but as of this writing the rhel70-perf-longevity distro didn't actually use the teardown hook. source ./dsienv.sh - $DSI_PATH/bin/infrastructure_teardown.sh + source ./venv/bin/activate + $DSI_PATH/bin/infrastructure_teardown.py echo "Cluster DESTROYED." echo echo "All perf results" diff --git a/etc/system_perf.yml b/etc/system_perf.yml index 61cca7d0457..e654824801c 100644 --- a/etc/system_perf.yml +++ b/etc/system_perf.yml @@ -150,15 +150,15 @@ functions: "infrastructure provisioning": - command: shell.exec - # call infrastructure-provisioning.sh. This will either create a cluster, or update tags on existing instances. + # call infrastructure-provisioning.py. This will either create a cluster, or update tags on existing instances. params: working_dir: work script: | set -e set -v source ./dsienv.sh - export PRODUCTION=true - $DSI_PATH/bin/infrastructure_provisioning.sh ${cluster} + source ./venv/bin/activate + $DSI_PATH/bin/infrastructure_provisioning.py "configure mongodb cluster": - command: shell.exec |