start caching the next 64bit update image to deal with heat
breaks we see from time to time.
Change-Id: If62840f4807151ada1598046fb7ad47c7210df12
| ... | ... |
@@ -340,28 +340,18 @@ case "$VIRT_DRIVER" in |
| 340 | 340 |
IMAGE_URLS=${IMAGE_URLS:-"http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-uec.tar.gz"};;
|
| 341 | 341 |
esac |
| 342 | 342 |
|
| 343 |
-# if heat is enabled, bring in a linux image with cfn enabled |
|
| 344 |
-# TODO(sdague) this next block can be removed after nodepool has the 64bit image in it's cache |
|
| 345 |
-HEAT_FETCHED_TEST_IMAGE=${HEAT_FETCHED_TEST_IMAGE:-""}
|
|
| 346 |
-if [[ "$HEAT_FETCHED_TEST_IMAGE" == "Fedora-i386-20-20131211.1-sda" ]]; then |
|
| 347 |
- HEAT_CFN_IMAGE_URL="https://dl.fedoraproject.org/pub/fedora/linux/releases/20/Images/i386/$HEAT_FETCHED_TEST_IMAGE.qcow2" |
|
| 348 |
- IMAGE_URLS+=",https://dl.fedoraproject.org/pub/fedora/linux/releases/20/Images/i386/$HEAT_FETCHED_TEST_IMAGE.qcow2" |
|
| 349 |
-elif [[ "$HEAT_FETCHED_TEST_IMAGE" == "Fedora-x86_64-20-20131211.1-sda" ]]; then |
|
| 350 |
- HEAT_CFN_IMAGE_URL="https://dl.fedoraproject.org/pub/fedora/linux/releases/20/Images/x86_64/Fedora-x86_64-20-20131211.1-sda.qcow2" |
|
| 351 |
- IMAGE_URLS+=",https://dl.fedoraproject.org/pub/fedora/linux/releases/20/Images/x86_64/Fedora-x86_64-20-20131211.1-sda.qcow2" |
|
| 343 |
+# Use 64bit fedora image if heat is enabled |
|
| 344 |
+if [[ "$ENABLED_SERVICES" =~ 'h-api' ]]; then |
|
| 345 |
+ HEAT_CFN_IMAGE_URL=${HEAT_CFN_IMAGE_URL:-"https://dl.fedoraproject.org/pub/fedora/linux/releases/20/Images/x86_64/Fedora-x86_64-20-20131211.1-sda.qcow2"}
|
|
| 346 |
+ IMAGE_URLS+=",$HEAT_CFN_IMAGE_URL" |
|
| 352 | 347 |
fi |
| 353 | 348 |
|
| 354 |
-# Uncomment after nodepool changes land |
|
| 355 |
-# if [[ "$ENABLED_SERVICES" =~ 'h-api' ]]; then |
|
| 356 |
-# HEAT_CFN_IMAGE_URL=${HEAT_CFN_IMAGE_URL:-"https://dl.fedoraproject.org/pub/fedora/linux/releases/20/Images/x86_64/Fedora-x86_64-20-20131211.1-sda.qcow2"}
|
|
| 357 |
-# IMAGE_URLS+=",$HEAT_CFN_IMAGE_URL" |
|
| 358 |
-# fi |
|
| 359 |
- |
|
| 360 | 349 |
# Staging Area for New Images, have them here for at least 24hrs for nodepool |
| 361 | 350 |
# to cache them otherwise the failure rates in the gate are too high |
| 362 | 351 |
PRECACHE_IMAGES=$(trueorfalse False $PRECACHE_IMAGES) |
| 363 | 352 |
if [[ "$PRECACHE_IMAGES" == "True" ]]; then |
| 364 |
- IMAGE_URLS+=",https://dl.fedoraproject.org/pub/fedora/linux/releases/20/Images/x86_64/Fedora-x86_64-20-20131211.1-sda.qcow2" |
|
| 353 |
+ # staging in update for nodepool |
|
| 354 |
+ IMAGE_URLS+=",https://dl.fedoraproject.org/pub/fedora/linux/updates/20/Images/x86_64/Fedora-x86_64-20-20140407-sda.qcow2" |
|
| 365 | 355 |
fi |
| 366 | 356 |
|
| 367 | 357 |
# 10Gb default volume backing file size |