
Replace the "manila-tempest-dsvm-generic-scenario-custom-image" job with a native Zuulv3 style job that does not use the deprecated devstack-gate project. This new test job runs integration NFS and CIFS tests against a newly created test image that is used as the service instance image, as well as the client image. Change-Id: I3d2345e80f3bc18558d4cc6cc58108ff63119460 Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
54 lines
1.5 KiB
YAML
54 lines
1.5 KiB
YAML
---
|
|
- name: build the requested images
|
|
command: bash -xe tools/gate/build-images {{ item }}
|
|
args:
|
|
chdir: "{{ mie_project_path }}"
|
|
with_items: "{{ images_to_build }}"
|
|
- name: create images directory
|
|
file:
|
|
path: "{{ mie_project_path }}/images"
|
|
state: directory
|
|
mode: 0755
|
|
- name: collect git tag
|
|
command: git describe --tags
|
|
args:
|
|
chdir: "{{ mie_project_path }}"
|
|
register: tagoutput
|
|
- name: show directory contents after the build
|
|
command: ls -lrt
|
|
args:
|
|
chdir: "{{ mie_project_path }}"
|
|
- name: get the source directory
|
|
command: pwd
|
|
args:
|
|
chdir: '{{ mie_project_path }}'
|
|
register: src_dir
|
|
- name: grab all images built
|
|
find:
|
|
paths: "{{ src_dir.stdout }}"
|
|
patterns: '*.qcow2'
|
|
file_type: file
|
|
register: images_built
|
|
- name: hard link images into the images directory using the git tag
|
|
file:
|
|
src: "{{ item.path }}"
|
|
dest: "{{ src_dir.stdout }}/images/{{ item.path | basename | splitext | first }}-{{ tagoutput.stdout }}.qcow2"
|
|
state: hard
|
|
with_items: "{{ images_built.files }}"
|
|
- name: grab the tagged images
|
|
find:
|
|
paths: "{{ src_dir.stdout }}/images"
|
|
patterns: "*.qcow2"
|
|
file_type: file
|
|
register: images_tagged
|
|
- name: create "master" symlinks for these images
|
|
file:
|
|
src: "{{ item.path }}"
|
|
dest: "{{ src_dir.stdout }}/images/{{ item.path | basename | regex_replace('\\d+.*qcow2', 'master.qcow2') }}"
|
|
state: link
|
|
with_items: "{{ images_tagged.files }}"
|
|
- name: get contents of the images directory
|
|
command: ls -lrt
|
|
args:
|
|
chdir: "{{ mie_project_path }}/images/"
|