summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2017-12-14 17:31:05 -0500
committerJonathan Abrahams <jonathan@mongodb.com>2018-02-02 10:40:22 -0500
commitec0d349f2fb717a29c4da77c6c540419f02adfb9 (patch)
tree9a739ea964fec7af0b6182750d25f2709630694d
parentdbed068c9a7ece60e0d85f718afceee4c9071f4f (diff)
downloadmongo-ec0d349f2fb717a29c4da77c6c540419f02adfb9.tar.gz
SERVER-32203 Log the remote EC2 instance status when a failure to access it is detected in evergreen.yml
(cherry picked from commit d2eedbeeedb61753c17b6a87912e4b14e7611b95)
-rw-r--r--etc/evergreen.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml
index 0eedfd75a4d..e10e5c1072f 100644
--- a/etc/evergreen.yml
+++ b/etc/evergreen.yml
@@ -918,7 +918,12 @@ functions:
${mongodb_options} \
${mongod_options} \
${mongod_extra_options}"
+ set +o errexit
$python -u pytests/powertest.py --configFile=$config_file
+ test_status=$?
+ aws_ec2=$(python buildscripts/aws_ec2.py --imageId ${instance_id} --mode status)
+ echo "Test completed, AMI EC2 instance ${instance_id} status: $aws_ec2"
+ exit $test_status
"do multiversion setup" :
command: shell.exec
@@ -1448,6 +1453,7 @@ functions:
${activate_virtualenv}
# Specify '--mode start' to ensure the remote instance is running.
aws_ec2=$($python buildscripts/aws_ec2.py --imageId ${instance_id} --mode start)
+ echo "AMI EC2 instance ${instance_id} status: $aws_ec2"
ip_address=$(echo $aws_ec2 | sed -e "s/.*private_ip_address: //; s/ .*//")
sed -i -e "s/${ip_address}/$ip_address/" ${aws_ec2_yml}
echo "Instance status: $aws_ec2"