diff --git a/stackrc b/stackrc index f6403cce01..2dfc7fb00c 100644 --- a/stackrc +++ b/stackrc @@ -347,15 +347,22 @@ if [[ "$HEAT_FETCHED_TEST_IMAGE" == "Fedora-i386-20-20131211.1-sda" ]]; then HEAT_CFN_IMAGE_URL="https://dl.fedoraproject.org/pub/fedora/linux/releases/20/Images/i386/$HEAT_FETCHED_TEST_IMAGE.qcow2" IMAGE_URLS+=",https://dl.fedoraproject.org/pub/fedora/linux/releases/20/Images/i386/$HEAT_FETCHED_TEST_IMAGE.qcow2" elif [[ "$HEAT_FETCHED_TEST_IMAGE" == "Fedora-x86_64-20-20131211.1-sda" ]]; then - HEAT_CFN_IMAGE_URL="https://download.fedoraproject.org/pub/fedora/linux/releases/20/Images/x86_64/Fedora-x86_64-20-20131211.1-sda.qcow2" - IMAGE_URLS+=",https://download.fedoraproject.org/pub/fedora/linux/releases/20/Images/x86_64/Fedora-x86_64-20-20131211.1-sda.qcow2" + HEAT_CFN_IMAGE_URL="https://dl.fedoraproject.org/pub/fedora/linux/releases/20/Images/x86_64/Fedora-x86_64-20-20131211.1-sda.qcow2" + IMAGE_URLS+=",https://dl.fedoraproject.org/pub/fedora/linux/releases/20/Images/x86_64/Fedora-x86_64-20-20131211.1-sda.qcow2" fi # Uncomment after nodepool changes land -#if [[ "$ENABLED_SERVICES" =~ 'h-api' ]]; then -# 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"} -# IMAGE_URLS+=",$HEAT_CFN_IMAGE_URL" -#fi +# if [[ "$ENABLED_SERVICES" =~ 'h-api' ]]; then +# 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"} +# IMAGE_URLS+=",$HEAT_CFN_IMAGE_URL" +# fi + +# Staging Area for New Images, have them here for at least 24hrs for nodepool +# to cache them otherwise the failure rates in the gate are too high +PRECACHE_IMAGES=$(trueorfalse False $PRECACHE_IMAGES) +if [[ "$PRECACHE_IMAGES" == "True" ]]; then + IMAGE_URLS+=",https://dl.fedoraproject.org/pub/fedora/linux/releases/20/Images/x86_64/Fedora-x86_64-20-20131211.1-sda.qcow2" +fi # 10Gb default volume backing file size VOLUME_BACKING_FILE_SIZE=${VOLUME_BACKING_FILE_SIZE:-10250M} diff --git a/tools/image_list.sh b/tools/image_list.sh index fa6b92ebb0..f9a4e2f518 100755 --- a/tools/image_list.sh +++ b/tools/image_list.sh @@ -12,6 +12,7 @@ DRIVERS="openvz ironic libvirt vsphere xenserver dummy" # Extra variables to trigger getting additional images. ENABLED_SERVICES=h-api HEAT_FETCHED_TEST_IMAGE="Fedora-i386-20-20131211.1-sda" +PRECACHE_IMAGES=True # Loop over all the virt drivers and collect all the possible images ALL_IMAGES=""