blob: c973927c5bfef7ec2c6d1187d8aed25f1665dae1 [file] [log] [blame]
Hanna Arhipova4759ae42021-01-11 12:48:14 +02001---
2
3- project:
4 name: test-scenarios
5 views:
6 - Test Backups
7 - Test Ceph
8 - Test MCP updates
9 jobs:
10 - backup-tests
11 - ceph-tests
12 - update-tests
13
14################### VIEWS #######################
15- view:
16 name: Test Backups
17 view-type: list
18 filter-executors: true
19 filter-queue: true
20 regex: 'backup-.*'
21 columns:
22 - status
23 - weather
24 - job
25 - last-success
26 - last-failure
27 - last-duration
28 - build-button
29
30- view:
31 name: Test Ceph
32 view-type: list
33 filter-executors: true
34 filter-queue: true
35 regex: 'ceph_.*'
36 columns:
37 - status
38 - weather
39 - job
40 - last-success
41 - last-failure
42 - last-duration
43 - build-button
44
45- view:
46 name: Test MCP updates
47 view-type: list
48 filter-executors: true
49 filter-queue: true
50 regex: '.*-update-.*'
51 columns:
52 - status
53 - weather
54 - job
55 - last-success
56 - last-failure
57 - last-duration
58 - build-button
59
60######################## JOB GROUP ####################
61- job-group:
62 name: 'backup-tests'
63 test_scenario:
64
Hanna Arhipova42b06232021-04-22 09:29:44 +030065 - backup-saltmaster:
Hanna Arhipovac2cb6a52021-10-20 14:30:05 +030066 run-test-opts: |-
67 tcp_tests/tests/system/test_backup_restore.py::TestBackupRestoreMaster::test_salt_master_manual_backup_restore_pipeline \
68 tcp_tests/tests/system/test_backup_restore.py::TestBackupRestoreMaster::test_salt_master_manual_backup_restore
Hanna Arhipova4759ae42021-01-11 12:48:14 +020069 deployment: heat-cicd-queens-dvr-sl
Hanna Arhipova42b06232021-04-22 09:29:44 +030070 display-name: Backup/Restore SaltMaster
Hanna Arhipova4759ae42021-01-11 12:48:14 +020071
Hanna Arhipova42b06232021-04-22 09:29:44 +030072 - backup-saltmaster-with-maas:
Hanna Arhipovac2cb6a52021-10-20 14:30:05 +030073 run-test-opts: |-
74 tcp_tests/tests/system/test_backup_restore.py::TestBackupRestoreMaster::test_maas_manual_backup_restore_pipeline \
75 tcp_tests/tests/system/test_backup_restore.py::TestBackupRestoreMaster::test_maas_backup_restore_manual
Hanna Arhipova42b06232021-04-22 09:29:44 +030076 deployment: bm-cicd-queens-ovs-maas
77 display-name: Backup/Restore SaltMaster (with MAAS)
Hanna Arhipova4759ae42021-01-11 12:48:14 +020078
79 - backup-cassandra-queens-contrail-sl:
Hanna Arhipova6adb16d2021-05-18 14:24:40 +030080 run-test-opts: '--maxfail=1 -k TestBackupRestoreCassandra'
Hanna Arhipova885a2ed2021-03-05 20:00:52 +020081 deployment: heat-cicd-queens-contrail41-sl
Hanna Arhipovae92b66b2021-04-15 19:56:30 +030082 display-name: Backup/restore Cassandra
Hanna Arhipova4759ae42021-01-11 12:48:14 +020083
Hanna Arhipova42b06232021-04-22 09:29:44 +030084 - backup-galera-queens-sl:
Hanna Arhipova6adb16d2021-05-18 14:24:40 +030085 run-test-opts: '--maxfail=1 -k TestBackupRestoreGalera'
Hanna Arhipova42b06232021-04-22 09:29:44 +030086 deployment: heat-cicd-queens-dvr-sl
87 display-name: Backup/restore Galera
88
89 - backup-zookeeper-queens-sl:
Hanna Arhipova6adb16d2021-05-18 14:24:40 +030090 run-test-opts: '--maxfail=1 -k TestBackupRestoreZooKeeper'
Hanna Arhipova7f2a1752021-04-22 09:59:11 +030091 deployment: heat-cicd-queens-contrail41-sl
Hanna Arhipova42b06232021-04-22 09:29:44 +030092 display-name: Backup/restore Zookeeper
93
Hanna Arhipova4759ae42021-01-11 12:48:14 +020094 jobs:
95 - '{test_scenario}'
Vladimir Khlyunev82b374f2022-09-27 20:51:58 +000096 logrotate:
97 daysToKeep: 365
Hanna Arhipova4759ae42021-01-11 12:48:14 +020098
99- job-group:
100 name: 'ceph-tests'
101 test_scenario:
102 - ceph_osd-queens-dvr-sl:
Hanna Arhipova6adb16d2021-05-18 14:24:40 +0300103 run-test-opts: '--maxfail=1 -k TestCephOsd'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300104 deployment: heat-cicd-queens-dvr-sl
105 display-name: Add/Remove OSD node
106 - ceph_cmn-queens-dvr-sl:
Hanna Arhipova6adb16d2021-05-18 14:24:40 +0300107 run-test-opts: '--maxfail=1 -k TestCephMon'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300108 deployment: heat-cicd-queens-dvr-sl
109 display-name: Add/Remove CMN node
Hanna Arhipova6adb16d2021-05-18 14:24:40 +0300110 - ceph_rgw-queens-dvr-sl:
111 run-test-opts: '--maxfail=1 -k TestCephRgw'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300112 deployment: heat-cicd-queens-dvr-sl
PGlazov276d88f2021-07-06 15:12:16 +0400113 display-name: Add/Remove RGW node
Hanna Arhipovac2cb6a52021-10-20 14:30:05 +0300114 - ceph_failover:
115 run-test-opts: '--maxfail=1 -k TestFailoverCeph'
116 deployment: heat-cicd-queens-dvr-sl
117 display-name: Failover tests for Ceph nodes
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200118 jobs:
119 - '{test_scenario}'
Vladimir Khlyunev82b374f2022-09-27 20:51:58 +0000120 logrotate:
121 daysToKeep: 365
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200122
123- job-group:
124 name: 'update-tests'
125 test-opt: |-
126 --keep-duplicates --maxfail=1 \
127 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_drivetrain \
128 tcp_tests/tests/system/test_mcp_update.py::TestOpenstackUpdate \
PGlazov7efe3b22022-02-16 17:29:05 +0400129 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_galera --update-mysql-version 5.7 \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200130 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_rabbit \
131 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_stacklight \
132 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_ceph \
133 \
Hanna Arhipovae47f38e2021-03-05 22:19:35 +0200134 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_tempest \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200135 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_func_sanity \
136 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_stacklight
137 test-opt-with-contrail: |-
138 --keep-duplicates --maxfail=1 \
139 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_drivetrain \
140 tcp_tests/tests/system/test_upgrade_contrail.py::TestUpdateContrail \
141 tcp_tests/tests/system/test_mcp_update.py::TestOpenstackUpdate \
Hanna Arhipova885a2ed2021-03-05 20:00:52 +0200142 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_galera \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200143 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_rabbit \
144 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_stacklight \
145 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_ceph \
146 \
Hanna Arhipovae47f38e2021-03-05 22:19:35 +0200147 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_tempest \
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200148 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_func_sanity \
149 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_stacklight
PGlazov5bf139e2021-08-11 13:43:56 +0400150 test-pattern-with-contrail:
151 ^heat_tempest_plugin.tests*|^tempest.api.image*|^tempest_horizon*|^tempest.api.identity*|^tempest.api.network*|^tempest.api.compute*|^tempest.api.volume*|^tempest.scenario*|^tempest.api.object_storage*
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200152 test_scenario:
PGlazov3a9f3332021-11-23 15:40:00 +0400153 - mcp-update-bm-b300-queens-ovs-maas:
154 deployment: released-bm-b300-cicd-queens-ovs-maas
155 run-test-opts: '{test-opt}'
156 tempest_pattern: 'tempest'
157 display-name: MCP update (BM-B300-queens + MAAS)
158 tempest_test_suite: "[MCP1.1_QUEENS]Tempest"
PGlazov6639eb32021-12-10 20:16:39 +0400159 passed_steps: "hardware,create_model,salt,core,kvm,cicd,openstack,ovs,ceph,stacklight"
PGlazov3a9f3332021-11-23 15:40:00 +0400160
Pavel Glazovb4b7c532024-05-22 15:13:48 +0400161 - mcp-update-bm-queens-ovs-cl-maas:
162 deployment: released-bm-cicd-queens-ovs-cl-maas
163 run-test-opts: '{test-opt}'
164 tempest_pattern: 'tempest'
165 display-name: MCP update (queens + MAAS)
166 tempest_test_suite: "[MCP1.1_QUEENS]Tempest"
167 passed_steps: "hardware,create_model,salt,core,kvm,cicd,openstack,ovs,ceph,stacklight"
168
PGlazov3704e4b2021-06-23 15:10:04 +0400169 - mcp-update-pike-dvr-sl:
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200170 deployment: released-heat-cicd-pike-dvr-sl
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200171 run-test-opts: '{test-opt}'
PGlazov5bf139e2021-08-11 13:43:56 +0400172 tempest_pattern: 'tempest'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300173 display-name: MCP update (pike)
PGlazov560be2c2021-10-18 20:43:58 +0400174 tempest_test_suite: "[MCP1.1_PIKE]Tempest"
PGlazov6639eb32021-12-10 20:16:39 +0400175 passed_steps: "hardware,create_model,salt,core,cicd,openstack,ovs,ceph,stacklight"
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200176
177 - mcp-update-queens-dvr-sl:
178 deployment: released-heat-cicd-queens-dvr-sl
PGlazov5bf139e2021-08-11 13:43:56 +0400179 tempest_pattern: 'tempest'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200180 run-test-opts: '{test-opt}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300181 display-name: MCP update (queens)
PGlazov560be2c2021-10-18 20:43:58 +0400182 tempest_test_suite: "[MCP1.1_QUEENS]Tempest"
PGlazov6639eb32021-12-10 20:16:39 +0400183 passed_steps: "hardware,create_model,salt,core,cicd,openstack,ovs,ceph,stacklight"
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200184
185 - mcp-update-pike-contrail-sl:
186 deployment: released-heat-cicd-pike-contrail41-sl
PGlazov5bf139e2021-08-11 13:43:56 +0400187 tempest_pattern: '{test-pattern-with-contrail}'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200188 run-test-opts: '{test-opt-with-contrail}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300189 display-name: MCP update (pike + OC)
PGlazov560be2c2021-10-18 20:43:58 +0400190 tempest_test_suite: "[MCP1.1_PIKE]Tempest"
PGlazov6639eb32021-12-10 20:16:39 +0400191 passed_steps: "hardware,create_model,salt,core,cicd,openstack,contrail,ceph,stacklight"
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200192
193 - mcp-update-queens-contrail-sl:
194 deployment: released-heat-cicd-queens-contrail41-sl
PGlazov5bf139e2021-08-11 13:43:56 +0400195 tempest_pattern: '{test-pattern-with-contrail}'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200196 run-test-opts: '{test-opt-with-contrail}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300197 display-name: MCP update (queens + OC)
PGlazov560be2c2021-10-18 20:43:58 +0400198 tempest_test_suite: "[MCP1.1_QUEENS]Tempest"
PGlazov6639eb32021-12-10 20:16:39 +0400199 passed_steps: "hardware,create_model,salt,core,cicd,openstack,contrail,ceph,stacklight"
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200200
201 - os-update-pike-to-queens:
202 deployment: heat-cicd-pike-dvr-sl
Hanna Arhipova0c285e02021-08-17 10:21:12 +0300203 disabled: true
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200204 run-test-opts: '-k TestUpdatePikeToQueens'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300205 display-name: Update Pike -> Queens
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200206
207 - ceph-update-luminous-to-nautilus:
208 deployment: heat-cicd-pike-dvr-sl
209 disabled: true
Hanna Arhipova7f2a1752021-04-22 09:59:11 +0300210 run-test-opts: '-k TestCephLuminousUpgrade'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300211 display-name: Update Ceph Luminous -> Nautilus
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200212
213 jobs:
214 - '{test_scenario}'
Vladimir Khlyunev82b374f2022-09-27 20:51:58 +0000215 logrotate:
216 daysToKeep: 365
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200217
218###################### JOB TEMPLATE ###################
219- job-template:
220 name: '{test_scenario}'
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300221 display-name: '{display-name}'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200222 project-type: pipeline
Anna Arhipovadd9254c2022-09-16 11:56:45 +0200223 description: '{job-description}'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200224 concurrent: false
225 disabled: '{disabled|false}'
226 quiet-period: 2
227 node: 'openstack_slave_{deployment}'
Vladimir Khlyunev82b374f2022-09-27 20:51:58 +0000228 logrotate:
229 daysToKeep: 365
230 numToKeep: 60
231 artifactDaysToKeep: -1
232 artifactNumToKeep: -1
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200233
234 pipeline-scm:
235 lightweight-checkout: false
236 scm:
237 - git:
238 branches:
239 - FETCH_HEAD
240 refspec: ${{TCP_QA_REFS}}
241 url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa.git
242 script-path: jobs/pipelines/run-test-scenarios.groovy
243
244 parameters:
245 - node:
246 name: NODE
247 allowed-slaves:
248 - 'openstack_slave_{deployment}'
249 - string:
250 default: '{deployment}'
251 description: 'Required: Fuel-devops environment name'
252 name: ENV_NAME
253 trim: 'false'
254 - string:
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200255 default: 'openstack_slave_{deployment}'
256 description: 'Required: Name of the jenkins slave to create the environment
257 To be set by the parent deployment job.'
258 name: PARENT_NODE_NAME
259 trim: 'false'
260 - string:
261 default: '/home/jenkins/workspace/workspace/{deployment}'
262 description: 'Required: Workspace on the jenkins slave to reuse for
263 the job To be set by the parent deployment job'
264 name: PARENT_WORKSPACE
265 trim: 'false'
266 - string:
Hanna Arhipovae92b66b2021-04-15 19:56:30 +0300267 default: '2019.2.0'
268 description: 'MCP version'
269 name: MCP_VERSION
270 trim: 'false'
271 - string:
PGlazov6639eb32021-12-10 20:16:39 +0400272 default: '{passed_steps|}'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200273 description: 'Completed steps to install components on the environment.
274 If tests require some additional components, it may be installed in
275 appropriate fixtures, so set the PASSED_STEPS correctly for the
276 testing environment.'
277 name: PASSED_STEPS
278 trim: 'false'
279 - string:
PGlazov560be2c2021-10-18 20:43:58 +0400280 default: '{tempest_test_suite|}'
281 description: '[MCP1.1_xxx]Tempest where xxx - MCP version
282 using only for report to testrail'
283 name: TEMPEST_TEST_SUITE_NAME
284 trim: 'false'
285 - string:
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200286 default: ''
287 description: 'Example: refs/changes/89/411189/36
288 (for now - only one reference allowed)'
289 name: TCP_QA_REFS
290 trim: 'false'
291 - text:
292 default: '{run-test-opts}'
293 description: |-
294 Pytest option -k or -m, with expression to select necessary tests.
295 Additional pytest options are allowed.
296 name: RUN_TEST_OPTS
297 trim: 'false'
PGlazov5bf139e2021-08-11 13:43:56 +0400298 - text:
PGlazov2a1e25a2021-08-16 14:58:45 +0400299 default: '{tempest_pattern|}'
PGlazov5bf139e2021-08-11 13:43:56 +0400300 description: |-
301 Examples: 'set=full','set=smoke' or test name.
302 name: TEMPEST_PATTERN
303 trim: 'false'
Hanna Arhipova4759ae42021-01-11 12:48:14 +0200304 - bool:
305 default: true
306 name: REPORT_TO_TESTRAIL
307
308