Browse code

Only use heat image where support

Glance will reject images that it doesn't understand, and only certain drivers can
use qcow2 images. This means for systems without qcow2 support, devstack
will fail to run until this change is merged.

Change-Id: Ic92815f3d32880e987456c0428953dddaa81c94c

Bob Ball authored on 2014/04/28 16:30:18
Showing 1 changed files
... ...
@@ -342,10 +342,15 @@ esac
342 342
 
343 343
 # Use 64bit fedora image if heat is enabled
344 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"
345
+    case "$VIRT_DRIVER" in
346
+        libvirt|baremetal|ironic)
347
+            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"}
348
+            IMAGE_URLS+=",$HEAT_CFN_IMAGE_URL"
349
+            ;;
350
+        *)
351
+            ;;
352
+    esac
347 353
 fi
348
-
349 354
 # Staging Area for New Images, have them here for at least 24hrs for nodepool
350 355
 # to cache them otherwise the failure rates in the gate are too high
351 356
 PRECACHE_IMAGES=$(trueorfalse False $PRECACHE_IMAGES)