summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Matzek <smatzek@us.ibm.com>2017-10-26 07:44:00 -0500
committerSamuel Matzek <smatzek@us.ibm.com>2017-10-27 17:18:41 +0000
commit1d3e516dea5448f2230354d1457f488b34a2bd4d (patch)
tree5e01dd6781176b6108a8e4ca7bd9bfc80501c0f0
parent565a6e0a5b9467df9880ed4c831ff0bca1a5084a (diff)
Fix gate / add tempest job2.13.0
The Zuul v3 conversion missed the tempest-dsvm-neutron-src-python-troveclient job and the base tempest job is running in its place and blocking the gate. This adds the Zuul project config and the definition for the missing tempest job. Change-Id: I532776e2e23b1ab5a5c9ef2b0278489f04a1097f
Notes
Notes (review): Code-Review+2: Manoj Kumar <manoj@linux.vnet.ibm.com> Workflow+1: Manoj Kumar <manoj@linux.vnet.ibm.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Mon, 30 Oct 2017 05:09:31 +0000 Reviewed-on: https://review.openstack.org/515393 Project: openstack/python-troveclient Branch: refs/heads/master
-rw-r--r--.zuul.yaml27
-rw-r--r--playbooks/legacy/tempest-dsvm-neutron-src-python-troveclient/post.yaml15
-rw-r--r--playbooks/legacy/tempest-dsvm-neutron-src-python-troveclient/run.yaml60
3 files changed, 102 insertions, 0 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
new file mode 100644
index 0000000..39baa46
--- /dev/null
+++ b/.zuul.yaml
@@ -0,0 +1,27 @@
1- project:
2 name: openstack/python-troveclient
3 templates:
4 - osc-plugin-jobs
5 check:
6 jobs:
7 - tempest-neutron-src-python-troveclient
8 gate:
9 queue: trove
10 jobs:
11 - tempest-neutron-src-python-troveclient
12
13- job:
14 name: tempest-neutron-src-python-troveclient
15 parent: legacy-dsvm-base
16 run: playbooks/legacy/tempest-dsvm-neutron-src-python-troveclient/run
17 post-run: playbooks/legacy/tempest-dsvm-neutron-src-python-troveclient/post
18 timeout: 7800
19 required-projects:
20 - openstack-dev/devstack
21 - openstack-infra/devstack-gate
22 - openstack/ara
23 - openstack/neutron
24 - openstack/python-troveclient
25 - openstack/trove
26 - openstack/trove-dashboard
27 - openstack/tempest
diff --git a/playbooks/legacy/tempest-dsvm-neutron-src-python-troveclient/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-src-python-troveclient/post.yaml
new file mode 100644
index 0000000..e07f551
--- /dev/null
+++ b/playbooks/legacy/tempest-dsvm-neutron-src-python-troveclient/post.yaml
@@ -0,0 +1,15 @@
1- hosts: primary
2 tasks:
3
4 - name: Copy files from {{ ansible_user_dir }}/workspace/ on node
5 synchronize:
6 src: '{{ ansible_user_dir }}/workspace/'
7 dest: '{{ zuul.executor.log_root }}'
8 mode: pull
9 copy_links: true
10 verify_host: true
11 rsync_opts:
12 - --include=/logs/**
13 - --include=*/
14 - --exclude=*
15 - --prune-empty-dirs
diff --git a/playbooks/legacy/tempest-dsvm-neutron-src-python-troveclient/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-src-python-troveclient/run.yaml
new file mode 100644
index 0000000..a4238c8
--- /dev/null
+++ b/playbooks/legacy/tempest-dsvm-neutron-src-python-troveclient/run.yaml
@@ -0,0 +1,60 @@
1- hosts: all
2 name: tempest-python-trovelient-neutron-src, copied from
3 old job gate-tempest-dsvm-neutron-src-python-troveclient-ubuntu-xenial
4 tasks:
5
6 - name: Ensure legacy workspace directory
7 file:
8 path: '{{ ansible_user_dir }}/workspace'
9 state: directory
10
11 - shell:
12 cmd: |
13 set -e
14 set -x
15 cat > clonemap.yaml << EOF
16 clonemap:
17 - name: openstack-infra/devstack-gate
18 dest: devstack-gate
19 EOF
20 /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
21 git://git.openstack.org \
22 openstack-infra/devstack-gate
23 executable: /bin/bash
24 chdir: '{{ ansible_user_dir }}/workspace'
25 environment: '{{ zuul | zuul_legacy_vars }}'
26
27 - shell:
28 cmd: |
29 set -e
30 set -x
31 cat << 'EOF' >>"/tmp/dg-local.conf"
32 [[local|localrc]]
33 enable_plugin trove git://git.openstack.org/openstack/trove
34
35 EOF
36 executable: /bin/bash
37 chdir: '{{ ansible_user_dir }}/workspace'
38 environment: '{{ zuul | zuul_legacy_vars }}'
39
40 - shell:
41 cmd: |
42 set -e
43 set -x
44 export PYTHONUNBUFFERED=true
45 export DEVSTACK_GATE_TROVE=1
46 export DEVSTACK_GATE_TEMPEST=1
47 export DEVSTACK_GATE_TEMPEST_FULL=1
48 export DEVSTACK_GATE_NEUTRON=1
49 export BRANCH_OVERRIDE=default
50 if [ "$BRANCH_OVERRIDE" != "default" ] ; then
51 export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
52 fi
53 export PROJECTS="openstack/trove-dashboard $PROJECTS"
54 export DEVSTACK_PROJECT_FROM_GIT=python-troveclient
55 cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
56 ./safe-devstack-vm-gate-wrap.sh
57
58 executable: /bin/bash
59 chdir: '{{ ansible_user_dir }}/workspace'
60 environment: '{{ zuul | zuul_legacy_vars }}'