Native Zuulv3 scenario test job
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>
This commit is contained in:
parent
9f1a542e44
commit
873527d746
1
.gitignore
vendored
1
.gitignore
vendored
@ -33,6 +33,7 @@ AUTHORS
|
|||||||
diskimage-create.*
|
diskimage-create.*
|
||||||
debug.sh
|
debug.sh
|
||||||
/*.d
|
/*.d
|
||||||
|
!zuul.d/
|
||||||
|
|
||||||
# Files created by Sphinx build
|
# Files created by Sphinx build
|
||||||
build
|
build
|
||||||
|
7
playbooks/manila-buildimages/run-generic-scenario.yaml
Normal file
7
playbooks/manila-buildimages/run-generic-scenario.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
- hosts: all
|
||||||
|
roles:
|
||||||
|
- role: ensure-tox
|
||||||
|
ensure_global_symlinks: true
|
||||||
|
- role: build-mie-images
|
||||||
|
images_to_build:
|
||||||
|
- generic
|
@ -6,9 +6,14 @@ An ansible role to build images with manila-image-elements
|
|||||||
Role Variables
|
Role Variables
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
|
.. zuul:rolevar:: mie_project_path
|
||||||
|
:type: string
|
||||||
|
:default: {{ zuul.projects['opendev.org/openstack/manila-image-elements'].src_dir }}
|
||||||
|
|
||||||
|
Path of the manila-image-elements repository.
|
||||||
|
|
||||||
.. zuul:rolevar:: images_to_build
|
.. zuul:rolevar:: images_to_build
|
||||||
:type: list
|
:type: list
|
||||||
:default: ['generic', 'cephfs']
|
:default: ['generic', 'cephfs']
|
||||||
|
|
||||||
|
|
||||||
One or more image types to build.
|
One or more image types to build.
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
mie_project_path: "{{ zuul.projects['opendev.org/openstack/manila-image-elements'].src_dir }}"
|
||||||
images_to_build:
|
images_to_build:
|
||||||
- cephfs
|
- cephfs
|
||||||
- generic
|
- generic
|
@ -2,26 +2,26 @@
|
|||||||
- name: build the requested images
|
- name: build the requested images
|
||||||
command: bash -xe tools/gate/build-images {{ item }}
|
command: bash -xe tools/gate/build-images {{ item }}
|
||||||
args:
|
args:
|
||||||
chdir: "{{ zuul.project.src_dir }}"
|
chdir: "{{ mie_project_path }}"
|
||||||
with_items: "{{ images_to_build }}"
|
with_items: "{{ images_to_build }}"
|
||||||
- name: create images directory
|
- name: create images directory
|
||||||
file:
|
file:
|
||||||
path: "{{ zuul.project.src_dir }}/images"
|
path: "{{ mie_project_path }}/images"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
- name: collect git tag
|
- name: collect git tag
|
||||||
command: git describe --tags
|
command: git describe --tags
|
||||||
args:
|
args:
|
||||||
chdir: "{{ zuul.project.src_dir }}"
|
chdir: "{{ mie_project_path }}"
|
||||||
register: tagoutput
|
register: tagoutput
|
||||||
- name: show directory contents after the build
|
- name: show directory contents after the build
|
||||||
command: ls -lrt
|
command: ls -lrt
|
||||||
args:
|
args:
|
||||||
chdir: "{{ zuul.project.src_dir }}"
|
chdir: "{{ mie_project_path }}"
|
||||||
- name: get the source directory
|
- name: get the source directory
|
||||||
command: pwd
|
command: pwd
|
||||||
args:
|
args:
|
||||||
chdir: '{{ zuul.project.src_dir }}'
|
chdir: '{{ mie_project_path }}'
|
||||||
register: src_dir
|
register: src_dir
|
||||||
- name: grab all images built
|
- name: grab all images built
|
||||||
find:
|
find:
|
||||||
@ -50,4 +50,4 @@
|
|||||||
- name: get contents of the images directory
|
- name: get contents of the images directory
|
||||||
command: ls -lrt
|
command: ls -lrt
|
||||||
args:
|
args:
|
||||||
chdir: "{{ zuul.project.src_dir }}/images/"
|
chdir: "{{ mie_project_path }}/images/"
|
||||||
|
@ -4,4 +4,5 @@ find ./ -not -wholename \*.tox/\* -and \
|
|||||||
\( -name \*.sh -or -wholename \*.d/\* -and \
|
\( -name \*.sh -or -wholename \*.d/\* -and \
|
||||||
-not -name \*.md -and -not -name \*.rst -and \
|
-not -name \*.md -and -not -name \*.rst -and \
|
||||||
-not -name \*.py -and -not -name \*.conf \) \
|
-not -name \*.py -and -not -name \*.conf \) \
|
||||||
|
-not -name \*.yaml \
|
||||||
-print0 | xargs -0 bashate -v -i E006
|
-print0 | xargs -0 bashate -v -i E006
|
||||||
|
@ -1,32 +1,3 @@
|
|||||||
- project:
|
|
||||||
templates:
|
|
||||||
- check-requirements
|
|
||||||
- build-openstack-docs-pti
|
|
||||||
- openstack-lower-constraints-jobs
|
|
||||||
check:
|
|
||||||
jobs:
|
|
||||||
- openstack-tox-pep8
|
|
||||||
- manila-image-elements-buildimages
|
|
||||||
- manila-image-elements-buildimage-docker:
|
|
||||||
voting: false
|
|
||||||
- manila-tempest-dsvm-container-scenario-custom-image:
|
|
||||||
voting: false
|
|
||||||
irrelevant-files:
|
|
||||||
- ^(test-|)requirements.txt$
|
|
||||||
- ^setup.cfg$
|
|
||||||
- manila-tempest-dsvm-generic-scenario-custom-image:
|
|
||||||
voting: false
|
|
||||||
irrelevant-files:
|
|
||||||
- ^(test-|)requirements.txt$
|
|
||||||
- ^setup.cfg$
|
|
||||||
gate:
|
|
||||||
jobs:
|
|
||||||
- openstack-tox-pep8
|
|
||||||
- manila-image-elements-buildimages
|
|
||||||
post:
|
|
||||||
jobs:
|
|
||||||
- manila-image-elements-publish-artifacts
|
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: manila-image-elements-buildimage-docker
|
name: manila-image-elements-buildimage-docker
|
||||||
description: |
|
description: |
|
||||||
@ -51,7 +22,7 @@
|
|||||||
- job:
|
- job:
|
||||||
name: manila-image-elements-publish-artifacts
|
name: manila-image-elements-publish-artifacts
|
||||||
description: |
|
description: |
|
||||||
Build image artifacts and publish to tarballs.openstack.org
|
Build image artifacts and publish to tarba.lls.openstack.org.
|
||||||
parent: publish-openstack-artifacts
|
parent: publish-openstack-artifacts
|
||||||
timeout: 3600
|
timeout: 3600
|
||||||
final: true
|
final: true
|
||||||
@ -59,3 +30,19 @@
|
|||||||
- openstack/manila-image-elements
|
- openstack/manila-image-elements
|
||||||
run: playbooks/manila-buildimages/run.yaml
|
run: playbooks/manila-buildimages/run.yaml
|
||||||
post-run: playbooks/manila-publish-artifacts/post.yaml
|
post-run: playbooks/manila-publish-artifacts/post.yaml
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: manila-image-elements-generic-scenario
|
||||||
|
parent: manila-tempest-plugin-generic
|
||||||
|
pre-run: playbooks/manila-buildimages/run-generic-scenario.yaml
|
||||||
|
required-projects:
|
||||||
|
- openstack/manila-image-elements
|
||||||
|
- openstack/manila
|
||||||
|
- openstack/manila-tempest-plugin
|
||||||
|
- openstack/python-manilaclient
|
||||||
|
- openstack/tempest
|
||||||
|
vars:
|
||||||
|
tempest_test_regex: '^manila_tempest_tests.tests.scenario(?=.*\btest_write_data_to_share_created_from_snapshot\b.*)'
|
||||||
|
devstack_localrc:
|
||||||
|
MANILA_SERVICE_IMAGE_URL: "file:///home/zuul/src/opendev.org/openstack/manila-image-elements/manila-service-image.qcow2"
|
||||||
|
MANILA_SERVICE_IMAGE_NAME: manila-service-image
|
28
zuul.d/project.yaml
Normal file
28
zuul.d/project.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
- project:
|
||||||
|
templates:
|
||||||
|
- check-requirements
|
||||||
|
- build-openstack-docs-pti
|
||||||
|
- openstack-lower-constraints-jobs
|
||||||
|
check:
|
||||||
|
jobs:
|
||||||
|
- openstack-tox-pep8
|
||||||
|
- manila-image-elements-buildimages
|
||||||
|
- manila-image-elements-buildimage-docker
|
||||||
|
- manila-tempest-dsvm-container-scenario-custom-image:
|
||||||
|
voting: false
|
||||||
|
irrelevant-files: &irrelevant-files
|
||||||
|
- ^(test-|)requirements.txt$
|
||||||
|
- ^setup.cfg$
|
||||||
|
- ^.*\.rst$
|
||||||
|
- ^doc/.*$
|
||||||
|
- ^tox.ini$
|
||||||
|
- manila-image-elements-generic-scenario:
|
||||||
|
voting: false
|
||||||
|
irrelevant-files: *irrelevant-files
|
||||||
|
gate:
|
||||||
|
jobs:
|
||||||
|
- openstack-tox-pep8
|
||||||
|
- manila-image-elements-buildimages
|
||||||
|
post:
|
||||||
|
jobs:
|
||||||
|
- manila-image-elements-publish-artifacts
|
Loading…
Reference in New Issue
Block a user