Browse code

add Fedora x86_64 image for nodepool

Change-Id: I54fdc81e2a233fdcf90534aff6be7984e28f6133

Sean Dague authored on 2014/04/18 10:56:53
Showing 2 changed files
... ...
@@ -347,15 +347,22 @@ if [[ "$HEAT_FETCHED_TEST_IMAGE" == "Fedora-i386-20-20131211.1-sda" ]]; then
347 347
     HEAT_CFN_IMAGE_URL="https://dl.fedoraproject.org/pub/fedora/linux/releases/20/Images/i386/$HEAT_FETCHED_TEST_IMAGE.qcow2"
348 348
     IMAGE_URLS+=",https://dl.fedoraproject.org/pub/fedora/linux/releases/20/Images/i386/$HEAT_FETCHED_TEST_IMAGE.qcow2"
349 349
 elif [[ "$HEAT_FETCHED_TEST_IMAGE" == "Fedora-x86_64-20-20131211.1-sda" ]]; then
350
-    HEAT_CFN_IMAGE_URL="https://download.fedoraproject.org/pub/fedora/linux/releases/20/Images/x86_64/Fedora-x86_64-20-20131211.1-sda.qcow2"
351
-    IMAGE_URLS+=",https://download.fedoraproject.org/pub/fedora/linux/releases/20/Images/x86_64/Fedora-x86_64-20-20131211.1-sda.qcow2"
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"
352 352
 fi
353 353
 
354 354
 # Uncomment after nodepool changes land
355
-#if [[ "$ENABLED_SERVICES" =~ 'h-api' ]]; then
356
-#    HEAT_CFN_IMAGE_URL=${HEAT_CFN_IMAGE_URL:-"https://download.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
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
+# Staging Area for New Images, have them here for at least 24hrs for nodepool
361
+# to cache them otherwise the failure rates in the gate are too high
362
+PRECACHE_IMAGES=$(trueorfalse False $PRECACHE_IMAGES)
363
+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"
365
+fi
359 366
 
360 367
 # 10Gb default volume backing file size
361 368
 VOLUME_BACKING_FILE_SIZE=${VOLUME_BACKING_FILE_SIZE:-10250M}
... ...
@@ -12,6 +12,7 @@ DRIVERS="openvz ironic libvirt vsphere xenserver dummy"
12 12
 # Extra variables to trigger getting additional images.
13 13
 ENABLED_SERVICES=h-api
14 14
 HEAT_FETCHED_TEST_IMAGE="Fedora-i386-20-20131211.1-sda"
15
+PRECACHE_IMAGES=True
15 16
 
16 17
 # Loop over all the virt drivers and collect all the possible images
17 18
 ALL_IMAGES=""