summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-09-28 13:21:51 +0000
committerGerrit Code Review <review@openstack.org>2018-09-28 13:21:51 +0000
commit2ae3ae7f9f54d2ac9a2ec039842228ec1afeafe7 (patch)
tree4f5f2245cdca69dc09c276e00184106678d8e2ce
parentca15a645a13ac4864d8cc5193456c0eccccd441c (diff)
parent215c0f7db088b3ba4410763de645060280c22414 (diff)
Merge "Add functional jobs to check and gate pipelines" into stable/ocataocata-em4.0.2
-rw-r--r--.zuul.yaml147
-rw-r--r--playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/post.yaml15
-rw-r--r--playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/run.yaml108
-rw-r--r--playbooks/legacy/manila-tempest-dsvm-mysql-generic/post.yaml15
-rw-r--r--playbooks/legacy/manila-tempest-dsvm-mysql-generic/run.yaml107
-rw-r--r--playbooks/legacy/manila-tempest-dsvm-postgres-container/post.yaml15
-rw-r--r--playbooks/legacy/manila-tempest-dsvm-postgres-container/run.yaml108
-rw-r--r--playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/post.yaml15
-rw-r--r--playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/run.yaml108
-rw-r--r--playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/post.yaml15
-rw-r--r--playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/run.yaml108
-rw-r--r--playbooks/legacy/manila-tempest-dsvm-scenario/post.yaml15
-rw-r--r--playbooks/legacy/manila-tempest-dsvm-scenario/run.yaml107
-rw-r--r--playbooks/legacy/manila-tempest-minimal-dsvm-dummy/post.yaml15
-rw-r--r--playbooks/legacy/manila-tempest-minimal-dsvm-dummy/run.yaml94
-rw-r--r--playbooks/legacy/manila-tempest-minimal-dsvm-lvm/post.yaml15
-rw-r--r--playbooks/legacy/manila-tempest-minimal-dsvm-lvm/run.yaml96
-rw-r--r--rally-jobs/rally-manila-no-ss.yaml93
-rw-r--r--rally-jobs/rally-manila.yaml199
19 files changed, 1100 insertions, 295 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
index 079ce07..ddfabd1 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -13,13 +13,26 @@
13 - openstack-tox-pylint: 13 - openstack-tox-pylint:
14 voting: false 14 voting: false
15 - manila-tox-genconfig 15 - manila-tox-genconfig
16 - manila-tempest-minimal-dsvm-dummy
17 - manila-tempest-minimal-dsvm-lvm
18 - manila-tempest-dsvm-mysql-generic:
19 voting: false
20 - manila-tempest-dsvm-postgres-container:
21 voting: false
22 - manila-tempest-dsvm-postgres-zfsonlinux:
23 voting: false
24 - manila-tempest-dsvm-postgres-generic-singlebackend:
25 voting: false
26 - manila-tempest-dsvm-generic-no-share-servers:
27 voting: false
28 - manila-tempest-dsvm-scenario:
29 voting: false
16 gate: 30 gate:
17 queue: manila 31 queue: manila
18 jobs: 32 jobs:
19 - manila-tox-genconfig 33 - manila-tox-genconfig
20 post: 34 - manila-tempest-minimal-dsvm-dummy
21 jobs: 35 - manila-tempest-minimal-dsvm-lvm
22 - openstack-tox-cover
23 36
24- job: 37- job:
25 name: manila-tox-genconfig 38 name: manila-tox-genconfig
@@ -30,3 +43,131 @@
30 Uses tox with the ``genconfig`` environment. 43 Uses tox with the ``genconfig`` environment.
31 vars: 44 vars:
32 tox_envlist: genconfig 45 tox_envlist: genconfig
46
47- job:
48 name: legacy-manila-tempest-dsvm-base
49 parent: legacy-dsvm-base
50 irrelevant-files:
51 - ^(test-|)requirements.txt$
52 - ^.*\.rst$
53 - ^api-ref/.*$
54 - ^doc/.*$
55 - ^install-guide/.*$
56 - ^manila/hacking/.*$
57 - ^manila/tests/.*$
58 - ^releasenotes/.*$
59 - ^run_tests.sh$
60 - ^setup.cfg$
61 - ^tools/.*$
62 - ^tox.ini$
63
64- job:
65 name: manila-tempest-dsvm-generic-no-share-servers
66 parent: legacy-manila-tempest-dsvm-base
67 run: playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/run.yaml
68 post-run: playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/post.yaml
69 timeout: 5400
70 required-projects:
71 - openstack-infra/devstack-gate
72 - openstack/manila
73 - openstack/manila-image-elements
74 - openstack/python-manilaclient
75 - openstack/tempest
76
77- job:
78 name: manila-tempest-dsvm-mysql-generic
79 parent: legacy-manila-tempest-dsvm-base
80 run: playbooks/legacy/manila-tempest-dsvm-mysql-generic/run.yaml
81 post-run: playbooks/legacy/manila-tempest-dsvm-mysql-generic/post.yaml
82 timeout: 5400
83 required-projects:
84 - openstack-infra/devstack-gate
85 - openstack/manila
86 - openstack/manila-image-elements
87 - openstack/python-manilaclient
88 - openstack/tempest
89
90- job:
91 name: manila-tempest-dsvm-postgres-container
92 parent: legacy-manila-tempest-dsvm-base
93 run: playbooks/legacy/manila-tempest-dsvm-postgres-container/run.yaml
94 post-run: playbooks/legacy/manila-tempest-dsvm-postgres-container/post.yaml
95 timeout: 5400
96 required-projects:
97 - openstack-infra/devstack-gate
98 - openstack/manila
99 - openstack/manila-image-elements
100 - openstack/python-manilaclient
101 - openstack/tempest
102
103- job:
104 name: manila-tempest-dsvm-postgres-generic-singlebackend
105 parent: legacy-manila-tempest-dsvm-base
106 run: playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/run.yaml
107 post-run: playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/post.yaml
108 timeout: 5400
109 required-projects:
110 - openstack-infra/devstack-gate
111 - openstack/manila
112 - openstack/manila-image-elements
113 - openstack/python-manilaclient
114 - openstack/tempest
115
116- job:
117 name: manila-tempest-dsvm-postgres-zfsonlinux
118 parent: legacy-manila-tempest-dsvm-base
119 run: playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/run.yaml
120 post-run: playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/post.yaml
121 timeout: 5400
122 required-projects:
123 - openstack-infra/devstack-gate
124 - openstack/manila
125 - openstack/manila-image-elements
126 - openstack/python-manilaclient
127 - openstack/tempest
128
129- job:
130 name: manila-tempest-dsvm-scenario
131 parent: legacy-manila-tempest-dsvm-base
132 run: playbooks/legacy/manila-tempest-dsvm-scenario/run.yaml
133 post-run: playbooks/legacy/manila-tempest-dsvm-scenario/post.yaml
134 timeout: 5400
135 required-projects:
136 - openstack-infra/devstack-gate
137 - openstack/manila
138 - openstack/manila-image-elements
139 - openstack/python-manilaclient
140 - openstack/tempest
141
142- job:
143 name: manila-tempest-minimal-dsvm-dummy
144 parent: legacy-manila-tempest-dsvm-base
145 run: playbooks/legacy/manila-tempest-minimal-dsvm-dummy/run.yaml
146 post-run: playbooks/legacy/manila-tempest-minimal-dsvm-dummy/post.yaml
147 timeout: 5400
148 required-projects:
149 - openstack-infra/devstack-gate
150 - openstack/manila
151 - openstack/python-manilaclient
152 - openstack/tempest
153
154- job:
155 name: manila-tempest-minimal-dsvm-lvm
156 parent: legacy-manila-tempest-dsvm-base
157 run: playbooks/legacy/manila-tempest-minimal-dsvm-lvm/run.yaml
158 post-run: playbooks/legacy/manila-tempest-minimal-dsvm-lvm/post.yaml
159 timeout: 5400
160 required-projects:
161 - openstack-infra/devstack-gate
162 - openstack/manila
163 - openstack/python-manilaclient
164 - openstack/tempest
165
166- job:
167 name: manila-tox-genconfig
168 parent: openstack-tox
169 description: |
170 Run tests for manila project.
171 Uses tox with the ``genconfig`` environment.
172 vars:
173 tox_envlist: genconfig
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 0000000..e07f551
--- /dev/null
+++ b/playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/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/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 0000000..28ec904
--- /dev/null
+++ b/playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/run.yaml
@@ -0,0 +1,108 @@
1- hosts: all
2 name: Autoconverted job legacy-manila-tempest-dsvm-generic-no-share-servers from
3 old job gate-manila-tempest-dsvm-generic-no-share-servers-ubuntu-xenial-nv
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 manila git://git.openstack.org/openstack/manila
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_NEUTRON=1
46 export DEVSTACK_GATE_POSTGRES=0
47 export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient"
48
49 # Install manila-image-elements project for building custom image
50 if [[ generic == *"_with_custom_image" ]]; then
51 export PROJECTS="openstack/manila-image-elements $PROJECTS"
52 fi
53 export ENABLED_SERVICES=tempest
54
55 # Keep localrc to be able to set some vars in pre_test_hook
56 export KEEP_LOCALRC=1
57
58 function pre_test_hook {
59 # Build custom image if needed
60 if [[ generic == *"_with_custom_image" ]]; then
61 current_dir=$(pwd)
62
63 # Go to 'manila-image-elements' dir, build image and get its name
64 cd /opt/stack/new/manila-image-elements
65 ./tools/gate/build-images generic True
66 image_name=$(git ls-files --others --exclude-standard)
67 export MANILA_SERVICE_IMAGE_URL="http://localhost:80/public_html/$image_name"
68 export MANILA_SERVICE_IMAGE_NAME=$(basename -s .tar.gz $(basename -s .qcow2 $image_name))
69
70 # Return back to execution dir
71 cd $current_dir
72 fi
73
74 # 'dhss' - acronym for 'Driver Handles Share Servers',
75 # defines mode of a share driver. Boolean-like.
76 # 'driver' - codename of a share driver to configure.
77 # 'back_end_type' - defines which installation Manila should
78 # have - either 'singlebackend' or 'multibackend'.
79 source $BASE/new/manila/contrib/ci/pre_test_hook.sh \
80 0 \
81 generic \
82 multibackend
83 }
84 export -f pre_test_hook
85
86 function post_test_hook {
87 # 'back_end_type' - defines which installation Manila is
88 # configured to - either 'singlebackend' or 'multibackend'.
89 # 'driver' - codename of a share driver that is configured in
90 # Manila. It is used for enabling/disabling tests that are not
91 # supported by share driver that is used.
92 # 'test_type' - defines which set of test suites should be used,
93 # can have 'api' and 'scenario' values.
94 # 'postgres_enabled' - set of test suites depends on DB backend
95 # in some cases, so it is provided explicitely. Boolean-like.
96 source $BASE/new/manila/contrib/ci/post_test_hook.sh \
97 multibackend \
98 generic \
99 api \
100 0
101 }
102 export -f post_test_hook
103
104 cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
105 ./safe-devstack-vm-gate-wrap.sh
106 executable: /bin/bash
107 chdir: '{{ ansible_user_dir }}/workspace'
108 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 0000000..e07f551
--- /dev/null
+++ b/playbooks/legacy/manila-tempest-dsvm-mysql-generic/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/manila-tempest-dsvm-mysql-generic/run.yaml b/playbooks/legacy/manila-tempest-dsvm-mysql-generic/run.yaml
new file mode 100644
index 0000000..83de354
--- /dev/null
+++ b/playbooks/legacy/manila-tempest-dsvm-mysql-generic/run.yaml
@@ -0,0 +1,107 @@
1- hosts: all
2 name: Autoconverted job legacy-manila-tempest-dsvm-mysql-generic from old job gate-manila-tempest-dsvm-mysql-generic-ubuntu-xenial-nv
3 tasks:
4
5 - name: Ensure legacy workspace directory
6 file:
7 path: '{{ ansible_user_dir }}/workspace'
8 state: directory
9
10 - shell:
11 cmd: |
12 set -e
13 set -x
14 cat > clonemap.yaml << EOF
15 clonemap:
16 - name: openstack-infra/devstack-gate
17 dest: devstack-gate
18 EOF
19 /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
20 git://git.openstack.org \
21 openstack-infra/devstack-gate
22 executable: /bin/bash
23 chdir: '{{ ansible_user_dir }}/workspace'
24 environment: '{{ zuul | zuul_legacy_vars }}'
25
26 - shell:
27 cmd: |
28 set -e
29 set -x
30 cat << 'EOF' >>"/tmp/dg-local.conf"
31 [[local|localrc]]
32 enable_plugin manila git://git.openstack.org/openstack/manila
33
34 EOF
35 executable: /bin/bash
36 chdir: '{{ ansible_user_dir }}/workspace'
37 environment: '{{ zuul | zuul_legacy_vars }}'
38
39 - shell:
40 cmd: |
41 set -e
42 set -x
43 export PYTHONUNBUFFERED=true
44 export DEVSTACK_GATE_NEUTRON=1
45 export DEVSTACK_GATE_POSTGRES=0
46 export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient"
47
48 # Install manila-image-elements project for building custom image
49 if [[ generic == *"_with_custom_image" ]]; then
50 export PROJECTS="openstack/manila-image-elements $PROJECTS"
51 fi
52 export ENABLED_SERVICES=tempest
53
54 # Keep localrc to be able to set some vars in pre_test_hook
55 export KEEP_LOCALRC=1
56
57 function pre_test_hook {
58 # Build custom image if needed
59 if [[ generic == *"_with_custom_image" ]]; then
60 current_dir=$(pwd)
61
62 # Go to 'manila-image-elements' dir, build image and get its name
63 cd /opt/stack/new/manila-image-elements
64 ./tools/gate/build-images generic True
65 image_name=$(git ls-files --others --exclude-standard)
66 export MANILA_SERVICE_IMAGE_URL="http://localhost:80/public_html/$image_name"
67 export MANILA_SERVICE_IMAGE_NAME=$(basename -s .tar.gz $(basename -s .qcow2 $image_name))
68
69 # Return back to execution dir
70 cd $current_dir
71 fi
72
73 # 'dhss' - acronym for 'Driver Handles Share Servers',
74 # defines mode of a share driver. Boolean-like.
75 # 'driver' - codename of a share driver to configure.
76 # 'back_end_type' - defines which installation Manila should
77 # have - either 'singlebackend' or 'multibackend'.
78 source $BASE/new/manila/contrib/ci/pre_test_hook.sh \
79 1 \
80 generic \
81 multibackend
82 }
83 export -f pre_test_hook
84
85 function post_test_hook {
86 # 'back_end_type' - defines which installation Manila is
87 # configured to - either 'singlebackend' or 'multibackend'.
88 # 'driver' - codename of a share driver that is configured in
89 # Manila. It is used for enabling/disabling tests that are not
90 # supported by share driver that is used.
91 # 'test_type' - defines which set of test suites should be used,
92 # can have 'api' and 'scenario' values.
93 # 'postgres_enabled' - set of test suites depends on DB backend
94 # in some cases, so it is provided explicitely. Boolean-like.
95 source $BASE/new/manila/contrib/ci/post_test_hook.sh \
96 multibackend \
97 generic \
98 api \
99 0
100 }
101 export -f post_test_hook
102
103 cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
104 ./safe-devstack-vm-gate-wrap.sh
105 executable: /bin/bash
106 chdir: '{{ ansible_user_dir }}/workspace'
107 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 0000000..e07f551
--- /dev/null
+++ b/playbooks/legacy/manila-tempest-dsvm-postgres-container/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/manila-tempest-dsvm-postgres-container/run.yaml b/playbooks/legacy/manila-tempest-dsvm-postgres-container/run.yaml
new file mode 100644
index 0000000..eba61e6
--- /dev/null
+++ b/playbooks/legacy/manila-tempest-dsvm-postgres-container/run.yaml
@@ -0,0 +1,108 @@
1- hosts: all
2 name: Autoconverted job legacy-manila-tempest-dsvm-postgres-container from old job
3 gate-manila-tempest-dsvm-postgres-container-ubuntu-xenial-nv
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 manila git://git.openstack.org/openstack/manila
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_NEUTRON=1
46 export DEVSTACK_GATE_POSTGRES=1
47 export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient"
48
49 # Install manila-image-elements project for building custom image
50 if [[ container == *"_with_custom_image" ]]; then
51 export PROJECTS="openstack/manila-image-elements $PROJECTS"
52 fi
53 export ENABLED_SERVICES=tempest
54
55 # Keep localrc to be able to set some vars in pre_test_hook
56 export KEEP_LOCALRC=1
57
58 function pre_test_hook {
59 # Build custom image if needed
60 if [[ container == *"_with_custom_image" ]]; then
61 current_dir=$(pwd)
62
63 # Go to 'manila-image-elements' dir, build image and get its name
64 cd /opt/stack/new/manila-image-elements
65 ./tools/gate/build-images container True
66 image_name=$(git ls-files --others --exclude-standard)
67 export MANILA_SERVICE_IMAGE_URL="http://localhost:80/public_html/$image_name"
68 export MANILA_SERVICE_IMAGE_NAME=$(basename -s .tar.gz $(basename -s .qcow2 $image_name))
69
70 # Return back to execution dir
71 cd $current_dir
72 fi
73
74 # 'dhss' - acronym for 'Driver Handles Share Servers',
75 # defines mode of a share driver. Boolean-like.
76 # 'driver' - codename of a share driver to configure.
77 # 'back_end_type' - defines which installation Manila should
78 # have - either 'singlebackend' or 'multibackend'.
79 source $BASE/new/manila/contrib/ci/pre_test_hook.sh \
80 1 \
81 container \
82 multibackend
83 }
84 export -f pre_test_hook
85
86 function post_test_hook {
87 # 'back_end_type' - defines which installation Manila is
88 # configured to - either 'singlebackend' or 'multibackend'.
89 # 'driver' - codename of a share driver that is configured in
90 # Manila. It is used for enabling/disabling tests that are not
91 # supported by share driver that is used.
92 # 'test_type' - defines which set of test suites should be used,
93 # can have 'api' and 'scenario' values.
94 # 'postgres_enabled' - set of test suites depends on DB backend
95 # in some cases, so it is provided explicitely. Boolean-like.
96 source $BASE/new/manila/contrib/ci/post_test_hook.sh \
97 multibackend \
98 container \
99 api \
100 1
101 }
102 export -f post_test_hook
103
104 cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
105 ./safe-devstack-vm-gate-wrap.sh
106 executable: /bin/bash
107 chdir: '{{ ansible_user_dir }}/workspace'
108 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 0000000..e07f551
--- /dev/null
+++ b/playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/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/manila-tempest-dsvm-postgres-generic-singlebackend/run.yaml b/playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/run.yaml
new file mode 100644
index 0000000..9310e03
--- /dev/null
+++ b/playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/run.yaml
@@ -0,0 +1,108 @@
1- hosts: all
2 name: Autoconverted job legacy-manila-tempest-dsvm-postgres-generic-singlebackend
3 from old job gate-manila-tempest-dsvm-postgres-generic-singlebackend-ubuntu-xenial-nv
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 manila git://git.openstack.org/openstack/manila
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_NEUTRON=1
46 export DEVSTACK_GATE_POSTGRES=1
47 export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient"
48
49 # Install manila-image-elements project for building custom image
50 if [[ generic == *"_with_custom_image" ]]; then
51 export PROJECTS="openstack/manila-image-elements $PROJECTS"
52 fi
53 export ENABLED_SERVICES=tempest
54
55 # Keep localrc to be able to set some vars in pre_test_hook
56 export KEEP_LOCALRC=1
57
58 function pre_test_hook {
59 # Build custom image if needed
60 if [[ generic == *"_with_custom_image" ]]; then
61 current_dir=$(pwd)
62
63 # Go to 'manila-image-elements' dir, build image and get its name
64 cd /opt/stack/new/manila-image-elements
65 ./tools/gate/build-images generic True
66 image_name=$(git ls-files --others --exclude-standard)
67 export MANILA_SERVICE_IMAGE_URL="http://localhost:80/public_html/$image_name"
68 export MANILA_SERVICE_IMAGE_NAME=$(basename -s .tar.gz $(basename -s .qcow2 $image_name))
69
70 # Return back to execution dir
71 cd $current_dir
72 fi
73
74 # 'dhss' - acronym for 'Driver Handles Share Servers',
75 # defines mode of a share driver. Boolean-like.
76 # 'driver' - codename of a share driver to configure.
77 # 'back_end_type' - defines which installation Manila should
78 # have - either 'singlebackend' or 'multibackend'.
79 source $BASE/new/manila/contrib/ci/pre_test_hook.sh \
80 1 \
81 generic \
82 singlebackend
83 }
84 export -f pre_test_hook
85
86 function post_test_hook {
87 # 'back_end_type' - defines which installation Manila is
88 # configured to - either 'singlebackend' or 'multibackend'.
89 # 'driver' - codename of a share driver that is configured in
90 # Manila. It is used for enabling/disabling tests that are not
91 # supported by share driver that is used.
92 # 'test_type' - defines which set of test suites should be used,
93 # can have 'api' and 'scenario' values.
94 # 'postgres_enabled' - set of test suites depends on DB backend
95 # in some cases, so it is provided explicitely. Boolean-like.
96 source $BASE/new/manila/contrib/ci/post_test_hook.sh \
97 singlebackend \
98 generic \
99 api \
100 1
101 }
102 export -f post_test_hook
103
104 cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
105 ./safe-devstack-vm-gate-wrap.sh
106 executable: /bin/bash
107 chdir: '{{ ansible_user_dir }}/workspace'
108 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 0000000..e07f551
--- /dev/null
+++ b/playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/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/manila-tempest-dsvm-postgres-zfsonlinux/run.yaml b/playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/run.yaml
new file mode 100644
index 0000000..c9f6c12
--- /dev/null
+++ b/playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/run.yaml
@@ -0,0 +1,108 @@
1- hosts: all
2 name: Autoconverted job legacy-manila-tempest-dsvm-postgres-zfsonlinux from old
3 job gate-manila-tempest-dsvm-postgres-zfsonlinux-ubuntu-xenial-nv
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 manila git://git.openstack.org/openstack/manila
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_NEUTRON=1
46 export DEVSTACK_GATE_POSTGRES=1
47 export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient"
48
49 # Install manila-image-elements project for building custom image
50 if [[ zfsonlinux == *"_with_custom_image" ]]; then
51 export PROJECTS="openstack/manila-image-elements $PROJECTS"
52 fi
53 export ENABLED_SERVICES=tempest
54
55 # Keep localrc to be able to set some vars in pre_test_hook
56 export KEEP_LOCALRC=1
57
58 function pre_test_hook {
59 # Build custom image if needed
60 if [[ zfsonlinux == *"_with_custom_image" ]]; then
61 current_dir=$(pwd)
62
63 # Go to 'manila-image-elements' dir, build image and get its name
64 cd /opt/stack/new/manila-image-elements
65 ./tools/gate/build-images zfsonlinux True
66 image_name=$(git ls-files --others --exclude-standard)
67 export MANILA_SERVICE_IMAGE_URL="http://localhost:80/public_html/$image_name"
68 export MANILA_SERVICE_IMAGE_NAME=$(basename -s .tar.gz $(basename -s .qcow2 $image_name))
69
70 # Return back to execution dir
71 cd $current_dir
72 fi
73
74 # 'dhss' - acronym for 'Driver Handles Share Servers',
75 # defines mode of a share driver. Boolean-like.
76 # 'driver' - codename of a share driver to configure.
77 # 'back_end_type' - defines which installation Manila should
78 # have - either 'singlebackend' or 'multibackend'.
79 source $BASE/new/manila/contrib/ci/pre_test_hook.sh \
80 0 \
81 zfsonlinux \
82 multibackend
83 }
84 export -f pre_test_hook
85
86 function post_test_hook {
87 # 'back_end_type' - defines which installation Manila is
88 # configured to - either 'singlebackend' or 'multibackend'.
89 # 'driver' - codename of a share driver that is configured in
90 # Manila. It is used for enabling/disabling tests that are not
91 # supported by share driver that is used.
92 # 'test_type' - defines which set of test suites should be used,
93 # can have 'api' and 'scenario' values.
94 # 'postgres_enabled' - set of test suites depends on DB backend
95 # in some cases, so it is provided explicitely. Boolean-like.
96 source $BASE/new/manila/contrib/ci/post_test_hook.sh \
97 multibackend \
98 zfsonlinux \
99 api \
100 1
101 }
102 export -f post_test_hook
103
104 cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
105 ./safe-devstack-vm-gate-wrap.sh
106 executable: /bin/bash
107 chdir: '{{ ansible_user_dir }}/workspace'
108 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 0000000..e07f551
--- /dev/null
+++ b/playbooks/legacy/manila-tempest-dsvm-scenario/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/manila-tempest-dsvm-scenario/run.yaml b/playbooks/legacy/manila-tempest-dsvm-scenario/run.yaml
new file mode 100644
index 0000000..a54560e
--- /dev/null
+++ b/playbooks/legacy/manila-tempest-dsvm-scenario/run.yaml
@@ -0,0 +1,107 @@
1- hosts: all
2 name: Autoconverted job legacy-manila-tempest-dsvm-scenario from old job gate-manila-tempest-dsvm-scenario-ubuntu-xenial-nv
3 tasks:
4
5 - name: Ensure legacy workspace directory
6 file:
7 path: '{{ ansible_user_dir }}/workspace'
8 state: directory
9
10 - shell:
11 cmd: |
12 set -e
13 set -x
14 cat > clonemap.yaml << EOF
15 clonemap:
16 - name: openstack-infra/devstack-gate
17 dest: devstack-gate
18 EOF
19 /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
20 git://git.openstack.org \
21 openstack-infra/devstack-gate
22 executable: /bin/bash
23 chdir: '{{ ansible_user_dir }}/workspace'
24 environment: '{{ zuul | zuul_legacy_vars }}'
25
26 - shell:
27 cmd: |
28 set -e
29 set -x
30 cat << 'EOF' >>"/tmp/dg-local.conf"
31 [[local|localrc]]
32 enable_plugin manila git://git.openstack.org/openstack/manila
33
34 EOF
35 executable: /bin/bash
36 chdir: '{{ ansible_user_dir }}/workspace'
37 environment: '{{ zuul | zuul_legacy_vars }}'
38
39 - shell:
40 cmd: |
41 set -e
42 set -x
43 export PYTHONUNBUFFERED=true
44 export DEVSTACK_GATE_NEUTRON=1
45 export DEVSTACK_GATE_POSTGRES=0
46 export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient"
47
48 # Install manila-image-elements project for building custom image
49 if [[ generic == *"_with_custom_image" ]]; then
50 export PROJECTS="openstack/manila-image-elements $PROJECTS"
51 fi
52 export ENABLED_SERVICES=tempest
53
54 # Keep localrc to be able to set some vars in pre_test_hook
55 export KEEP_LOCALRC=1
56
57 function pre_test_hook {
58 # Build custom image if needed
59 if [[ generic == *"_with_custom_image" ]]; then
60 current_dir=$(pwd)
61
62 # Go to 'manila-image-elements' dir, build image and get its name
63 cd /opt/stack/new/manila-image-elements
64 ./tools/gate/build-images generic True
65 image_name=$(git ls-files --others --exclude-standard)
66 export MANILA_SERVICE_IMAGE_URL="http://localhost:80/public_html/$image_name"
67 export MANILA_SERVICE_IMAGE_NAME=$(basename -s .tar.gz $(basename -s .qcow2 $image_name))
68
69 # Return back to execution dir
70 cd $current_dir
71 fi
72
73 # 'dhss' - acronym for 'Driver Handles Share Servers',
74 # defines mode of a share driver. Boolean-like.
75 # 'driver' - codename of a share driver to configure.
76 # 'back_end_type' - defines which installation Manila should
77 # have - either 'singlebackend' or 'multibackend'.
78 source $BASE/new/manila/contrib/ci/pre_test_hook.sh \
79 1 \
80 generic \
81 multibackend
82 }
83 export -f pre_test_hook
84
85 function post_test_hook {
86 # 'back_end_type' - defines which installation Manila is
87 # configured to - either 'singlebackend' or 'multibackend'.
88 # 'driver' - codename of a share driver that is configured in
89 # Manila. It is used for enabling/disabling tests that are not
90 # supported by share driver that is used.
91 # 'test_type' - defines which set of test suites should be used,
92 # can have 'api' and 'scenario' values.
93 # 'postgres_enabled' - set of test suites depends on DB backend
94 # in some cases, so it is provided explicitely. Boolean-like.
95 source $BASE/new/manila/contrib/ci/post_test_hook.sh \
96 multibackend \
97 generic \
98 scenario \
99 0
100 }
101 export -f post_test_hook
102
103 cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
104 ./safe-devstack-vm-gate-wrap.sh
105 executable: /bin/bash
106 chdir: '{{ ansible_user_dir }}/workspace'
107 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 0000000..e07f551
--- /dev/null
+++ b/playbooks/legacy/manila-tempest-minimal-dsvm-dummy/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/manila-tempest-minimal-dsvm-dummy/run.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-dummy/run.yaml
new file mode 100644
index 0000000..1e7ea35
--- /dev/null
+++ b/playbooks/legacy/manila-tempest-minimal-dsvm-dummy/run.yaml
@@ -0,0 +1,94 @@
1- hosts: all
2 name: Autoconverted job legacy-manila-tempest-minimal-dsvm-dummy from old job gate-manila-tempest-minimal-dsvm-dummy-ubuntu-xenial
3 tasks:
4
5 - name: Ensure legacy workspace directory
6 file:
7 path: '{{ ansible_user_dir }}/workspace'
8 state: directory
9
10 - shell:
11 cmd: |
12 set -e
13 set -x
14 cat > clonemap.yaml << EOF
15 clonemap:
16 - name: openstack-infra/devstack-gate
17 dest: devstack-gate
18 EOF
19 /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
20 git://git.openstack.org \
21 openstack-infra/devstack-gate
22 executable: /bin/bash
23 chdir: '{{ ansible_user_dir }}/workspace'
24 environment: '{{ zuul | zuul_legacy_vars }}'
25
26 - shell:
27 cmd: |
28 set -e
29 set -x
30 cat << 'EOF' >>"/tmp/dg-local.conf"
31 [[local|localrc]]
32 enable_plugin manila git://git.openstack.org/openstack/manila
33
34 EOF
35 executable: /bin/bash
36 chdir: '{{ ansible_user_dir }}/workspace'
37 environment: '{{ zuul | zuul_legacy_vars }}'
38
39 - shell:
40 cmd: |
41 set -e
42 set -x
43 export PYTHONUNBUFFERED=true
44 export DEVSTACK_GATE_NEUTRON=1
45 export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient"
46 # Basic services needed for minimal job
47 OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit,tempest
48 if [ "dummy" == "lvm" ]; then
49 # Enable glance for scenario tests
50 OVERRIDE_ENABLED_SERVICES+=,g-api,g-reg
51 # Enable nova for scenario tests
52 OVERRIDE_ENABLED_SERVICES+=,n-api,n-cpu,n-cond,n-sch,n-crt,n-cauth,n-obj
53 # Enable neutron for scenario tests
54 OVERRIDE_ENABLED_SERVICES+=,q-svc,q-dhcp,q-meta,q-l3,q-agt
55
56 # Enable mandatory placement services for nova starting with ocata
57 if [[ "stable/newton" != $ZUUL_BRANCH ]]; then
58 OVERRIDE_ENABLED_SERVICES+=,placement-api,placement-client
59 fi
60 fi
61 export OVERRIDE_ENABLED_SERVICES
62
63 # Keep localrc to be able to set some vars in pre_test_hook
64 export KEEP_LOCALRC=1
65
66 function pre_test_hook {
67 # 'dhss' - acronym for 'Driver Handles Share Servers',
68 # defines mode of a share driver. Boolean-like.
69 # 'driver' - codename of a share driver to configure.
70 # 'back_end_type' - defines which installation Manila should
71 # have - either 'singlebackend' or 'multibackend'.
72 source $BASE/new/manila/contrib/ci/pre_test_hook.sh False dummy multibackend
73 }
74 export -f pre_test_hook
75
76 function post_test_hook {
77 # 'back_end_type' - defines which installation Manila is
78 # configured to - either 'singlebackend' or 'multibackend'.
79 # 'driver' - codename of a share driver that is configured in
80 # Manila. It is used for enabling/disabling tests that are not
81 # supported by share driver that is used.
82 # 'test_type' - defines which set of test suites should be used,
83 # can have 'api' and 'scenario' values.
84 # 'postgres_enabled' - set of test suites depends on DB backend
85 # in some cases, so it is provided explicitely. Boolean-like.
86 source $BASE/new/manila/contrib/ci/post_test_hook.sh multibackend dummy api False
87 }
88 export -f post_test_hook
89
90 cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
91 ./safe-devstack-vm-gate-wrap.sh
92 executable: /bin/bash
93 chdir: '{{ ansible_user_dir }}/workspace'
94 environment: '{{ zuul | zuul_legacy_vars }}'
diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-lvm/post.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-lvm/post.yaml
new file mode 100644
index 0000000..e07f551
--- /dev/null
+++ b/playbooks/legacy/manila-tempest-minimal-dsvm-lvm/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/manila-tempest-minimal-dsvm-lvm/run.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-lvm/run.yaml
new file mode 100644
index 0000000..e0d12f5
--- /dev/null
+++ b/playbooks/legacy/manila-tempest-minimal-dsvm-lvm/run.yaml
@@ -0,0 +1,96 @@
1- hosts: all
2 name: Autoconverted job legacy-manila-tempest-minimal-dsvm-lvm from old
3 job gate-manila-tempest-minimal-dsvm-lvm
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 SKIP_EPEL_INSTALL=True
34 enable_plugin manila git://git.openstack.org/openstack/manila
35
36 EOF
37 executable: /bin/bash
38 chdir: '{{ ansible_user_dir }}/workspace'
39 environment: '{{ zuul | zuul_legacy_vars }}'
40
41 - shell:
42 cmd: |
43 set -e
44 set -x
45 export PYTHONUNBUFFERED=true
46 export DEVSTACK_GATE_NEUTRON=1
47 export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient"
48 # Basic services needed for minimal job
49 OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit,tempest
50 if [ "lvm" == "lvm" ]; then
51 # Enable glance for scenario tests
52 OVERRIDE_ENABLED_SERVICES+=,g-api,g-reg
53 # Enable nova for scenario tests
54 OVERRIDE_ENABLED_SERVICES+=,n-api,n-cpu,n-cond,n-sch,n-crt,n-cauth,n-obj
55 # Enable neutron for scenario tests
56 OVERRIDE_ENABLED_SERVICES+=,q-svc,q-dhcp,q-meta,q-l3,q-agt
57
58 # Enable mandatory placement services for nova starting with ocata
59 if [[ "stable/newton" != $ZUUL_BRANCH ]]; then
60 OVERRIDE_ENABLED_SERVICES+=,placement-api,placement-client
61 fi
62 fi
63 export OVERRIDE_ENABLED_SERVICES
64
65 # Keep localrc to be able to set some vars in pre_test_hook
66 export KEEP_LOCALRC=1
67
68 function pre_test_hook {
69 # 'dhss' - acronym for 'Driver Handles Share Servers',
70 # defines mode of a share driver. Boolean-like.
71 # 'driver' - codename of a share driver to configure.
72 # 'back_end_type' - defines which installation Manila should
73 # have - either 'singlebackend' or 'multibackend'.
74 source $BASE/new/manila/contrib/ci/pre_test_hook.sh False lvm multibackend
75 }
76 export -f pre_test_hook
77
78 function post_test_hook {
79 # 'back_end_type' - defines which installation Manila is
80 # configured to - either 'singlebackend' or 'multibackend'.
81 # 'driver' - codename of a share driver that is configured in
82 # Manila. It is used for enabling/disabling tests that are not
83 # supported by share driver that is used.
84 # 'test_type' - defines which set of test suites should be used,
85 # can have 'api' and 'scenario' values.
86 # 'postgres_enabled' - set of test suites depends on DB backend
87 # in some cases, so it is provided explicitely. Boolean-like.
88 source $BASE/new/manila/contrib/ci/post_test_hook.sh multibackend lvm api False
89 }
90 export -f post_test_hook
91
92 cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
93 ./safe-devstack-vm-gate-wrap.sh
94 executable: /bin/bash
95 chdir: '{{ ansible_user_dir }}/workspace'
96 environment: '{{ zuul | zuul_legacy_vars }}'
diff --git a/rally-jobs/rally-manila-no-ss.yaml b/rally-jobs/rally-manila-no-ss.yaml
deleted file mode 100644
index b3b192e..0000000
--- a/rally-jobs/rally-manila-no-ss.yaml
+++ /dev/null
@@ -1,93 +0,0 @@
1---
2 Dummy.openstack:
3 -
4 description: "Check quotas context"
5 runner:
6 type: "constant"
7 times: 1
8 concurrency: 1
9 context:
10 users:
11 tenants: 1
12 users_per_tenant: 1
13 quotas:
14 manila:
15 shares: -1
16 gigabytes: -1
17 snapshots: -1
18 snapshot_gigabytes: -1
19 share_networks: -1
20
21 ManilaShares.list_shares:
22 -
23 args:
24 detailed: True
25 runner:
26 type: "constant"
27 times: 10
28 concurrency: 10
29 context:
30 users:
31 tenants: 1
32 users_per_tenant: 1
33 sla:
34 failure_rate:
35 max: 0
36
37 {% for s in ("create_and_delete_share", "create_and_list_share") %}
38 ManilaShares.{{s}}:
39 -
40 args:
41 share_proto: "nfs"
42 size: 1
43 share_type: "dhss_false"
44 min_sleep: 1
45 max_sleep: 2
46 runner:
47 type: "constant"
48 times: 10
49 concurrency: 10
50 context:
51 quotas:
52 manila:
53 shares: -1
54 gigabytes: -1
55 users:
56 tenants: 2
57 users_per_tenant: 1
58 sla:
59 failure_rate:
60 max: 0
61 {% endfor %}
62
63
64 ManilaShares.set_and_delete_metadata:
65 -
66 args:
67 sets: 1
68 set_size: 3
69 delete_size: 3
70 key_min_length: 1
71 key_max_length: 256
72 value_min_length: 1
73 value_max_length: 1024
74 runner:
75 type: "constant"
76 times: 10
77 concurrency: 10
78 context:
79 quotas:
80 manila:
81 shares: -1
82 gigabytes: -1
83 users:
84 tenants: 1
85 users_per_tenant: 1
86 manila_shares:
87 shares_per_tenant: 1
88 share_proto: "NFS"
89 size: 1
90 share_type: "dhss_false"
91 sla:
92 failure_rate:
93 max: 0
diff --git a/rally-jobs/rally-manila.yaml b/rally-jobs/rally-manila.yaml
deleted file mode 100644
index 68f3b1e..0000000
--- a/rally-jobs/rally-manila.yaml
+++ /dev/null
@@ -1,199 +0,0 @@
1---
2 Dummy.openstack:
3 -
4 description: "Check quotas context"
5 runner:
6 type: "constant"
7 times: 1
8 concurrency: 1
9 context:
10 users:
11 tenants: 1
12 users_per_tenant: 1
13 quotas:
14 manila:
15 shares: -1
16 gigabytes: -1
17 snapshots: -1
18 snapshot_gigabytes: -1
19 share_networks: -1
20
21 ManilaShares.list_shares:
22 -
23 args:
24 detailed: True
25 runner:
26 type: "constant"
27 times: 10
28 concurrency: 10
29 context:
30 users:
31 tenants: 3
32 users_per_tenant: 4
33 user_choice_method: "round_robin"
34 sla:
35 failure_rate:
36 max: 0
37
38 {% for s in ("create_and_delete_share", "create_and_list_share") %}
39 ManilaShares.{{s}}:
40 -
41 args:
42 share_proto: "nfs"
43 size: 1
44 share_type: "dhss_true"
45 min_sleep: 1
46 max_sleep: 2
47 runner:
48 type: "constant"
49 times: 10
50 concurrency: 10
51 context:
52 quotas:
53 manila:
54 shares: -1
55 gigabytes: -1
56 share_networks: -1
57 users:
58 tenants: 2
59 users_per_tenant: 1
60 user_choice_method: "round_robin"
61 manila_share_networks:
62 use_share_networks: True
63 sla:
64 failure_rate:
65 max: 0
66 {% endfor %}
67
68 ManilaShares.create_share_network_and_delete:
69 -
70 args:
71 name: "rally"
72 runner:
73 type: "constant"
74 times: 10
75 concurrency: 10
76 context:
77 quotas:
78 manila:
79 share_networks: -1
80 users:
81 tenants: 2
82 users_per_tenant: 1
83 sla:
84 failure_rate:
85 max: 0
86
87 ManilaShares.create_share_network_and_list:
88 -
89 args:
90 name: "rally"
91 detailed: True
92 search_opts:
93 name: "rally"
94 runner:
95 type: "constant"
96 times: 10
97 concurrency: 10
98 context:
99 quotas:
100 manila:
101 share_networks: -1
102 users:
103 tenants: 2
104 users_per_tenant: 1
105 sla:
106 failure_rate:
107 max: 0
108
109 ManilaShares.list_share_servers:
110 -
111 args:
112 search_opts: {}
113 runner:
114 type: "constant"
115 times: 10
116 concurrency: 10
117 sla:
118 failure_rate:
119 max: 0
120
121 ManilaShares.create_security_service_and_delete:
122 {% for s in ("ldap", "kerberos", "active_directory") %}
123 -
124 args:
125 security_service_type: {{s}}
126 dns_ip: "fake_dns_ip"
127 server: "fake-server"
128 domain: "fake_domain"
129 user: "fake_user"
130 password: "fake_password"
131 name: "fake_name"
132 description: "fake_description"
133 runner:
134 type: "constant"
135 times: 10
136 concurrency: 10
137 context:
138 users:
139 tenants: 1
140 users_per_tenant: 1
141 sla:
142 failure_rate:
143 max: 0
144 {% endfor %}
145
146 ManilaShares.attach_security_service_to_share_network:
147 {% for s in ("ldap", "kerberos", "active_directory") %}
148 -
149 args:
150 security_service_type: {{s}}
151 runner:
152 type: "constant"
153 times: 10
154 concurrency: 10
155 context:
156 users:
157 tenants: 1
158 users_per_tenant: 1
159 quotas:
160 manila:
161 share_networks: -1
162 sla:
163 failure_rate:
164 max: 0
165 {% endfor %}
166
167 ManilaShares.set_and_delete_metadata:
168 -
169 args:
170 sets: 1
171 set_size: 3
172 delete_size: 3
173 key_min_length: 1
174 key_max_length: 256
175 value_min_length: 1
176 value_max_length: 1024
177 runner:
178 type: "constant"
179 times: 10
180 concurrency: 10
181 context:
182 quotas:
183 manila:
184 shares: -1
185 gigabytes: -1
186 share_networks: -1
187 users:
188 tenants: 1
189 users_per_tenant: 1
190 manila_share_networks:
191 use_share_networks: True
192 manila_shares:
193 shares_per_tenant: 1
194 share_proto: "NFS"
195 size: 1
196 share_type: "dhss_true"
197 sla:
198 failure_rate:
199 max: 0