From a4784a0753eb26e8e92b3b813ca8d2af0c01e933 Mon Sep 17 00:00:00 2001 From: Chandan Kumar Date: Mon, 25 Dec 2017 16:02:25 +0530 Subject: [PATCH] Move legacy trove zuul jobs to trove project Change-Id: I58e6a5e6c8ce6eb660729cabe6bbcd7d2746129a --- .zuul.yaml | 201 ++++++++++++++++++ .../trove-functional-dsvm-mysql/post.yaml | 15 ++ .../trove-functional-dsvm-mysql/run.yaml | 71 +++++++ .../post.yaml | 15 ++ .../run.yaml | 72 +++++++ .../post.yaml | 15 ++ .../run.yaml | 72 +++++++ .../trove-scenario-dsvm-mysql-multi/post.yaml | 15 ++ .../trove-scenario-dsvm-mysql-multi/run.yaml | 72 +++++++ .../post.yaml | 15 ++ .../trove-scenario-dsvm-mysql-single/run.yaml | 72 +++++++ .../post.yaml | 15 ++ .../run.yaml | 73 +++++++ .../post.yaml | 15 ++ .../run.yaml | 73 +++++++ .../trove-scenario-dsvm-pxc-multi/post.yaml | 15 ++ .../trove-scenario-dsvm-pxc-multi/run.yaml | 72 +++++++ .../trove-scenario-dsvm-pxc-single/post.yaml | 15 ++ .../trove-scenario-dsvm-pxc-single/run.yaml | 72 +++++++ .../trove-scenario-dsvm-redis-multi/post.yaml | 15 ++ .../trove-scenario-dsvm-redis-multi/run.yaml | 72 +++++++ .../post.yaml | 15 ++ .../trove-scenario-dsvm-redis-single/run.yaml | 72 +++++++ 23 files changed, 1159 insertions(+) create mode 100644 .zuul.yaml create mode 100644 playbooks/legacy/trove-functional-dsvm-mysql/post.yaml create mode 100644 playbooks/legacy/trove-functional-dsvm-mysql/run.yaml create mode 100644 playbooks/legacy/trove-scenario-dsvm-mariadb-multi/post.yaml create mode 100644 playbooks/legacy/trove-scenario-dsvm-mariadb-multi/run.yaml create mode 100644 playbooks/legacy/trove-scenario-dsvm-mariadb-single/post.yaml create mode 100644 playbooks/legacy/trove-scenario-dsvm-mariadb-single/run.yaml create mode 100644 playbooks/legacy/trove-scenario-dsvm-mysql-multi/post.yaml create mode 100644 playbooks/legacy/trove-scenario-dsvm-mysql-multi/run.yaml create mode 100644 playbooks/legacy/trove-scenario-dsvm-mysql-single/post.yaml create mode 100644 playbooks/legacy/trove-scenario-dsvm-mysql-single/run.yaml create mode 100644 playbooks/legacy/trove-scenario-dsvm-postgresql-multi/post.yaml create mode 100644 playbooks/legacy/trove-scenario-dsvm-postgresql-multi/run.yaml create mode 100644 playbooks/legacy/trove-scenario-dsvm-postgresql-single/post.yaml create mode 100644 playbooks/legacy/trove-scenario-dsvm-postgresql-single/run.yaml create mode 100644 playbooks/legacy/trove-scenario-dsvm-pxc-multi/post.yaml create mode 100644 playbooks/legacy/trove-scenario-dsvm-pxc-multi/run.yaml create mode 100644 playbooks/legacy/trove-scenario-dsvm-pxc-single/post.yaml create mode 100644 playbooks/legacy/trove-scenario-dsvm-pxc-single/run.yaml create mode 100644 playbooks/legacy/trove-scenario-dsvm-redis-multi/post.yaml create mode 100644 playbooks/legacy/trove-scenario-dsvm-redis-multi/run.yaml create mode 100644 playbooks/legacy/trove-scenario-dsvm-redis-single/post.yaml create mode 100644 playbooks/legacy/trove-scenario-dsvm-redis-single/run.yaml diff --git a/.zuul.yaml b/.zuul.yaml new file mode 100644 index 0000000000..d24ae21b02 --- /dev/null +++ b/.zuul.yaml @@ -0,0 +1,201 @@ +- project: + name: openstack/trove + check: + jobs: + - trove-functional-dsvm-mysql + - trove-scenario-dsvm-mariadb-single: + voting: false + - trove-scenario-dsvm-mariadb-multi: + voting: false + - trove-scenario-dsvm-mysql-single + - trove-scenario-dsvm-mysql-multi + - trove-scenario-dsvm-postgresql-single: + voting: false + - trove-scenario-dsvm-postgresql-multi: + voting: false + - trove-scenario-dsvm-pxc-single: + voting: false + - trove-scenario-dsvm-pxc-multi: + voting: false + - trove-scenario-dsvm-redis-single: + voting: false + - trove-scenario-dsvm-redis-multi: + voting: false + - trove-tox-fakemodetests + - trove-tox-apiexamples + gate: + queue: trove + jobs: + - trove-functional-dsvm-mysql + - trove-scenario-dsvm-mysql-single + - trove-scenario-dsvm-mysql-multi + - trove-tox-fakemodetests + - trove-tox-apiexamples + +- job: + name: trove-functional-dsvm-mysql + parent: legacy-dsvm-base + run: playbooks/legacy/trove-functional-dsvm-mysql/run.yaml + post-run: playbooks/legacy/trove-functional-dsvm-mysql/post.yaml + timeout: 10800 + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: trove-scenario-dsvm-mariadb-single + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-mariadb-single/run.yaml + post-run: playbooks/legacy/trove-scenario-dsvm-mariadb-single/post.yaml + timeout: 10800 + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: trove-scenario-dsvm-mariadb-multi + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-mariadb-multi/run.yaml + post-run: playbooks/legacy/trove-scenario-dsvm-mariadb-multi/post.yaml + timeout: 10800 + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: trove-scenario-dsvm-mysql-single + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-mysql-single/run.yaml + post-run: playbooks/legacy/trove-scenario-dsvm-mysql-single/post.yaml + timeout: 10800 + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: trove-scenario-dsvm-mysql-multi + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-mysql-multi/run.yaml + post-run: playbooks/legacy/trove-scenario-dsvm-mysql-multi/post.yaml + timeout: 10800 + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: trove-scenario-dsvm-postgresql-single + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-postgresql-single/run.yaml + post-run: playbooks/legacy/trove-scenario-dsvm-postgresql-single/post.yaml + timeout: 10800 + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: trove-scenario-dsvm-postgresql-multi + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-postgresql-multi/run.yaml + post-run: playbooks/legacy/trove-scenario-dsvm-postgresql-multi/post.yaml + timeout: 10800 + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + + +- job: + name: trove-scenario-dsvm-pxc-single + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-pxc-single/run.yaml + post-run: playbooks/legacy/trove-scenario-dsvm-pxc-single/post.yaml + timeout: 10800 + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: trove-scenario-dsvm-pxc-multi + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-pxc-multi/run.yaml + post-run: playbooks/legacy/trove-scenario-dsvm-pxc-multi/post.yaml + timeout: 10800 + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: trove-scenario-dsvm-redis-single + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-redis-single/run.yaml + post-run: playbooks/legacy/trove-scenario-dsvm-redis-single/post.yaml + timeout: 10800 + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + + +- job: + name: trove-scenario-dsvm-redis-multi + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-redis-multi/run.yaml + post-run: playbooks/legacy/trove-scenario-dsvm-redis-multi/post.yaml + timeout: 10800 + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: trove-tox-fakemodetests + parent: openstack-tox-py27 + vars: + tox_envlist: fakemodetests + +- job: + name: trove-tox-apiexamples + parent: openstack-tox-py27 + vars: + tox_envlist: apiexamples diff --git a/playbooks/legacy/trove-functional-dsvm-mysql/post.yaml b/playbooks/legacy/trove-functional-dsvm-mysql/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/trove-functional-dsvm-mysql/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/trove-functional-dsvm-mysql/run.yaml b/playbooks/legacy/trove-functional-dsvm-mysql/run.yaml new file mode 100644 index 0000000000..d04890e1b8 --- /dev/null +++ b/playbooks/legacy/trove-functional-dsvm-mysql/run.yaml @@ -0,0 +1,71 @@ +- hosts: all + name: Autoconverted job legacy-trove-legacy-functional-dsvm-mysql from old job gate-trove-legacy-functional-dsvm-mysql + 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 trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests mysql + } + export -f post_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/trove-scenario-dsvm-mariadb-multi/post.yaml b/playbooks/legacy/trove-scenario-dsvm-mariadb-multi/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-mariadb-multi/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/trove-scenario-dsvm-mariadb-multi/run.yaml b/playbooks/legacy/trove-scenario-dsvm-mariadb-multi/run.yaml new file mode 100644 index 0000000000..d29f55d47b --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-mariadb-multi/run.yaml @@ -0,0 +1,72 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-mariadb-multi from old job gate-trove-scenario-dsvm-mariadb-multi-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 trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests mariadb mariadb-supported-multi + } + export -f post_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/trove-scenario-dsvm-mariadb-single/post.yaml b/playbooks/legacy/trove-scenario-dsvm-mariadb-single/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-mariadb-single/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/trove-scenario-dsvm-mariadb-single/run.yaml b/playbooks/legacy/trove-scenario-dsvm-mariadb-single/run.yaml new file mode 100644 index 0000000000..dc9202ae8d --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-mariadb-single/run.yaml @@ -0,0 +1,72 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-mariadb-single from old job gate-trove-scenario-dsvm-mariadb-single-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 trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests mariadb mariadb-supported-single + } + export -f post_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/trove-scenario-dsvm-mysql-multi/post.yaml b/playbooks/legacy/trove-scenario-dsvm-mysql-multi/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-mysql-multi/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/trove-scenario-dsvm-mysql-multi/run.yaml b/playbooks/legacy/trove-scenario-dsvm-mysql-multi/run.yaml new file mode 100644 index 0000000000..e8812ecf32 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-mysql-multi/run.yaml @@ -0,0 +1,72 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-mysql-multi from old job gate-trove-scenario-dsvm-mysql-multi-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 trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests mysql mysql-supported-multi + } + export -f post_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/trove-scenario-dsvm-mysql-single/post.yaml b/playbooks/legacy/trove-scenario-dsvm-mysql-single/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-mysql-single/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/trove-scenario-dsvm-mysql-single/run.yaml b/playbooks/legacy/trove-scenario-dsvm-mysql-single/run.yaml new file mode 100644 index 0000000000..0ce0bcbb75 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-mysql-single/run.yaml @@ -0,0 +1,72 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-mysql-single from old job gate-trove-scenario-dsvm-mysql-single-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 trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests mysql mysql-supported-single + } + export -f post_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/trove-scenario-dsvm-postgresql-multi/post.yaml b/playbooks/legacy/trove-scenario-dsvm-postgresql-multi/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-postgresql-multi/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/trove-scenario-dsvm-postgresql-multi/run.yaml b/playbooks/legacy/trove-scenario-dsvm-postgresql-multi/run.yaml new file mode 100644 index 0000000000..89de7a0d7f --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-postgresql-multi/run.yaml @@ -0,0 +1,73 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-postgresql-multi from old job + gate-trove-scenario-dsvm-postgresql-multi-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 trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests postgresql postgresql-supported-multi + } + export -f post_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/trove-scenario-dsvm-postgresql-single/post.yaml b/playbooks/legacy/trove-scenario-dsvm-postgresql-single/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-postgresql-single/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/trove-scenario-dsvm-postgresql-single/run.yaml b/playbooks/legacy/trove-scenario-dsvm-postgresql-single/run.yaml new file mode 100644 index 0000000000..4ed4bb7e6b --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-postgresql-single/run.yaml @@ -0,0 +1,73 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-postgresql-single from old job + gate-trove-scenario-dsvm-postgresql-single-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 trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests postgresql postgresql-supported-single + } + export -f post_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/trove-scenario-dsvm-pxc-multi/post.yaml b/playbooks/legacy/trove-scenario-dsvm-pxc-multi/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-pxc-multi/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/trove-scenario-dsvm-pxc-multi/run.yaml b/playbooks/legacy/trove-scenario-dsvm-pxc-multi/run.yaml new file mode 100644 index 0000000000..6845861db4 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-pxc-multi/run.yaml @@ -0,0 +1,72 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-pxc-multi from old job gate-trove-scenario-dsvm-pxc-multi-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 trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests pxc pxc-supported-multi + } + export -f post_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/trove-scenario-dsvm-pxc-single/post.yaml b/playbooks/legacy/trove-scenario-dsvm-pxc-single/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-pxc-single/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/trove-scenario-dsvm-pxc-single/run.yaml b/playbooks/legacy/trove-scenario-dsvm-pxc-single/run.yaml new file mode 100644 index 0000000000..ad4e229dc1 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-pxc-single/run.yaml @@ -0,0 +1,72 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-pxc-single from old job gate-trove-scenario-dsvm-pxc-single-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 trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests pxc pxc-supported-single + } + export -f post_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/trove-scenario-dsvm-redis-multi/post.yaml b/playbooks/legacy/trove-scenario-dsvm-redis-multi/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-redis-multi/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/trove-scenario-dsvm-redis-multi/run.yaml b/playbooks/legacy/trove-scenario-dsvm-redis-multi/run.yaml new file mode 100644 index 0000000000..1a125bc7fd --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-redis-multi/run.yaml @@ -0,0 +1,72 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-redis-multi from old job gate-trove-scenario-dsvm-redis-multi-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 trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests redis redis-supported-multi + } + export -f post_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/trove-scenario-dsvm-redis-single/post.yaml b/playbooks/legacy/trove-scenario-dsvm-redis-single/post.yaml new file mode 100644 index 0000000000..e07f5510ae --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-redis-single/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/trove-scenario-dsvm-redis-single/run.yaml b/playbooks/legacy/trove-scenario-dsvm-redis-single/run.yaml new file mode 100644 index 0000000000..ae4d955e3a --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-redis-single/run.yaml @@ -0,0 +1,72 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-redis-single from old job gate-trove-scenario-dsvm-redis-single-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 trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests redis redis-supported-single + } + export -f post_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 }}'