From 6fec3f23566a6952215ef1e7250a9ea9ecd57f93 Mon Sep 17 00:00:00 2001 From: Raissa Sarmento Date: Tue, 17 Oct 2017 10:30:57 +0100 Subject: [PATCH] Migrating legacy jobs Moving legacy jobs from openstack-zuul-jobs to manila repository. In order for us to start reworking the legacy jobs to native v3 jobs, we need to do so. This is the first step as described in the manual and will also make it easier to remove the in-tree tempest plugin sooner. Change-Id: I7c9fbbb22860a2d246a9e6cb834f7c87875344f0 --- .zuul.yaml | 419 ++++++++++++++++++ .../legacy/grenade-dsvm-manila/post.yaml | 15 + playbooks/legacy/grenade-dsvm-manila/run.yaml | 65 +++ .../post.yaml | 15 + .../run.yaml | 108 +++++ .../post.yaml | 15 + .../run.yaml | 108 +++++ .../post.yaml | 15 + .../run.yaml | 108 +++++ .../post.yaml | 15 + .../run.yaml | 77 ++++ .../post.yaml | 15 + .../run.yaml | 77 ++++ .../post.yaml | 15 + .../run.yaml | 77 ++++ .../post.yaml | 15 + .../run.yaml | 76 ++++ .../legacy/manila-tempest-dsvm-hdfs/post.yaml | 15 + .../legacy/manila-tempest-dsvm-hdfs/run.yaml | 70 +++ .../post.yaml | 15 + .../run.yaml | 107 +++++ .../post.yaml | 15 + .../run.yaml | 108 +++++ .../post.yaml | 15 + .../run.yaml | 108 +++++ .../post.yaml | 15 + .../run.yaml | 108 +++++ .../manila-tempest-dsvm-scenario/post.yaml | 15 + .../manila-tempest-dsvm-scenario/run.yaml | 107 +++++ .../post.yaml | 15 + .../run.yaml | 95 ++++ .../post.yaml | 15 + .../run.yaml | 95 ++++ .../post.yaml | 15 + .../run.yaml | 94 ++++ .../post.yaml | 15 + .../run.yaml | 96 ++++ .../post.yaml | 15 + .../run.yaml | 102 +++++ .../post.yaml | 15 + .../run.yaml | 102 +++++ .../legacy/manila-tox-genconfig/post.yaml | 67 +++ .../legacy/manila-tox-genconfig/run.yaml | 86 ++++ .../post.yaml | 41 ++ .../run.yaml | 86 ++++ .../rally-dsvm-manila-multibackend/post.yaml | 41 ++ .../rally-dsvm-manila-multibackend/run.yaml | 85 ++++ 47 files changed, 3013 insertions(+) create mode 100644 .zuul.yaml create mode 100644 playbooks/legacy/grenade-dsvm-manila/post.yaml create mode 100644 playbooks/legacy/grenade-dsvm-manila/run.yaml create mode 100644 playbooks/legacy/manila-tempest-dsvm-container-scenario-custom-image/post.yaml create mode 100644 playbooks/legacy/manila-tempest-dsvm-container-scenario-custom-image/run.yaml create mode 100644 playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/post.yaml create mode 100644 playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/run.yaml create mode 100644 playbooks/legacy/manila-tempest-dsvm-generic-scenario-custom-image/post.yaml create mode 100644 playbooks/legacy/manila-tempest-dsvm-generic-scenario-custom-image/run.yaml create mode 100644 playbooks/legacy/manila-tempest-dsvm-glusterfs-native-heketi/post.yaml create mode 100644 playbooks/legacy/manila-tempest-dsvm-glusterfs-native-heketi/run.yaml create mode 100644 playbooks/legacy/manila-tempest-dsvm-glusterfs-native/post.yaml create mode 100644 playbooks/legacy/manila-tempest-dsvm-glusterfs-native/run.yaml create mode 100644 playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs-heketi/post.yaml create mode 100644 playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs-heketi/run.yaml create mode 100644 playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs/post.yaml create mode 100644 playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs/run.yaml create mode 100644 playbooks/legacy/manila-tempest-dsvm-hdfs/post.yaml create mode 100644 playbooks/legacy/manila-tempest-dsvm-hdfs/run.yaml create mode 100644 playbooks/legacy/manila-tempest-dsvm-mysql-generic/post.yaml create mode 100644 playbooks/legacy/manila-tempest-dsvm-mysql-generic/run.yaml create mode 100644 playbooks/legacy/manila-tempest-dsvm-postgres-container/post.yaml create mode 100644 playbooks/legacy/manila-tempest-dsvm-postgres-container/run.yaml create mode 100644 playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/post.yaml create mode 100644 playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/run.yaml create mode 100644 playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/post.yaml create mode 100644 playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/run.yaml create mode 100644 playbooks/legacy/manila-tempest-dsvm-scenario/post.yaml create mode 100644 playbooks/legacy/manila-tempest-dsvm-scenario/run.yaml create mode 100644 playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native-centos-7/post.yaml create mode 100644 playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native-centos-7/run.yaml create mode 100644 playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/post.yaml create mode 100644 playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/run.yaml create mode 100644 playbooks/legacy/manila-tempest-minimal-dsvm-dummy/post.yaml create mode 100644 playbooks/legacy/manila-tempest-minimal-dsvm-dummy/run.yaml create mode 100644 playbooks/legacy/manila-tempest-minimal-dsvm-lvm-centos-7/post.yaml create mode 100644 playbooks/legacy/manila-tempest-minimal-dsvm-lvm-centos-7/run.yaml create mode 100644 playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7/post.yaml create mode 100644 playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7/run.yaml create mode 100644 playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7/post.yaml create mode 100644 playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7/run.yaml create mode 100644 playbooks/legacy/manila-tox-genconfig/post.yaml create mode 100644 playbooks/legacy/manila-tox-genconfig/run.yaml create mode 100644 playbooks/legacy/rally-dsvm-manila-multibackend-no-ss/post.yaml create mode 100644 playbooks/legacy/rally-dsvm-manila-multibackend-no-ss/run.yaml create mode 100644 playbooks/legacy/rally-dsvm-manila-multibackend/post.yaml create mode 100644 playbooks/legacy/rally-dsvm-manila-multibackend/run.yaml diff --git a/.zuul.yaml b/.zuul.yaml new file mode 100644 index 0000000000..8fe0fce2de --- /dev/null +++ b/.zuul.yaml @@ -0,0 +1,419 @@ +- project: + name: openstack/manila + check: + jobs: + - manila-tox-genconfig + - manila-tempest-dsvm-mysql-generic: + voting: false + branches: ^(?!driverfixes/).*$ + - manila-tempest-dsvm-postgres-container: + voting: false + branches: ^(?!driverfixes/).*$ + - manila-tempest-dsvm-postgres-zfsonlinux: + voting: false + branches: ^(?!driverfixes/).*$ + - manila-tempest-dsvm-postgres-generic-singlebackend: + voting: false + branches: ^(?!driverfixes/).*$ + - manila-tempest-dsvm-generic-no-share-servers: + voting: false + branches: ^(?!driverfixes/).*$ + - manila-tempest-dsvm-scenario: + voting: false + branches: ^(?!driverfixes/).*$ + - manila-tempest-minimal-dsvm-cephfs-native-centos-7: + voting: false + branches: ^(?!driverfixes/).*$ + - manila-tempest-minimal-dsvm-cephfs-nfs-centos-7: + voting: false + branches: ^(?!(driverfixes|stable/(?:newton|ocata))).*$ + - manila-tempest-dsvm-glusterfs-nfs: + voting: false + branches: ^(?!driverfixes/).*$ + - manila-tempest-dsvm-glusterfs-native: + voting: false + branches: ^(?!driverfixes/).*$ + - manila-tempest-dsvm-hdfs: + voting: false + branches: ^(?!driverfixes/).*$ + - manila-tempest-minimal-dsvm-dummy: + branches: ^(?!driverfixes/).*$ + - manila-tempest-minimal-dsvm-lvm-centos-7: + branches: ^(?!(driverfixes|stable/newton)).*$ + - grenade-dsvm-manila: + voting: false + branches: ^(?!driverfixes/).*$ + - rally-dsvm-manila-multibackend: + voting: false + branches: ^(?!stable/newton|driverfixes/).*$ + - rally-dsvm-manila-multibackend-no-ss: + voting: false + branches: ^(?!stable/newton|driverfixes/).*$ + gate: + jobs: + - manila-tox-genconfig + - manila-tempest-minimal-dsvm-dummy: + branches: ^(?!driverfixes/).*$ + - manila-tempest-minimal-dsvm-lvm-centos-7: + branches: ^(?!(driverfixes|stable/newton)).*$ + experimental: + jobs: + - manila-tempest-dsvm-glusterfs-nfs: + voting: false + branches: ^(?!driverfixes/).*$ + - manila-tempest-dsvm-glusterfs-native: + voting: false + branches: ^(?!driverfixes/).*$ + - manila-tempest-dsvm-glusterfs-nfs-heketi: + voting: false + branches: ^(?!driverfixes/).*$ + - manila-tempest-dsvm-glusterfs-native-heketi: + voting: false + branches: ^(?!driverfixes/).*$ + +- job: + name: grenade-dsvm-manila + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-manila/run + post-run: playbooks/legacy/grenade-dsvm-manila/post + timeout: 10800 + irrelevant-files: + - ^(test-|)requirements.txt$ + - ^.*\.rst$ + - ^api-ref/.*$ + - ^doc/.*$ + - ^install-guide/.*$ + - ^manila/hacking/.*$ + - ^manila/tests/.*$ + - ^releasenotes/.*$ + - ^run_tests.sh$ + - ^setup.cfg$ + - ^tools/.*$ + - ^tox.ini$ + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/manila + - openstack/python-manilaclient + +- job: + name: legacy-manila-tempest-dsvm-base + parent: legacy-dsvm-base + irrelevant-files: + - ^(test-|)requirements.txt$ + - ^.*\.rst$ + - ^api-ref/.*$ + - ^doc/.*$ + - ^install-guide/.*$ + - ^manila/hacking/.*$ + - ^manila/tests/.*$ + - ^releasenotes/.*$ + - ^run_tests.sh$ + - ^setup.cfg$ + - ^tools/.*$ + - ^tox.ini$ + +- job: + name: manila-tempest-dsvm-container-scenario-custom-image + parent: legacy-manila-tempest-dsvm-base + run: playbooks/legacy/manila-tempest-dsvm-container-scenario-custom-image/run + post-run: playbooks/legacy/manila-tempest-dsvm-container-scenario-custom-image/post + timeout: 5400 + required-projects: + - openstack-infra/devstack-gate + - openstack/manila + - openstack/manila-image-elements + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: manila-tempest-dsvm-generic-no-share-servers + parent: legacy-manila-tempest-dsvm-base + run: playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/run + post-run: playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/post + timeout: 5400 + required-projects: + - openstack-infra/devstack-gate + - openstack/manila + - openstack/manila-image-elements + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: manila-tempest-dsvm-generic-scenario-custom-image + parent: legacy-manila-tempest-dsvm-base + run: playbooks/legacy/manila-tempest-dsvm-generic-scenario-custom-image/run + post-run: playbooks/legacy/manila-tempest-dsvm-generic-scenario-custom-image/post + timeout: 5400 + required-projects: + - openstack-infra/devstack-gate + - openstack/manila + - openstack/manila-image-elements + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: manila-tempest-dsvm-glusterfs-native + parent: legacy-manila-tempest-dsvm-base + run: playbooks/legacy/manila-tempest-dsvm-glusterfs-native/run + post-run: playbooks/legacy/manila-tempest-dsvm-glusterfs-native/post + timeout: 4800 + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-glusterfs + - openstack/manila + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: manila-tempest-dsvm-glusterfs-native-heketi + parent: legacy-manila-tempest-dsvm-base + run: playbooks/legacy/manila-tempest-dsvm-glusterfs-native-heketi/run + post-run: playbooks/legacy/manila-tempest-dsvm-glusterfs-native-heketi/post + timeout: 4800 + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-glusterfs + - openstack/manila + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: manila-tempest-dsvm-glusterfs-nfs + parent: legacy-manila-tempest-dsvm-base + run: playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs/run + post-run: playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs/post + timeout: 4800 + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-glusterfs + - openstack/manila + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: manila-tempest-dsvm-glusterfs-nfs-heketi + parent: legacy-manila-tempest-dsvm-base + run: playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs-heketi/run + post-run: playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs-heketi/post + timeout: 4800 + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-glusterfs + - openstack/manila + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: manila-tempest-dsvm-hdfs + parent: legacy-manila-tempest-dsvm-base + run: playbooks/legacy/manila-tempest-dsvm-hdfs/run + post-run: playbooks/legacy/manila-tempest-dsvm-hdfs/post + timeout: 4800 + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-hdfs + - openstack/manila + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: manila-tempest-dsvm-mysql-generic + parent: legacy-manila-tempest-dsvm-base + run: playbooks/legacy/manila-tempest-dsvm-mysql-generic/run + post-run: playbooks/legacy/manila-tempest-dsvm-mysql-generic/post + timeout: 5400 + required-projects: + - openstack-infra/devstack-gate + - openstack/manila + - openstack/manila-image-elements + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: manila-tempest-dsvm-postgres-container + parent: legacy-manila-tempest-dsvm-base + run: playbooks/legacy/manila-tempest-dsvm-postgres-container/run + post-run: playbooks/legacy/manila-tempest-dsvm-postgres-container/post + timeout: 5400 + required-projects: + - openstack-infra/devstack-gate + - openstack/manila + - openstack/manila-image-elements + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: manila-tempest-dsvm-postgres-generic-singlebackend + parent: legacy-manila-tempest-dsvm-base + run: playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/run + post-run: playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/post + timeout: 5400 + required-projects: + - openstack-infra/devstack-gate + - openstack/manila + - openstack/manila-image-elements + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: manila-tempest-dsvm-postgres-zfsonlinux + parent: legacy-manila-tempest-dsvm-base + run: playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/run + post-run: playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/post + timeout: 5400 + required-projects: + - openstack-infra/devstack-gate + - openstack/manila + - openstack/manila-image-elements + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: manila-tempest-dsvm-scenario + parent: legacy-manila-tempest-dsvm-base + run: playbooks/legacy/manila-tempest-dsvm-scenario/run + post-run: playbooks/legacy/manila-tempest-dsvm-scenario/post + timeout: 5400 + required-projects: + - openstack-infra/devstack-gate + - openstack/manila + - openstack/manila-image-elements + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: manila-tempest-minimal-dsvm-cephfs-native-centos-7 + parent: legacy-manila-tempest-dsvm-base + run: playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native-centos-7/run + post-run: playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native-centos-7/post + timeout: 5400 + nodeset: legacy-centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-ceph + - openstack/manila + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: manila-tempest-minimal-dsvm-cephfs-nfs-centos-7 + parent: legacy-manila-tempest-dsvm-base + run: playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/run + post-run: playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/post + timeout: 5400 + nodeset: legacy-centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-ceph + - openstack/manila + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: manila-tempest-minimal-dsvm-dummy + parent: legacy-manila-tempest-dsvm-base + run: playbooks/legacy/manila-tempest-minimal-dsvm-dummy/run + post-run: playbooks/legacy/manila-tempest-minimal-dsvm-dummy/post + timeout: 5400 + required-projects: + - openstack-infra/devstack-gate + - openstack/manila + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: manila-tempest-minimal-dsvm-lvm-centos-7 + parent: legacy-manila-tempest-dsvm-base + run: playbooks/legacy/manila-tempest-minimal-dsvm-lvm-centos-7/run + post-run: playbooks/legacy/manila-tempest-minimal-dsvm-lvm-centos-7/post + timeout: 5400 + nodeset: legacy-centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack/manila + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7 + parent: legacy-manila-tempest-dsvm-base + run: playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7/run + post-run: playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7/post + timeout: 5400 + nodeset: legacy-centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-ceph + - openstack/manila + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7 + parent: legacy-manila-tempest-dsvm-base + run: playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7/run + post-run: playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7/post + timeout: 5400 + nodeset: legacy-centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-ceph + - openstack/manila + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: manila-tox-genconfig + parent: legacy-base + run: playbooks/legacy/manila-tox-genconfig/run + post-run: playbooks/legacy/manila-tox-genconfig/post + timeout: 2400 + required-projects: + - openstack/requirements + +- job: + name: rally-dsvm-manila-multibackend + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-manila-multibackend/run + post-run: playbooks/legacy/rally-dsvm-manila-multibackend/post + timeout: 4200 + irrelevant-files: + - ^.*\.rst$ + - ^api-ref/.*$ + - ^doc/.*$ + - ^install-guide/.*$ + - ^manila/hacking/.*$ + - ^manila/tests/.*$ + - ^releasenotes/.*$ + - ^run_tests.sh$ + - ^tools/.*$ + - ^tox.ini$ + required-projects: + - openstack-infra/devstack-gate + - openstack/manila + - openstack/python-manilaclient + - openstack/rally + +- job: + name: rally-dsvm-manila-multibackend-no-ss + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-manila-multibackend-no-ss/run + post-run: playbooks/legacy/rally-dsvm-manila-multibackend-no-ss/post + timeout: 4200 + irrelevant-files: + - ^.*\.rst$ + - ^api-ref/.*$ + - ^doc/.*$ + - ^install-guide/.*$ + - ^manila/hacking/.*$ + - ^manila/tests/.*$ + - ^releasenotes/.*$ + - ^run_tests.sh$ + - ^tools/.*$ + - ^tox.ini$ + required-projects: + - openstack-infra/devstack-gate + - openstack/manila + - openstack/python-manilaclient + - openstack/rally diff --git a/playbooks/legacy/grenade-dsvm-manila/post.yaml b/playbooks/legacy/grenade-dsvm-manila/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-manila/post.yaml @@ -0,0 +1,15 @@ +- hosts: primary + tasks: + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-manila/run.yaml b/playbooks/legacy/grenade-dsvm-manila/run.yaml new file mode 100644 index 0000000000..8a7a812b95 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-manila/run.yaml @@ -0,0 +1,65 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-manila from old job gate-grenade-dsvm-manila-ubuntu-xenial-nv + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack-dev/grenade $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=0 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_GRENADE=pullup + + # Basic services needed for grenade manila job using dummy driver + export OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit + + # Enable manila grenade plugin. Provided repo should be + # cloned by zuul before devstack run and below provided + # link should not be used. + export GRENADE_PLUGINRC="enable_grenade_plugin manila git://git.openstack.org/openstack/manila" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + source $BASE/new/manila/contrib/ci/pre_test_hook.sh \ + True \ + dummy \ + multibackend + } + export -f pre_test_hook + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-container-scenario-custom-image/post.yaml b/playbooks/legacy/manila-tempest-dsvm-container-scenario-custom-image/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-container-scenario-custom-image/post.yaml @@ -0,0 +1,15 @@ +- hosts: primary + tasks: + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-dsvm-container-scenario-custom-image/run.yaml b/playbooks/legacy/manila-tempest-dsvm-container-scenario-custom-image/run.yaml new file mode 100644 index 0000000000..7d5d7978da --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-container-scenario-custom-image/run.yaml @@ -0,0 +1,108 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-dsvm-container-scenario-custom-image + from old job gate-manila-tempest-dsvm-container-scenario-custom-image-ubuntu-xenial-nv + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_POSTGRES=0 + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + + # Install manila-image-elements project for building custom image + if [[ container_with_custom_image == *"_with_custom_image" ]]; then + export PROJECTS="openstack/manila-image-elements $PROJECTS" + fi + export ENABLED_SERVICES=tempest + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Build custom image if needed + if [[ container_with_custom_image == *"_with_custom_image" ]]; then + current_dir=$(pwd) + + # Go to 'manila-image-elements' dir, build image and get its name + cd /opt/stack/new/manila-image-elements + ./tools/gate/build-images container_with_custom_image True + image_name=$(git ls-files --others --exclude-standard) + export MANILA_SERVICE_IMAGE_URL="http://localhost:80/public_html/$image_name" + export MANILA_SERVICE_IMAGE_NAME=$(basename -s .tar.gz $(basename -s .qcow2 $image_name)) + + # Return back to execution dir + cd $current_dir + fi + + # 'dhss' - acronym for 'Driver Handles Share Servers', + # defines mode of a share driver. Boolean-like. + # 'driver' - codename of a share driver to configure. + # 'back_end_type' - defines which installation Manila should + # have - either 'singlebackend' or 'multibackend'. + source $BASE/new/manila/contrib/ci/pre_test_hook.sh \ + 1 \ + container_with_custom_image \ + multibackend + } + export -f pre_test_hook + + function post_test_hook { + # 'back_end_type' - defines which installation Manila is + # configured to - either 'singlebackend' or 'multibackend'. + # 'driver' - codename of a share driver that is configured in + # Manila. It is used for enabling/disabling tests that are not + # supported by share driver that is used. + # 'test_type' - defines which set of test suites should be used, + # can have 'api' and 'scenario' values. + # 'postgres_enabled' - set of test suites depends on DB backend + # in some cases, so it is provided explicitely. Boolean-like. + source $BASE/new/manila/contrib/ci/post_test_hook.sh \ + multibackend \ + container_with_custom_image \ + scenario \ + 0 + } + export -f post_test_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/post.yaml b/playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/post.yaml @@ -0,0 +1,15 @@ +- hosts: primary + tasks: + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/run.yaml b/playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/run.yaml new file mode 100644 index 0000000000..28ec904550 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/run.yaml @@ -0,0 +1,108 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-dsvm-generic-no-share-servers from + old job gate-manila-tempest-dsvm-generic-no-share-servers-ubuntu-xenial-nv + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_POSTGRES=0 + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + + # Install manila-image-elements project for building custom image + if [[ generic == *"_with_custom_image" ]]; then + export PROJECTS="openstack/manila-image-elements $PROJECTS" + fi + export ENABLED_SERVICES=tempest + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Build custom image if needed + if [[ generic == *"_with_custom_image" ]]; then + current_dir=$(pwd) + + # Go to 'manila-image-elements' dir, build image and get its name + cd /opt/stack/new/manila-image-elements + ./tools/gate/build-images generic True + image_name=$(git ls-files --others --exclude-standard) + export MANILA_SERVICE_IMAGE_URL="http://localhost:80/public_html/$image_name" + export MANILA_SERVICE_IMAGE_NAME=$(basename -s .tar.gz $(basename -s .qcow2 $image_name)) + + # Return back to execution dir + cd $current_dir + fi + + # 'dhss' - acronym for 'Driver Handles Share Servers', + # defines mode of a share driver. Boolean-like. + # 'driver' - codename of a share driver to configure. + # 'back_end_type' - defines which installation Manila should + # have - either 'singlebackend' or 'multibackend'. + source $BASE/new/manila/contrib/ci/pre_test_hook.sh \ + 0 \ + generic \ + multibackend + } + export -f pre_test_hook + + function post_test_hook { + # 'back_end_type' - defines which installation Manila is + # configured to - either 'singlebackend' or 'multibackend'. + # 'driver' - codename of a share driver that is configured in + # Manila. It is used for enabling/disabling tests that are not + # supported by share driver that is used. + # 'test_type' - defines which set of test suites should be used, + # can have 'api' and 'scenario' values. + # 'postgres_enabled' - set of test suites depends on DB backend + # in some cases, so it is provided explicitely. Boolean-like. + source $BASE/new/manila/contrib/ci/post_test_hook.sh \ + multibackend \ + generic \ + api \ + 0 + } + export -f post_test_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-generic-scenario-custom-image/post.yaml b/playbooks/legacy/manila-tempest-dsvm-generic-scenario-custom-image/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-generic-scenario-custom-image/post.yaml @@ -0,0 +1,15 @@ +- hosts: primary + tasks: + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-dsvm-generic-scenario-custom-image/run.yaml b/playbooks/legacy/manila-tempest-dsvm-generic-scenario-custom-image/run.yaml new file mode 100644 index 0000000000..daa49cee9a --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-generic-scenario-custom-image/run.yaml @@ -0,0 +1,108 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-dsvm-generic-scenario-custom-image + from old job gate-manila-tempest-dsvm-generic-scenario-custom-image-ubuntu-xenial-nv + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_POSTGRES=0 + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + + # Install manila-image-elements project for building custom image + if [[ generic_with_custom_image == *"_with_custom_image" ]]; then + export PROJECTS="openstack/manila-image-elements $PROJECTS" + fi + export ENABLED_SERVICES=tempest + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Build custom image if needed + if [[ generic_with_custom_image == *"_with_custom_image" ]]; then + current_dir=$(pwd) + + # Go to 'manila-image-elements' dir, build image and get its name + cd /opt/stack/new/manila-image-elements + ./tools/gate/build-images generic_with_custom_image True + image_name=$(git ls-files --others --exclude-standard) + export MANILA_SERVICE_IMAGE_URL="http://localhost:80/public_html/$image_name" + export MANILA_SERVICE_IMAGE_NAME=$(basename -s .tar.gz $(basename -s .qcow2 $image_name)) + + # Return back to execution dir + cd $current_dir + fi + + # 'dhss' - acronym for 'Driver Handles Share Servers', + # defines mode of a share driver. Boolean-like. + # 'driver' - codename of a share driver to configure. + # 'back_end_type' - defines which installation Manila should + # have - either 'singlebackend' or 'multibackend'. + source $BASE/new/manila/contrib/ci/pre_test_hook.sh \ + 1 \ + generic_with_custom_image \ + multibackend + } + export -f pre_test_hook + + function post_test_hook { + # 'back_end_type' - defines which installation Manila is + # configured to - either 'singlebackend' or 'multibackend'. + # 'driver' - codename of a share driver that is configured in + # Manila. It is used for enabling/disabling tests that are not + # supported by share driver that is used. + # 'test_type' - defines which set of test suites should be used, + # can have 'api' and 'scenario' values. + # 'postgres_enabled' - set of test suites depends on DB backend + # in some cases, so it is provided explicitely. Boolean-like. + source $BASE/new/manila/contrib/ci/post_test_hook.sh \ + multibackend \ + generic_with_custom_image \ + scenario \ + 0 + } + export -f post_test_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-glusterfs-native-heketi/post.yaml b/playbooks/legacy/manila-tempest-dsvm-glusterfs-native-heketi/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-glusterfs-native-heketi/post.yaml @@ -0,0 +1,15 @@ +- hosts: primary + tasks: + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-dsvm-glusterfs-native-heketi/run.yaml b/playbooks/legacy/manila-tempest-dsvm-glusterfs-native-heketi/run.yaml new file mode 100644 index 0000000000..b905cf9bf4 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-glusterfs-native-heketi/run.yaml @@ -0,0 +1,77 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-dsvm-glusterfs-native-heketi from + old job gate-manila-tempest-dsvm-glusterfs-native-heketi-ubuntu-xenial-nv + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + # Enable devstack-plugin-glusterfs plugin, to install and configure GlusterFS. + enable_plugin devstack-plugin-glusterfs git://git.openstack.org/openstack/devstack-plugin-glusterfs + + # Configure devstack-plugin-glusterfs to enable GlusterFS as a backend for Manila. + CONFIGURE_GLUSTERFS_MANILA=True + + # Configure devstack-plugin-glusterfs to use respective GlusterFS driver variant. + GLUSTERFS_MANILA_DRIVER_TYPE=glusterfs-native-heketi + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export ENABLED_SERVICES=tempest + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + export PROJECTS="openstack/devstack-plugin-glusterfs $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Configure devstack to run manila installation without handling of share servers + source $BASE/new/devstack-plugin-glusterfs/manila/pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + # Configure and run tempest on singlebackend manila installation + source $BASE/new/devstack-plugin-glusterfs/manila/post_test_hook.sh singlebackend + } + export -f post_test_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-glusterfs-native/post.yaml b/playbooks/legacy/manila-tempest-dsvm-glusterfs-native/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-glusterfs-native/post.yaml @@ -0,0 +1,15 @@ +- hosts: primary + tasks: + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-dsvm-glusterfs-native/run.yaml b/playbooks/legacy/manila-tempest-dsvm-glusterfs-native/run.yaml new file mode 100644 index 0000000000..87d004ec3f --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-glusterfs-native/run.yaml @@ -0,0 +1,77 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-dsvm-glusterfs-native from old job + gate-manila-tempest-dsvm-glusterfs-native-ubuntu-xenial-nv + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + # Enable devstack-plugin-glusterfs plugin, to install and configure GlusterFS. + enable_plugin devstack-plugin-glusterfs git://git.openstack.org/openstack/devstack-plugin-glusterfs + + # Configure devstack-plugin-glusterfs to enable GlusterFS as a backend for Manila. + CONFIGURE_GLUSTERFS_MANILA=True + + # Configure devstack-plugin-glusterfs to use respective GlusterFS driver variant. + GLUSTERFS_MANILA_DRIVER_TYPE=glusterfs-native + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export ENABLED_SERVICES=tempest + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + export PROJECTS="openstack/devstack-plugin-glusterfs $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Configure devstack to run manila installation without handling of share servers + source $BASE/new/devstack-plugin-glusterfs/manila/pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + # Configure and run tempest on singlebackend manila installation + source $BASE/new/devstack-plugin-glusterfs/manila/post_test_hook.sh singlebackend + } + export -f post_test_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs-heketi/post.yaml b/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs-heketi/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs-heketi/post.yaml @@ -0,0 +1,15 @@ +- hosts: primary + tasks: + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs-heketi/run.yaml b/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs-heketi/run.yaml new file mode 100644 index 0000000000..09e269c2a2 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs-heketi/run.yaml @@ -0,0 +1,77 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-dsvm-glusterfs-nfs-heketi from old + job gate-manila-tempest-dsvm-glusterfs-nfs-heketi-ubuntu-xenial-nv + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + # Enable devstack-plugin-glusterfs plugin, to install and configure GlusterFS. + enable_plugin devstack-plugin-glusterfs git://git.openstack.org/openstack/devstack-plugin-glusterfs + + # Configure devstack-plugin-glusterfs to enable GlusterFS as a backend for Manila. + CONFIGURE_GLUSTERFS_MANILA=True + + # Configure devstack-plugin-glusterfs to use respective GlusterFS driver variant. + GLUSTERFS_MANILA_DRIVER_TYPE=glusterfs-nfs-heketi + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export ENABLED_SERVICES=tempest + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + export PROJECTS="openstack/devstack-plugin-glusterfs $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Configure devstack to run manila installation without handling of share servers + source $BASE/new/devstack-plugin-glusterfs/manila/pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + # Configure and run tempest on singlebackend manila installation + source $BASE/new/devstack-plugin-glusterfs/manila/post_test_hook.sh singlebackend + } + export -f post_test_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs/post.yaml b/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs/post.yaml @@ -0,0 +1,15 @@ +- hosts: primary + tasks: + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs/run.yaml b/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs/run.yaml new file mode 100644 index 0000000000..fc39c868bb --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-dsvm-glusterfs-nfs from old job gate-manila-tempest-dsvm-glusterfs-nfs-ubuntu-xenial-nv + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + # Enable devstack-plugin-glusterfs plugin, to install and configure GlusterFS. + enable_plugin devstack-plugin-glusterfs git://git.openstack.org/openstack/devstack-plugin-glusterfs + + # Configure devstack-plugin-glusterfs to enable GlusterFS as a backend for Manila. + CONFIGURE_GLUSTERFS_MANILA=True + + # Configure devstack-plugin-glusterfs to use respective GlusterFS driver variant. + GLUSTERFS_MANILA_DRIVER_TYPE=glusterfs-nfs + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export ENABLED_SERVICES=tempest + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + export PROJECTS="openstack/devstack-plugin-glusterfs $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Configure devstack to run manila installation without handling of share servers + source $BASE/new/devstack-plugin-glusterfs/manila/pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + # Configure and run tempest on singlebackend manila installation + source $BASE/new/devstack-plugin-glusterfs/manila/post_test_hook.sh singlebackend + } + export -f post_test_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-hdfs/post.yaml b/playbooks/legacy/manila-tempest-dsvm-hdfs/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-hdfs/post.yaml @@ -0,0 +1,15 @@ +- hosts: primary + tasks: + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-dsvm-hdfs/run.yaml b/playbooks/legacy/manila-tempest-dsvm-hdfs/run.yaml new file mode 100644 index 0000000000..20524053b5 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-hdfs/run.yaml @@ -0,0 +1,70 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-dsvm-hdfs from old job gate-manila-tempest-dsvm-hdfs-ubuntu-xenial-nv + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + # Enable devstack-plugin-hdfs plugin, to install and configure HDFS. + enable_plugin devstack-plugin-hdfs git://git.openstack.org/openstack/devstack-plugin-hdfs + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export ENABLED_SERVICES=tempest + export PROJECTS="openstack/devstack-plugin-hdfs $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Configure devstack to run manila installation without handling of share servers + source $BASE/new/devstack-plugin-hdfs/manila/pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + # Configure and run tempest on multi-backend manila installation + source $BASE/new/devstack-plugin-hdfs/manila/post_test_hook.sh + } + export -f post_test_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-mysql-generic/post.yaml b/playbooks/legacy/manila-tempest-dsvm-mysql-generic/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-mysql-generic/post.yaml @@ -0,0 +1,15 @@ +- hosts: primary + tasks: + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-dsvm-mysql-generic/run.yaml b/playbooks/legacy/manila-tempest-dsvm-mysql-generic/run.yaml new file mode 100644 index 0000000000..83de354dd7 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-mysql-generic/run.yaml @@ -0,0 +1,107 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-dsvm-mysql-generic from old job gate-manila-tempest-dsvm-mysql-generic-ubuntu-xenial-nv + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_POSTGRES=0 + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + + # Install manila-image-elements project for building custom image + if [[ generic == *"_with_custom_image" ]]; then + export PROJECTS="openstack/manila-image-elements $PROJECTS" + fi + export ENABLED_SERVICES=tempest + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Build custom image if needed + if [[ generic == *"_with_custom_image" ]]; then + current_dir=$(pwd) + + # Go to 'manila-image-elements' dir, build image and get its name + cd /opt/stack/new/manila-image-elements + ./tools/gate/build-images generic True + image_name=$(git ls-files --others --exclude-standard) + export MANILA_SERVICE_IMAGE_URL="http://localhost:80/public_html/$image_name" + export MANILA_SERVICE_IMAGE_NAME=$(basename -s .tar.gz $(basename -s .qcow2 $image_name)) + + # Return back to execution dir + cd $current_dir + fi + + # 'dhss' - acronym for 'Driver Handles Share Servers', + # defines mode of a share driver. Boolean-like. + # 'driver' - codename of a share driver to configure. + # 'back_end_type' - defines which installation Manila should + # have - either 'singlebackend' or 'multibackend'. + source $BASE/new/manila/contrib/ci/pre_test_hook.sh \ + 1 \ + generic \ + multibackend + } + export -f pre_test_hook + + function post_test_hook { + # 'back_end_type' - defines which installation Manila is + # configured to - either 'singlebackend' or 'multibackend'. + # 'driver' - codename of a share driver that is configured in + # Manila. It is used for enabling/disabling tests that are not + # supported by share driver that is used. + # 'test_type' - defines which set of test suites should be used, + # can have 'api' and 'scenario' values. + # 'postgres_enabled' - set of test suites depends on DB backend + # in some cases, so it is provided explicitely. Boolean-like. + source $BASE/new/manila/contrib/ci/post_test_hook.sh \ + multibackend \ + generic \ + api \ + 0 + } + export -f post_test_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-postgres-container/post.yaml b/playbooks/legacy/manila-tempest-dsvm-postgres-container/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-postgres-container/post.yaml @@ -0,0 +1,15 @@ +- hosts: primary + tasks: + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-dsvm-postgres-container/run.yaml b/playbooks/legacy/manila-tempest-dsvm-postgres-container/run.yaml new file mode 100644 index 0000000000..eba61e68d6 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-postgres-container/run.yaml @@ -0,0 +1,108 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-dsvm-postgres-container from old job + gate-manila-tempest-dsvm-postgres-container-ubuntu-xenial-nv + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_POSTGRES=1 + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + + # Install manila-image-elements project for building custom image + if [[ container == *"_with_custom_image" ]]; then + export PROJECTS="openstack/manila-image-elements $PROJECTS" + fi + export ENABLED_SERVICES=tempest + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Build custom image if needed + if [[ container == *"_with_custom_image" ]]; then + current_dir=$(pwd) + + # Go to 'manila-image-elements' dir, build image and get its name + cd /opt/stack/new/manila-image-elements + ./tools/gate/build-images container True + image_name=$(git ls-files --others --exclude-standard) + export MANILA_SERVICE_IMAGE_URL="http://localhost:80/public_html/$image_name" + export MANILA_SERVICE_IMAGE_NAME=$(basename -s .tar.gz $(basename -s .qcow2 $image_name)) + + # Return back to execution dir + cd $current_dir + fi + + # 'dhss' - acronym for 'Driver Handles Share Servers', + # defines mode of a share driver. Boolean-like. + # 'driver' - codename of a share driver to configure. + # 'back_end_type' - defines which installation Manila should + # have - either 'singlebackend' or 'multibackend'. + source $BASE/new/manila/contrib/ci/pre_test_hook.sh \ + 1 \ + container \ + multibackend + } + export -f pre_test_hook + + function post_test_hook { + # 'back_end_type' - defines which installation Manila is + # configured to - either 'singlebackend' or 'multibackend'. + # 'driver' - codename of a share driver that is configured in + # Manila. It is used for enabling/disabling tests that are not + # supported by share driver that is used. + # 'test_type' - defines which set of test suites should be used, + # can have 'api' and 'scenario' values. + # 'postgres_enabled' - set of test suites depends on DB backend + # in some cases, so it is provided explicitely. Boolean-like. + source $BASE/new/manila/contrib/ci/post_test_hook.sh \ + multibackend \ + container \ + api \ + 1 + } + export -f post_test_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/post.yaml b/playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/post.yaml @@ -0,0 +1,15 @@ +- hosts: primary + tasks: + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/run.yaml b/playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/run.yaml new file mode 100644 index 0000000000..9310e03fd3 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/run.yaml @@ -0,0 +1,108 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-dsvm-postgres-generic-singlebackend + from old job gate-manila-tempest-dsvm-postgres-generic-singlebackend-ubuntu-xenial-nv + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_POSTGRES=1 + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + + # Install manila-image-elements project for building custom image + if [[ generic == *"_with_custom_image" ]]; then + export PROJECTS="openstack/manila-image-elements $PROJECTS" + fi + export ENABLED_SERVICES=tempest + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Build custom image if needed + if [[ generic == *"_with_custom_image" ]]; then + current_dir=$(pwd) + + # Go to 'manila-image-elements' dir, build image and get its name + cd /opt/stack/new/manila-image-elements + ./tools/gate/build-images generic True + image_name=$(git ls-files --others --exclude-standard) + export MANILA_SERVICE_IMAGE_URL="http://localhost:80/public_html/$image_name" + export MANILA_SERVICE_IMAGE_NAME=$(basename -s .tar.gz $(basename -s .qcow2 $image_name)) + + # Return back to execution dir + cd $current_dir + fi + + # 'dhss' - acronym for 'Driver Handles Share Servers', + # defines mode of a share driver. Boolean-like. + # 'driver' - codename of a share driver to configure. + # 'back_end_type' - defines which installation Manila should + # have - either 'singlebackend' or 'multibackend'. + source $BASE/new/manila/contrib/ci/pre_test_hook.sh \ + 1 \ + generic \ + singlebackend + } + export -f pre_test_hook + + function post_test_hook { + # 'back_end_type' - defines which installation Manila is + # configured to - either 'singlebackend' or 'multibackend'. + # 'driver' - codename of a share driver that is configured in + # Manila. It is used for enabling/disabling tests that are not + # supported by share driver that is used. + # 'test_type' - defines which set of test suites should be used, + # can have 'api' and 'scenario' values. + # 'postgres_enabled' - set of test suites depends on DB backend + # in some cases, so it is provided explicitely. Boolean-like. + source $BASE/new/manila/contrib/ci/post_test_hook.sh \ + singlebackend \ + generic \ + api \ + 1 + } + export -f post_test_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/post.yaml b/playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/post.yaml @@ -0,0 +1,15 @@ +- hosts: primary + tasks: + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/run.yaml b/playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/run.yaml new file mode 100644 index 0000000000..c9f6c12e26 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/run.yaml @@ -0,0 +1,108 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-dsvm-postgres-zfsonlinux from old + job gate-manila-tempest-dsvm-postgres-zfsonlinux-ubuntu-xenial-nv + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_POSTGRES=1 + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + + # Install manila-image-elements project for building custom image + if [[ zfsonlinux == *"_with_custom_image" ]]; then + export PROJECTS="openstack/manila-image-elements $PROJECTS" + fi + export ENABLED_SERVICES=tempest + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Build custom image if needed + if [[ zfsonlinux == *"_with_custom_image" ]]; then + current_dir=$(pwd) + + # Go to 'manila-image-elements' dir, build image and get its name + cd /opt/stack/new/manila-image-elements + ./tools/gate/build-images zfsonlinux True + image_name=$(git ls-files --others --exclude-standard) + export MANILA_SERVICE_IMAGE_URL="http://localhost:80/public_html/$image_name" + export MANILA_SERVICE_IMAGE_NAME=$(basename -s .tar.gz $(basename -s .qcow2 $image_name)) + + # Return back to execution dir + cd $current_dir + fi + + # 'dhss' - acronym for 'Driver Handles Share Servers', + # defines mode of a share driver. Boolean-like. + # 'driver' - codename of a share driver to configure. + # 'back_end_type' - defines which installation Manila should + # have - either 'singlebackend' or 'multibackend'. + source $BASE/new/manila/contrib/ci/pre_test_hook.sh \ + 0 \ + zfsonlinux \ + multibackend + } + export -f pre_test_hook + + function post_test_hook { + # 'back_end_type' - defines which installation Manila is + # configured to - either 'singlebackend' or 'multibackend'. + # 'driver' - codename of a share driver that is configured in + # Manila. It is used for enabling/disabling tests that are not + # supported by share driver that is used. + # 'test_type' - defines which set of test suites should be used, + # can have 'api' and 'scenario' values. + # 'postgres_enabled' - set of test suites depends on DB backend + # in some cases, so it is provided explicitely. Boolean-like. + source $BASE/new/manila/contrib/ci/post_test_hook.sh \ + multibackend \ + zfsonlinux \ + api \ + 1 + } + export -f post_test_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-scenario/post.yaml b/playbooks/legacy/manila-tempest-dsvm-scenario/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-scenario/post.yaml @@ -0,0 +1,15 @@ +- hosts: primary + tasks: + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-dsvm-scenario/run.yaml b/playbooks/legacy/manila-tempest-dsvm-scenario/run.yaml new file mode 100644 index 0000000000..a54560e260 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-scenario/run.yaml @@ -0,0 +1,107 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-dsvm-scenario from old job gate-manila-tempest-dsvm-scenario-ubuntu-xenial-nv + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_POSTGRES=0 + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + + # Install manila-image-elements project for building custom image + if [[ generic == *"_with_custom_image" ]]; then + export PROJECTS="openstack/manila-image-elements $PROJECTS" + fi + export ENABLED_SERVICES=tempest + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Build custom image if needed + if [[ generic == *"_with_custom_image" ]]; then + current_dir=$(pwd) + + # Go to 'manila-image-elements' dir, build image and get its name + cd /opt/stack/new/manila-image-elements + ./tools/gate/build-images generic True + image_name=$(git ls-files --others --exclude-standard) + export MANILA_SERVICE_IMAGE_URL="http://localhost:80/public_html/$image_name" + export MANILA_SERVICE_IMAGE_NAME=$(basename -s .tar.gz $(basename -s .qcow2 $image_name)) + + # Return back to execution dir + cd $current_dir + fi + + # 'dhss' - acronym for 'Driver Handles Share Servers', + # defines mode of a share driver. Boolean-like. + # 'driver' - codename of a share driver to configure. + # 'back_end_type' - defines which installation Manila should + # have - either 'singlebackend' or 'multibackend'. + source $BASE/new/manila/contrib/ci/pre_test_hook.sh \ + 1 \ + generic \ + multibackend + } + export -f pre_test_hook + + function post_test_hook { + # 'back_end_type' - defines which installation Manila is + # configured to - either 'singlebackend' or 'multibackend'. + # 'driver' - codename of a share driver that is configured in + # Manila. It is used for enabling/disabling tests that are not + # supported by share driver that is used. + # 'test_type' - defines which set of test suites should be used, + # can have 'api' and 'scenario' values. + # 'postgres_enabled' - set of test suites depends on DB backend + # in some cases, so it is provided explicitely. Boolean-like. + source $BASE/new/manila/contrib/ci/post_test_hook.sh \ + multibackend \ + generic \ + scenario \ + 0 + } + export -f post_test_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native-centos-7/post.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native-centos-7/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: primary + tasks: + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native-centos-7/run.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native-centos-7/run.yaml new file mode 100644 index 0000000000..07b530a352 --- /dev/null +++ b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native-centos-7/run.yaml @@ -0,0 +1,95 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-minimal-dsvm-cephfs-native-centos-7 + from old job gate-manila-tempest-minimal-dsvm-cephfs-native-centos-7-nv + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + SKIP_EPEL_INSTALL=True + enable_plugin manila git://git.openstack.org/openstack/manila + + enable_plugin devstack-plugin-ceph git://git.openstack.org/openstack/devstack-plugin-ceph + + # Enable CephFS as the backend for Manila. + ENABLE_CEPH_MANILA=True + + # Disable Ceph as the storage backend for Nova. + ENABLE_CEPH_NOVA=False + + # Disable Ceph as the storage backend for Glance. + ENABLE_CEPH_GLANCE=False + + # Disable Ceph as the storage backend for Cinder. + ENABLE_CEPH_CINDER=False + + # Disable Ceph as the storage backend for Cinder backup. + ENABLE_CEPH_C_BAK=False + + # Set native or NFS variant of ceph driver + MANILA_CEPH_DRIVER=cephfsnative + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export ENABLED_SERVICES=tempest + export PROJECTS="openstack/devstack-plugin-ceph $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Configure Manila with a CephFS Native or NFS driver backend. + # Refer to job-template pre_test_hook for more details on the + # arguments. + source $BASE/new/devstack-plugin-ceph/manila/pre_test_hook.sh \ + false cephfsnative singlebackend + } + export -f pre_test_hook + + function post_test_hook { + # Configure and run Tempest API tests on Manila with a + # CephFSNative driver backend. + # Refer to job-template post_test_hook for more details on the + # arguments. + source $BASE/new/devstack-plugin-ceph/manila/post_test_hook.sh \ + singlebackend cephfsnative api + } + export -f post_test_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/post.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: primary + tasks: + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/run.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/run.yaml new file mode 100644 index 0000000000..74727b26a7 --- /dev/null +++ b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/run.yaml @@ -0,0 +1,95 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-minimal-dsvm-cephfs-nfs-centos-7 from + old job gate-manila-tempest-minimal-dsvm-cephfs-nfs-centos-7-nv + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + SKIP_EPEL_INSTALL=True + enable_plugin manila git://git.openstack.org/openstack/manila + + enable_plugin devstack-plugin-ceph git://git.openstack.org/openstack/devstack-plugin-ceph + + # Enable CephFS as the backend for Manila. + ENABLE_CEPH_MANILA=True + + # Disable Ceph as the storage backend for Nova. + ENABLE_CEPH_NOVA=False + + # Disable Ceph as the storage backend for Glance. + ENABLE_CEPH_GLANCE=False + + # Disable Ceph as the storage backend for Cinder. + ENABLE_CEPH_CINDER=False + + # Disable Ceph as the storage backend for Cinder backup. + ENABLE_CEPH_C_BAK=False + + # Set native or NFS variant of ceph driver + MANILA_CEPH_DRIVER=cephfsnfs + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export ENABLED_SERVICES=tempest + export PROJECTS="openstack/devstack-plugin-ceph $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Configure Manila with a CephFS Native or NFS driver backend. + # Refer to job-template pre_test_hook for more details on the + # arguments. + source $BASE/new/devstack-plugin-ceph/manila/pre_test_hook.sh \ + false cephfsnfs singlebackend + } + export -f pre_test_hook + + function post_test_hook { + # Configure and run Tempest API tests on Manila with a + # CephFSNative driver backend. + # Refer to job-template post_test_hook for more details on the + # arguments. + source $BASE/new/devstack-plugin-ceph/manila/post_test_hook.sh \ + singlebackend cephfsnfs api + } + export -f post_test_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-dummy/post.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-dummy/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/manila-tempest-minimal-dsvm-dummy/post.yaml @@ -0,0 +1,15 @@ +- hosts: primary + tasks: + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-dummy/run.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-dummy/run.yaml new file mode 100644 index 0000000000..1e7ea355ec --- /dev/null +++ b/playbooks/legacy/manila-tempest-minimal-dsvm-dummy/run.yaml @@ -0,0 +1,94 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-minimal-dsvm-dummy from old job gate-manila-tempest-minimal-dsvm-dummy-ubuntu-xenial + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + # Basic services needed for minimal job + OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit,tempest + if [ "dummy" == "lvm" ]; then + # Enable glance for scenario tests + OVERRIDE_ENABLED_SERVICES+=,g-api,g-reg + # Enable nova for scenario tests + OVERRIDE_ENABLED_SERVICES+=,n-api,n-cpu,n-cond,n-sch,n-crt,n-cauth,n-obj + # Enable neutron for scenario tests + OVERRIDE_ENABLED_SERVICES+=,q-svc,q-dhcp,q-meta,q-l3,q-agt + + # Enable mandatory placement services for nova starting with ocata + if [[ "stable/newton" != $ZUUL_BRANCH ]]; then + OVERRIDE_ENABLED_SERVICES+=,placement-api,placement-client + fi + fi + export OVERRIDE_ENABLED_SERVICES + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # 'dhss' - acronym for 'Driver Handles Share Servers', + # defines mode of a share driver. Boolean-like. + # 'driver' - codename of a share driver to configure. + # 'back_end_type' - defines which installation Manila should + # have - either 'singlebackend' or 'multibackend'. + source $BASE/new/manila/contrib/ci/pre_test_hook.sh False dummy multibackend + } + export -f pre_test_hook + + function post_test_hook { + # 'back_end_type' - defines which installation Manila is + # configured to - either 'singlebackend' or 'multibackend'. + # 'driver' - codename of a share driver that is configured in + # Manila. It is used for enabling/disabling tests that are not + # supported by share driver that is used. + # 'test_type' - defines which set of test suites should be used, + # can have 'api' and 'scenario' values. + # 'postgres_enabled' - set of test suites depends on DB backend + # in some cases, so it is provided explicitely. Boolean-like. + source $BASE/new/manila/contrib/ci/post_test_hook.sh multibackend dummy api False + } + export -f post_test_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-lvm-centos-7/post.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-lvm-centos-7/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/manila-tempest-minimal-dsvm-lvm-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: primary + tasks: + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-lvm-centos-7/run.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-lvm-centos-7/run.yaml new file mode 100644 index 0000000000..7b4603a4cf --- /dev/null +++ b/playbooks/legacy/manila-tempest-minimal-dsvm-lvm-centos-7/run.yaml @@ -0,0 +1,96 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-minimal-dsvm-lvm-centos-7 from old + job gate-manila-tempest-minimal-dsvm-lvm-centos-7 + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + SKIP_EPEL_INSTALL=True + enable_plugin manila git://git.openstack.org/openstack/manila + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + # Basic services needed for minimal job + OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit,tempest + if [ "lvm" == "lvm" ]; then + # Enable glance for scenario tests + OVERRIDE_ENABLED_SERVICES+=,g-api,g-reg + # Enable nova for scenario tests + OVERRIDE_ENABLED_SERVICES+=,n-api,n-cpu,n-cond,n-sch,n-crt,n-cauth,n-obj + # Enable neutron for scenario tests + OVERRIDE_ENABLED_SERVICES+=,q-svc,q-dhcp,q-meta,q-l3,q-agt + + # Enable mandatory placement services for nova starting with ocata + if [[ "stable/newton" != $ZUUL_BRANCH ]]; then + OVERRIDE_ENABLED_SERVICES+=,placement-api,placement-client + fi + fi + export OVERRIDE_ENABLED_SERVICES + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # 'dhss' - acronym for 'Driver Handles Share Servers', + # defines mode of a share driver. Boolean-like. + # 'driver' - codename of a share driver to configure. + # 'back_end_type' - defines which installation Manila should + # have - either 'singlebackend' or 'multibackend'. + source $BASE/new/manila/contrib/ci/pre_test_hook.sh False lvm multibackend + } + export -f pre_test_hook + + function post_test_hook { + # 'back_end_type' - defines which installation Manila is + # configured to - either 'singlebackend' or 'multibackend'. + # 'driver' - codename of a share driver that is configured in + # Manila. It is used for enabling/disabling tests that are not + # supported by share driver that is used. + # 'test_type' - defines which set of test suites should be used, + # can have 'api' and 'scenario' values. + # 'postgres_enabled' - set of test suites depends on DB backend + # in some cases, so it is provided explicitely. Boolean-like. + source $BASE/new/manila/contrib/ci/post_test_hook.sh multibackend lvm api False + } + export -f post_test_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7/post.yaml b/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: primary + tasks: + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7/run.yaml b/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7/run.yaml new file mode 100644 index 0000000000..9c1bce8185 --- /dev/null +++ b/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7/run.yaml @@ -0,0 +1,102 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7 + from old job gate-manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7-nv + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + SKIP_EPEL_INSTALL=True + + # swift is not ready for python3 yet + disable_service s-account + disable_service s-container + disable_service s-object + disable_service s-proxy + + enable_plugin manila git://git.openstack.org/openstack/manila + + enable_plugin devstack-plugin-ceph git://git.openstack.org/openstack/devstack-plugin-ceph + + # Enable CephFS as the backend for Manila. + ENABLE_CEPH_MANILA=True + + # Disable Ceph as the storage backend for Nova. + ENABLE_CEPH_NOVA=False + + # Disable Ceph as the storage backend for Glance. + ENABLE_CEPH_GLANCE=False + + # Disable Ceph as the storage backend for Cinder. + ENABLE_CEPH_CINDER=False + + # Disable Ceph as the storage backend for Cinder backup. + ENABLE_CEPH_C_BAK=False + + # Set native or NFS variant of ceph driver + MANILA_CEPH_DRIVER=cephfsnative + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export DEVSTACK_GATE_USE_PYTHON3=True + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export ENABLED_SERVICES=tempest + export PROJECTS="openstack/python-manilaclient openstack/devstack-plugin-ceph $PROJECTS" + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Configure Manila with a CephFS Native or NFS driver backend. + # Refer to job-template pre_test_hook for more details on the + # arguments. + source $BASE/new/devstack-plugin-ceph/manila/pre_test_hook.sh \ + false cephfsnative singlebackend + } + export -f pre_test_hook + + function post_test_hook { + # Configure and run Tempest API tests on Manila with a + # CephFSNative driver backend. + # Refer to job-template post_test_hook for more details on the + # arguments. + source $BASE/new/devstack-plugin-ceph/manila/post_test_hook.sh \ + singlebackend cephfsnative api + } + export -f post_test_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7/post.yaml b/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: primary + tasks: + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7/run.yaml b/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7/run.yaml new file mode 100644 index 0000000000..8e909eaac4 --- /dev/null +++ b/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7/run.yaml @@ -0,0 +1,102 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7 + from old job gate-manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7-nv + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + SKIP_EPEL_INSTALL=True + + # swift is not ready for python3 yet + disable_service s-account + disable_service s-container + disable_service s-object + disable_service s-proxy + + enable_plugin manila git://git.openstack.org/openstack/manila + + enable_plugin devstack-plugin-ceph git://git.openstack.org/openstack/devstack-plugin-ceph + + # Enable CephFS as the backend for Manila. + ENABLE_CEPH_MANILA=True + + # Disable Ceph as the storage backend for Nova. + ENABLE_CEPH_NOVA=False + + # Disable Ceph as the storage backend for Glance. + ENABLE_CEPH_GLANCE=False + + # Disable Ceph as the storage backend for Cinder. + ENABLE_CEPH_CINDER=False + + # Disable Ceph as the storage backend for Cinder backup. + ENABLE_CEPH_C_BAK=False + + # Set native or NFS variant of ceph driver + MANILA_CEPH_DRIVER=cephfsnfs + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export DEVSTACK_GATE_USE_PYTHON3=True + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export ENABLED_SERVICES=tempest + export PROJECTS="openstack/python-manilaclient openstack/devstack-plugin-ceph $PROJECTS" + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Configure Manila with a CephFS Native or NFS driver backend. + # Refer to job-template pre_test_hook for more details on the + # arguments. + source $BASE/new/devstack-plugin-ceph/manila/pre_test_hook.sh \ + false cephfsnfs singlebackend + } + export -f pre_test_hook + + function post_test_hook { + # Configure and run Tempest API tests on Manila with a + # CephFSNative driver backend. + # Refer to job-template post_test_hook for more details on the + # arguments. + source $BASE/new/devstack-plugin-ceph/manila/post_test_hook.sh \ + singlebackend cephfsnfs api + } + export -f post_test_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tox-genconfig/post.yaml b/playbooks/legacy/manila-tox-genconfig/post.yaml new file mode 100644 index 0000000000..68fbdf81bf --- /dev/null +++ b/playbooks/legacy/manila-tox-genconfig/post.yaml @@ -0,0 +1,67 @@ +- hosts: primary + tasks: + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tox-genconfig/run.yaml b/playbooks/legacy/manila-tox-genconfig/run.yaml new file mode 100644 index 0000000000..c602bac42f --- /dev/null +++ b/playbooks/legacy/manila-tox-genconfig/run.yaml @@ -0,0 +1,86 @@ +- hosts: all + name: Autoconverted job legacy-manila-tox-genconfig from old job gate-manila-tox-genconfig-ubuntu-xenial + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/zuul + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh genconfig + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-manila-multibackend-no-ss/post.yaml b/playbooks/legacy/rally-dsvm-manila-multibackend-no-ss/post.yaml new file mode 100644 index 0000000000..4c699fc12a --- /dev/null +++ b/playbooks/legacy/rally-dsvm-manila-multibackend-no-ss/post.yaml @@ -0,0 +1,41 @@ +- hosts: primary + tasks: + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-manila-multibackend-no-ss/run.yaml b/playbooks/legacy/rally-dsvm-manila-multibackend-no-ss/run.yaml new file mode 100644 index 0000000000..8561abb171 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-manila-multibackend-no-ss/run.yaml @@ -0,0 +1,86 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-manila-multibackend-no-ss from old job + gate-rally-dsvm-manila-multibackend-no-ss + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + enable_plugin rally git://git.openstack.org/openstack/rally + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + + # Run only manila services, because only main manila functionality + # will be tested with 'dummy' share driver that does not use real + # storage back ends. Also, it will speed up devstack installation. + export OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit + + export IDENTITY_API_VERSION=3 + + export DEVSTACK_GATE_NEUTRON=1 + export RALLY_SCENARIO=rally-manila-no-ss + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Install manila-devstack integration + # 'dhss' means 'drivers handle share servers' + # 'driver' is codename of shar driver in manila + # that is used for proper configuration of storage backend. + source $BASE/new/manila/contrib/ci/pre_test_hook.sh 0 dummy 'multibackend' + } + export -f pre_test_hook + + function post_test_hook { + source $BASE/new/manila/contrib/ci/common.sh + manila_wait_for_drivers_init /etc/manila/manila.conf + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-manila-multibackend/post.yaml b/playbooks/legacy/rally-dsvm-manila-multibackend/post.yaml new file mode 100644 index 0000000000..4c699fc12a --- /dev/null +++ b/playbooks/legacy/rally-dsvm-manila-multibackend/post.yaml @@ -0,0 +1,41 @@ +- hosts: primary + tasks: + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-manila-multibackend/run.yaml b/playbooks/legacy/rally-dsvm-manila-multibackend/run.yaml new file mode 100644 index 0000000000..6b250cff22 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-manila-multibackend/run.yaml @@ -0,0 +1,85 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-manila-multibackend from old job gate-rally-dsvm-manila-multibackend + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + enable_plugin rally git://git.openstack.org/openstack/rally + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + + # Run only manila services, because only main manila functionality + # will be tested with 'dummy' share driver that does not use real + # storage back ends. Also, it will speed up devstack installation. + export OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit + + export IDENTITY_API_VERSION=3 + + export DEVSTACK_GATE_NEUTRON=1 + export RALLY_SCENARIO=rally-manila + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Install manila-devstack integration + # 'dhss' means 'drivers handle share servers' + # 'driver' is codename of shar driver in manila + # that is used for proper configuration of storage backend. + source $BASE/new/manila/contrib/ci/pre_test_hook.sh 1 dummy 'multibackend' + } + export -f pre_test_hook + + function post_test_hook { + source $BASE/new/manila/contrib/ci/common.sh + manila_wait_for_drivers_init /etc/manila/manila.conf + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}'