Add "img_property" when building Yardstick image 47/50547/1
authorRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Sat, 13 Jan 2018 08:26:03 +0000 (08:26 +0000)
committerRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Sat, 13 Jan 2018 08:27:22 +0000 (08:27 +0000)
Since [1], when "build_yardstick_image.yml" is executed, a variable called
"img_property" must be set. This variable could be "normal" or "nsb",
depending on the type of image to generate.

[1] I9fdf30084511ca9a008df3b53887b06273bbd549

JIRA: YARDSTICK-921

Change-Id: Ie3ca6fcf76b94eb9604847aefa77c6a644dddd14
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
ansible/load_images.yml
ansible/prepare_openstack.yml

index a4c130d..d4b24c8 100644 (file)
         IMAGE_COMMAND: yardstick-img-modify
         IMAGE_OUTPUT: "/tmp/workspace/yardstick/yardstick-image.tar.gz"
 
-#    QCOW_IMAGE: "/tmp/workspace/yardstick/yardstick-image.img"
-#    RAW_IMAGE: "/tmp/workspace/yardstick/yardstick-image.tar.gz"
-#    IMAGE_COMMANDS:
-#      'lxd': yardstick-img-lxd-modify
-#      'default': yardstick-img-modify
-
-
   roles:
     - role: add_fuel_jumphost
       when: "INSTALLER_TYPE == 'fuel'"
     - role: detect_fuel_arch
       when: "INSTALLER_TYPE == 'fuel'"
 
-#  post_tasks:
-#
-#    - command: "{{ DEPLOY_VARS[DEPLOY_SCENARIO].IMAGE_COMMAND }}" "{{ IMAGE_MODIFY_SCRIPT }}"
-#      become: true
-#      register: image_modify_result
-#      retries: 2
-#      untils: image_modify_result|succeeded
-#
-#    - stat: path="{{ DEPLOY_VARS[DEPLOY_SCENARIO].IMAGE_OUTPUT }}"}
-#      register: output_stat
-#
-#    - fail: msg=""
-#      when: not output_stat
-
-
 - include: build_yardstick_image.yml
+  vars:
+    img_property: normal
 
 - include: image_uploaders/upload_yardstick_image.yml
 
-# upload cirros
-# upload vanilla ubuntu cloud_image
-
-# - include: create_flavors.yml
-
-
index 8456c9e..6f54ef5 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 ---
-- name: convert openrc_file to openrc env dict
+- name: Convert openrc_file to openrc env dict
   hosts: jumphost
   vars_files:
     - yardstick_config.yml
   roles:
     - convert_openrc
 
-###
-#  Build yardstick image for openstack quest
-#  check included file for other vars/env
-###
-- include: build_yardstick_image.yml
+- name: Build Yardstick image for OpenStack
+  include: build_yardstick_image.yml
   vars:
     YARD_IMG_ARCH: amd64
     release: xenial
+    img_property: nsb
 
-###
-#  Delete old yardstick image and flavors
-#  Upload new image
-###
-- name: cleanup old openstack images, upload new
+- name: Cleanup old OpenStack images and upload the new one
   hosts: jumphost
   vars_files:
     - yardstick_config.yml