summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorMatthewLi <matthew.lijun@huawei.com>2015-12-24 18:16:16 -0800
committerMatthewLi <matthew.lijun@huawei.com>2015-12-24 18:17:41 -0800
commitd279cef1affea34e8c542066c78f0f1046cd25f3 (patch)
tree14e75f8f08f6a1dc3bfbf388edcf213283150e24 /utils
parent0e2e5933d54f01fa33e421e9c4ed0d048346ac99 (diff)
use cirros to test instance creation workflow
JIRA: BOTTLENECK-35 Change-Id: Ie62e7352f92e2cf38bfd0ab2a9b40f73b0b6daeb Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
Diffstat (limited to 'utils')
-rwxr-xr-xutils/infra_setup/heat_template/HOT_create_instance.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/infra_setup/heat_template/HOT_create_instance.sh b/utils/infra_setup/heat_template/HOT_create_instance.sh
index bc28a994..010a2566 100755
--- a/utils/infra_setup/heat_template/HOT_create_instance.sh
+++ b/utils/infra_setup/heat_template/HOT_create_instance.sh
@@ -80,6 +80,10 @@ bottlenecks_load_bottlenecks_image()
echo "load bottlenecks image"
curl --connect-timeout 10 -o /tmp/bottlenecks-trusty-server.img $IMAGE_URL -v
+ if [ $?!=0 ]; then
+ wget http://download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.img -O \
+ /tmp/bottlenecks-trusty-server.img
+ fi
result=$(glance image-create \
--name $IMAGE_NAME \