Fix image format set for rally test cases 67/20567/1
authorJuha Kosonen <juha.kosonen@nokia.com>
Tue, 6 Sep 2016 14:15:31 +0000 (14:15 +0000)
committerMorgan Richomme <morgan.richomme@orange.com>
Wed, 7 Sep 2016 14:00:50 +0000 (14:00 +0000)
Always use image format defined in config_functest.yaml when creating
glance images.

JIRA: FUNCTEST-460

Change-Id: Ica6b35605301bc14290daa23a1480114cf6294c0
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
(cherry picked from commit b49d6129e2f6a15be9de7b7f04fbec0bd15ee8e6)

testcases/OpenStack/rally/run_rally-cert.py
testcases/OpenStack/rally/scenario/opnfv-glance.yaml

index 85d21d9..5aabb5d 100755 (executable)
@@ -160,6 +160,7 @@ def build_task_args(test_file_name):
     task_args['image_name'] = GLANCE_IMAGE_NAME
     task_args['flavor_name'] = FLAVOR_NAME
     task_args['glance_image_location'] = GLANCE_IMAGE_PATH
+    task_args['glance_image_format'] = GLANCE_IMAGE_FORMAT
     task_args['tmpl_dir'] = TEMPLATE_DIR
     task_args['sup_dir'] = SUPPORT_DIR
     task_args['users_amount'] = USERS_AMOUNT
index adbf8b7..3a67e74 100644 (file)
@@ -1,7 +1,7 @@
   GlanceImages.create_and_delete_image:
     -
       args:
-        {{ glance_args(location=glance_image_location) }}
+        {{ glance_args(location=glance_image_location, type=glance_image_format) }}
       context:
         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
       runner:
@@ -12,7 +12,7 @@
   GlanceImages.create_and_list_image:
     -
       args:
-        {{ glance_args(location=glance_image_location) }}
+        {{ glance_args(location=glance_image_location, type=glance_image_format) }}
       context:
         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
       runner:
@@ -32,7 +32,7 @@
   GlanceImages.create_image_and_boot_instances:
     -
       args:
-        {{ glance_args(location=glance_image_location) }}
+        {{ glance_args(location=glance_image_location, type=glance_image_format) }}
         flavor:
             name: {{ flavor_name }}
         number_instances: 2