Code Review
/
bottlenecks.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
use cirros to test instance creation workflow
[bottlenecks.git]
/
utils
/
infra_setup
/
heat_template
/
HOT_create_instance.sh
diff --git
a/utils/infra_setup/heat_template/HOT_create_instance.sh
b/utils/infra_setup/heat_template/HOT_create_instance.sh
index
bc28a99
..
010a256
100755
(executable)
--- 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
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 \
result=$(glance image-create \
--name $IMAGE_NAME \