Browse code

Fixes Heat tempest issue due to hardcoded qcow2 extension

The orchestration image_ref is set incorrectly if the extension is not
qcow2, as a result tempest cannot find the Glance image and the
associated tests fail.

This patch fixes the issue by handling any extension.

Change-Id: I32ffe021714590a1b1bab232b1d4f5da238bd4d8
Closes-Bug: #1402774

Alessandro Pilotti authored on 2014/12/16 03:02:08
Showing 1 changed files
... ...
@@ -372,7 +372,7 @@ function configure_tempest {
372 372
     # Orchestration Tests
373 373
     if is_service_enabled heat; then
374 374
         if [[ ! -z "$HEAT_CFN_IMAGE_URL" ]]; then
375
-            iniset $TEMPEST_CONFIG orchestration image_ref $(basename "$HEAT_CFN_IMAGE_URL" ".qcow2")
375
+            iniset $TEMPEST_CONFIG orchestration image_ref $(basename "${HEAT_CFN_IMAGE_URL%.*}")
376 376
         fi
377 377
         # build a specialized heat flavor
378 378
         available_flavors=$(nova flavor-list)