blob: 9890294f1a5371dbc9f5ef0b6aed1dfaafcd2ef8 [file] [log] [blame]
Dmitrii Kabanovb908f302017-08-11 00:21:59 -07001parameters:
2 jenkins:
3 client:
4 view:
5 Validation:
6 enabled: true
7 type: ListView
8 include_regex: "validate.*"
9 job:
10 validate_openstack:
11 type: workflow-scm
12 name: validate-openstack
13 display_name: "Validate - Openstack"
14 discard:
15 build:
Jakub Josef1a828962018-01-23 12:33:34 +010016 keep_num: 50
Dmitrii Kabanovb908f302017-08-11 00:21:59 -070017 artifact:
Jakub Josef1a828962018-01-23 12:33:34 +010018 keep_num: 50
Oleg Basov8c0bbeb2019-03-27 01:19:14 +010019 concurrent: true
Dmitrii Kabanovb908f302017-08-11 00:21:59 -070020 scm:
21 type: git
22 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Jakub Josef7938b532017-12-12 18:02:03 +010023 branch: "${_param:jenkins_pipelines_branch}"
Dmitrii Kabanovb908f302017-08-11 00:21:59 -070024 credentials: "gerrit"
25 script: validate-cloud.groovy
Dmitrii Kabanovb908f302017-08-11 00:21:59 -070026 param:
Oleg Basovf465e462019-03-05 23:54:47 +010027 ACCUMULATE_RESULTS:
28 type: boolean
29 default: 'true'
30 description: If chosen then previous build results will be used in the current build
31 JOB_TIMEOUT:
32 type: string
33 default: "3"
34 description: Job timeout in hours
Oleg Basovf465e462019-03-05 23:54:47 +010035 TEST_IMAGE:
36 type: string
Oleg Basov8c0bbeb2019-03-27 01:19:14 +010037 default: "xrally/xrally-openstack:latest"
38 description: Rally docker image to use for running tests
Oleg Basovf465e462019-03-05 23:54:47 +010039 TARGET_NODE:
40 type: string
41 default: ""
42 description: Target node where this job will be executed from
Dmitrii Kabanovb908f302017-08-11 00:21:59 -070043 SALT_MASTER_URL:
44 type: string
Sam Stoelinga1539f3c2017-09-25 17:05:40 -070045 default: "${_param:jenkins_salt_api_url}"
46 description: Full Salt API address [e.g. https://10.10.10.2:6969]
Dmitrii Kabanovb908f302017-08-11 00:21:59 -070047 SALT_MASTER_CREDENTIALS:
48 type: string
49 default: "salt"
Tetiana Korchakd644b352017-08-25 10:30:57 -070050 description: Credentials to the Salt API
Oleg Basovf465e462019-03-05 23:54:47 +010051 VALIDATE_PARAMS:
52 type: text
Oleg Basov8c0bbeb2019-03-27 01:19:14 +010053 description: YAML of parameters for Rally test
54 default: |
Oleg Basovf465e462019-03-05 23:54:47 +010055 ---
56 rally:
57 # Name of availability zone
58 AVAILABILITY_ZONE: 'nova'
59 # External(floating) network name
60 FLOATING_NETWORK: 'public'
61 # Rally base image for glance
62 RALLY_IMAGE: 'cirros'
63 # Flavor name for Rally scenarios
64 RALLY_FLAVOR: 'm1.tiny'
65 # Git repository with configuration files for Rally
66 RALLY_CONFIG_REPO: 'https://github.com/Mirantis/scale-scenarios'
67 # Git branch which will be used during the checkout
68 RALLY_CONFIG_BRANCH: 'master'
69 # Git repository with Rally plugins
70 RALLY_PLUGINS_REPO: 'https://github.com/Mirantis/rally-plugins'
71 # Git branch which will be used during the checkout
72 RALLY_PLUGINS_BRANCH: 'master'
73 # Rally scenarios directory or file with scenarios
74 RALLY_SCENARIOS: 'rally-scenarios-light'
75 # Stacklight Rally scenarios directory or file with scenarios
76 RALLY_SL_SCENARIOS: 'rally-stacklight'
77 # Rally scenarios arguments file
78 RALLY_TASK_ARGS_FILE: 'job-params-light.yaml'
79 # Rally-compliant DB connection string for long-term results storing
80 RALLY_DB_CONN_STRING: ''
81 # List of tags for marking Rally tasks. Used as filter for Rally trends
82 RALLY_TAGS:
83 # - 'platform=openstack'
84 # - 'env=your_env_name'
85 # - 'cmp=2'
86 # Generate rally trends report. Requires an external DB
87 RALLY_TRENDS: 'false'
88 # If chosen K8S Rally plugin will be used to test K8S cluster
89 K8S_RALLY: 'false'
90 # If chosen then Stacklight Rally test will be executed
91 STACKLIGHT_RALLY: 'false'
92 # Path for reports outside docker image
93 REPORT_DIR: '/root/qa_results'
94 # Scenarios names/dirs to skip
95 SKIP_LIST: ''
Oleksii Zhurbad97ac812017-10-05 14:18:50 -050096 cvp-sanity:
97 type: workflow-scm
Oleksii Zhurba07076052017-11-08 12:59:25 -060098 name: cvp-sanity
Oleksii Zhurbad97ac812017-10-05 14:18:50 -050099 display_name: "CVP - Sanity checks"
100 discard:
101 build:
102 keep_num: 20
103 artifact:
104 keep_num: 20
105 concurrent: false
106 scm:
107 type: git
108 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Jakub Josef7938b532017-12-12 18:02:03 +0100109 branch: "${_param:jenkins_pipelines_branch}"
Oleksii Zhurbad97ac812017-10-05 14:18:50 -0500110 credentials: "gerrit"
Oleksii Zhurbac0af3f02018-06-14 13:47:54 -0500111 script: cvp-runner.groovy
Oleksii Zhurbad97ac812017-10-05 14:18:50 -0500112 param:
Oleksii Zhurba26848a62018-09-03 21:29:11 -0500113 IMAGE:
114 type: string
azvyagintsev33afffc2019-02-22 14:20:20 +0200115 default: ${_param:docker_image_cvp_sanity_checks}
Oleksii Zhurba26848a62018-09-03 21:29:11 -0500116 description: Docker image with tests and all pip dependecies to use for testing
Oleksii Zhurbad97ac812017-10-05 14:18:50 -0500117 SALT_MASTER_URL:
118 type: string
Oleksii Zhurba07076052017-11-08 12:59:25 -0600119 default: "${_param:jenkins_salt_api_url}"
Oleksii Zhurbad97ac812017-10-05 14:18:50 -0500120 description: Full Salt API address [e.g. https://10.10.10.2:6969]
121 SALT_MASTER_CREDENTIALS:
122 type: string
123 default: "salt"
Hanna Arhipova718fbf62019-01-24 18:50:02 +0200124 EXTRA_PARAMS:
125 type: text
126 default: "---"
127 description: YAML context with additional parameters
Oleksii Zhurba852a1fa2017-12-12 16:27:18 -0600128 cvp-func:
129 type: workflow-scm
130 name: cvp-func
131 display_name: "CVP - Functional tests"
132 discard:
133 build:
134 keep_num: 20
135 artifact:
136 keep_num: 20
137 concurrent: false
138 scm:
139 type: git
140 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Oleksii Zhurba0edf9e52018-10-24 19:00:41 -0500141 branch: "${_param:jenkins_pipelines_branch}"
Oleksii Zhurba852a1fa2017-12-12 16:27:18 -0600142 credentials: "gerrit"
143 script: cvp-func.groovy
144 param:
145 DEBUG_MODE:
146 type: boolean
147 default: 'false'
148 description: Enable if you need to keep container after the test and debug
149 SKIP_LIST_PATH:
150 type: string
151 default: "cvp-configuration/tempest/skip-list.yaml"
152 description: Path to skip list in container
153 SALT_MASTER_URL:
154 type: string
155 default: "${_param:jenkins_salt_api_url}"
156 description: Full Salt API address [e.g. https://10.10.10.2:6969]
157 SALT_MASTER_CREDENTIALS:
158 type: string
159 default: "salt"
160 description: Credentials to the Salt API
161 TEST_IMAGE:
162 type: string
Oleksii Zhurba26848a62018-09-03 21:29:11 -0500163 default: "xrally/xrally-openstack:0.10.1"
Oleksii Zhurba852a1fa2017-12-12 16:27:18 -0600164 description: Docker image to use for running Rally/Tempest
165 TARGET_NODE:
166 type: string
mkraynov16a69cb2018-08-01 15:39:16 +0400167 default: ""
Oleksii Zhurba852a1fa2017-12-12 16:27:18 -0600168 description: Node where container with Tempest will be run
169 PROXY:
170 type: string
171 default: ""
Oleksii Zhurba462124e2018-08-14 10:20:26 -0500172 description: "Proxy address to use to access the Internet. For offline mode, use \"offline\" value."
Oleksii Zhurba852a1fa2017-12-12 16:27:18 -0600173 TEMPEST_TEST_PATTERN:
174 type: string
175 default: "set=smoke"
Oleksii Zhurba7bb22762018-03-21 15:52:38 -0500176 description: Use set=smoke (or identity,full...) or just test name
Oleksii Zhurba852a1fa2017-12-12 16:27:18 -0600177 TEMPEST_ENDPOINT_TYPE:
178 type: choice
179 choices:
180 - internalURL
181 - adminURL
182 - publicURL
183 description: Openstack endpoint type to use during test run
184 TEMPEST_REPO:
185 type: string
186 default: "https://github.com/openstack/tempest"
187 description: URL to Tempest repo (local or remote) or path to tempest folder in container
188 TOOLS_REPO:
189 type: string
190 default: "https://github.com/Mirantis/cvp-configuration"
191 description: URL of repo where testing tools, scenarios, configs are located.
Oleksii Zhurbaf59df9f2017-12-07 14:38:49 -0600192 cvp-ha:
193 type: workflow-scm
194 name: cvp-ha
195 display_name: "CVP - HA tests"
196 discard:
197 build:
198 keep_num: 20
199 artifact:
200 keep_num: 20
201 concurrent: false
202 scm:
203 type: git
204 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Oleksii Zhurba0edf9e52018-10-24 19:00:41 -0500205 branch: "${_param:jenkins_pipelines_branch}"
Oleksii Zhurbaf59df9f2017-12-07 14:38:49 -0600206 credentials: "gerrit"
207 script: cvp-ha.groovy
208 param:
209 SALT_MASTER_URL:
210 type: string
211 default: "${_param:jenkins_salt_api_url}"
212 description: Full Salt API address [e.g. https://10.10.10.2:6969]
213 SALT_MASTER_CREDENTIALS:
214 type: string
215 default: "salt"
216 description: Credentials to the Salt API
217 TEMPEST_TARGET_NODE:
218 type: string
mkraynov16a69cb2018-08-01 15:39:16 +0400219 default: ""
Oleksii Zhurbaf59df9f2017-12-07 14:38:49 -0600220 description: Node where container with tempest will be run
221 TEST_IMAGE:
222 type: string
Oleksii Zhurba26848a62018-09-03 21:29:11 -0500223 default: "xrally/xrally-openstack:0.10.1"
Oleksii Zhurbaf59df9f2017-12-07 14:38:49 -0600224 description: Docker image to use for running Rally/Tempest
225 TARGET_NODES:
226 type: string
227 default: "ctl*"
228 description: Nodes to test
229 DEBUG_MODE:
230 type: boolean
231 default: 'false'
232 description: If you need to debug (keep container after test), please enabled this
233 RETRY_CHECK_STATUS:
234 type: string
235 default: "200"
236 description: If you have any problems with timeouts (e.g. while waiting for node to be up/down), please increase this value
237 SKIP_LIST_PATH:
238 type: string
Oleksii Zhurba7bb22762018-03-21 15:52:38 -0500239 default: "cvp-configuration/tempest/skip-list.yaml"
Oleksii Zhurbaf59df9f2017-12-07 14:38:49 -0600240 description: path to skip-list file inside container
241 PROXY:
242 type: string
243 default: ""
Oleksii Zhurba462124e2018-08-14 10:20:26 -0500244 description: "Proxy address to use to access the Internet. For offline mode, use \"offline\" value."
Oleksii Zhurbaf59df9f2017-12-07 14:38:49 -0600245 TEMPEST_TEST_PATTERN:
246 type: string
247 default: "set=smoke"
Oleksii Zhurba7bb22762018-03-21 15:52:38 -0500248 description: Use set=smoke (or identity,full...) or just test name
Oleksii Zhurbaf59df9f2017-12-07 14:38:49 -0600249 MANUAL_CONFIRMATION:
250 type: boolean
251 default: 'false'
252 description: Ask for confirmation before doing something destructive (reboot/shutdown node)
253 TEMPEST_REPO:
254 type: string
255 default: "https://github.com/openstack/tempest"
256 description: Can be repo url (local or remote) or path to folder (inside container) with Tempest
257 TOOLS_REPO:
258 type: string
Oleksii Zhurba7bb22762018-03-21 15:52:38 -0500259 default: "https://github.com/Mirantis/cvp-configuration"
Oleksii Zhurbaf59df9f2017-12-07 14:38:49 -0600260 description: URL of repo where testing tools, scenarios, configs are located.
Oleksii Zhurba535032c2017-12-12 16:31:57 -0600261 cvp-perf:
262 type: workflow-scm
263 name: cvp-perf
264 display_name: "CVP - Performance tests"
265 discard:
266 build:
267 keep_num: 20
268 artifact:
269 keep_num: 20
270 concurrent: false
271 scm:
272 type: git
273 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Oleksii Zhurba0edf9e52018-10-24 19:00:41 -0500274 branch: "${_param:jenkins_pipelines_branch}"
Oleksii Zhurba535032c2017-12-12 16:31:57 -0600275 credentials: "gerrit"
276 script: cvp-perf.groovy
277 param:
278 DEBUG_MODE:
279 type: boolean
280 default: 'false'
281 description: Enable if you need to keep container after the test and debug
282 RALLY_SCENARIO_FILE:
283 type: string
284 default: "cvp-configuration/rally/rally_scenarios.json"
285 description: Path to scenario file in container
286 TEST_IMAGE:
287 type: string
Oleksii Zhurba26848a62018-09-03 21:29:11 -0500288 default: "xrally/xrally-openstack:0.10.1"
Oleksii Zhurba535032c2017-12-12 16:31:57 -0600289 description: Docker image to use for running Rally/Tempest
290 SALT_MASTER_URL:
291 type: string
292 default: "${_param:jenkins_salt_api_url}"
293 description: Full Salt API address [e.g. https://10.10.10.2:6969]
294 SALT_MASTER_CREDENTIALS:
295 type: string
296 default: "salt"
297 description: Credentials to the Salt API
298 TARGET_NODE:
299 type: string
mkraynov16a69cb2018-08-01 15:39:16 +0400300 default: ""
Oleksii Zhurba535032c2017-12-12 16:31:57 -0600301 description: Node where docker container with Rally will be run
302 TOOLS_REPO:
303 type: string
304 default: "https://github.com/Mirantis/cvp-configuration"
Oleksii Zhurba462124e2018-08-14 10:20:26 -0500305 description: URL of repo where testing tools, scenarios, configs are located.
Oleksii Zhurba535032c2017-12-12 16:31:57 -0600306 PROXY:
307 type: string
308 default: ""
Oleksii Zhurba462124e2018-08-14 10:20:26 -0500309 description: "Proxy address to use to access the Internet. For offline mode, use \"offline\" value."
Oleksii Zhurba68ad5042018-02-16 20:13:07 -0600310 cvp-stacklight:
311 type: workflow-scm
312 name: cvp-stacklight
313 display_name: "CVP - Stacklight tests"
314 discard:
315 build:
316 keep_num: 20
317 artifact:
318 keep_num: 20
319 concurrent: false
320 scm:
321 type: git
322 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
323 branch: "${_param:jenkins_pipelines_branch}"
324 credentials: "gerrit"
Hanna Arhipova8285e612019-02-14 13:45:17 +0200325 script: cvp-runner.groovy
Oleksii Zhurba68ad5042018-02-16 20:13:07 -0600326 param:
Hanna Arhipova8285e612019-02-14 13:45:17 +0200327 IMAGE:
328 type: string
329 default: ${_param:docker_image_cvp_sanity_checks}
330 description: Docker image with tests and all pip dependecies to use for testing
Oleksii Zhurba68ad5042018-02-16 20:13:07 -0600331 SALT_MASTER_URL:
332 type: string
333 default: "${_param:jenkins_salt_api_url}"
334 description: Full Salt API address [e.g. https://10.10.10.2:6969]
335 SALT_MASTER_CREDENTIALS:
336 type: string
337 default: "salt"
Hanna Arhipova8285e612019-02-14 13:45:17 +0200338 EXTRA_PARAMS:
339 type: text
340 default: |
341 envs:
342 - SL_AUTOCONF=True
343 description: YAML context with additional parameters
Oleksii Zhurbae729cf72018-06-13 11:29:46 -0500344 cvp-spt:
345 type: workflow-scm
346 name: cvp-spt
347 display_name: "CVP - Simplified Performance Tests (SPT)"
348 discard:
349 build:
350 keep_num: 20
351 artifact:
352 keep_num: 20
353 concurrent: false
354 scm:
355 type: git
356 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
357 branch: "${_param:jenkins_pipelines_branch}"
358 credentials: "gerrit"
Oleksii Zhurba26848a62018-09-03 21:29:11 -0500359 script: cvp-runner.groovy
Oleksii Zhurbae729cf72018-06-13 11:29:46 -0500360 param:
Oleksii Zhurba26848a62018-09-03 21:29:11 -0500361 IMAGE:
362 type: string
azvyagintsev33afffc2019-02-22 14:20:20 +0200363 default: ${_param:docker_image_cvp_sanity_checks}
Oleksii Zhurba26848a62018-09-03 21:29:11 -0500364 description: Docker image with tests and all pip dependecies to use for testing
Oleksii Zhurbae729cf72018-06-13 11:29:46 -0500365 SALT_MASTER_URL:
366 type: string
367 default: "${_param:jenkins_salt_api_url}"
368 description: Full Salt API address [e.g. https://10.10.10.2:6969]
369 SALT_MASTER_CREDENTIALS:
370 type: string
371 default: "salt"
Hanna Arhipova718fbf62019-01-24 18:50:02 +0200372 EXTRA_PARAMS:
373 type: text
374 default: "---"
375 description: YAML context with additional parameters
Oleg Basove8143de2019-01-29 01:36:06 +0100376 cvp-shaker:
377 type: workflow-scm
378 name: cvp-shaker
379 display_name: "CVP - Shaker network tests"
380 discard:
381 build:
382 keep_num: 20
383 artifact:
384 keep_num: 20
385 concurrent: false
386 scm:
387 type: git
388 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
389 branch: "${_param:jenkins_pipelines_branch}"
390 credentials: "gerrit"
391 script: cvp-shaker.groovy
392 param:
393 IMAGE:
394 type: string
395 default: "${_param:mcp_docker_registry}/mirantis/cvp/cvp-shaker:${_param:mcp_version}"
396 description: Docker image to use for running Shaker.
397 SALT_MASTER_URL:
398 type: string
399 default: "${_param:jenkins_salt_api_url}"
400 description: Full Salt API address [e.g. https://10.10.10.2:6969].
401 SALT_MASTER_CREDENTIALS:
402 type: string
403 default: "salt"
404 description: Credentials to the Salt API.
405 SHAKER_PARAMS:
406 type: text
407 default: |
408 ---
409 SHAKER_SERVER_ENDPOINT: '10.13.0.15:5999'
410 SHAKER_SCENARIOS: 'scenarios/essential'
411 SKIP_LIST: ''
Oleg Basovc3602a72019-02-15 15:49:09 +0100412 MATRIX: ''
Oleg Basove8143de2019-01-29 01:36:06 +0100413 image_builder:
414 # - SHAKER_FLAVOR_DISK=4
415 # - SHAKER_FLAVOR_RAM=512
416 # - SHAKER_FLAVOR_VCPUS=1
417 # - SHAKER_IMAGE_BUILDER_MODE='dib'
418 shaker:
419 # - SHAKER_AGENT_JOIN_TIMEOUT=300
420 # - SHAKER_AGENT_LOSS_TIMEOUT=120
421 # - SCENARIO_AVAILABILITY_ZONE='nova,internal'
422 # - SCENARIO_COMPUTE_NODES=2
423 # - SHAKER_EXTERNAL_NET='public'
424 description: |
425 YAML context with parameters for running Shaker tests, where
426 "SHAKER_SERVER_ENDPOINT" - Address for Shaker server connections (host:port). Should be accessible
427 from tenant's VM network (usually equals to public address of cicd node)
428 "SHAKER_SCENARIOS" - Path to shaker scenarios in the cvp-shaker docker image
429 (can be directory or specific file). Main categories are
430 scenarios/essential/l2
431 scenarios/essential/l3
432 scenarios/additional/cross_az
433 scenarios/additional/external
434 scenarios/additional/qos
Oleg Basovc3602a72019-02-15 15:49:09 +0100435 "MATRIX" - Set the matrix of extra parameters for the scenario. The value is specified in JSON format.
436 To override a scenario duration one may provide "{time: 10}", or to override list of hosts:
437 "{host:[ping.online.net, iperf.eenet.ee]}". When several parameters are overridden all combinations are
438 tested. It is a required field for some of external-category scenarios when the host name with iperf3
439 server needs to be provided as a command-line parameter, e.g. "{host: 10.13.100.4}".
Oleg Basove8143de2019-01-29 01:36:06 +0100440 "SKIP_LIST" - Comma-separated list of Shaker scenarios to skip, directories or files inside scenarios/
441 of cvp-shaker, e.g. "dense_l2.yaml,full_l2.yaml,l3"
442 "image_builder" - shaker-image-builder env variables
443 SHAKER_FLAVOR_DISK=4
444 SHAKER_FLAVOR_RAM=512
445 SHAKER_FLAVOR_VCPUS=1
446 SHAKER_IMAGE_BUILDER_MODE='dib'
447 "shaker" - main shaker runner env variables
448 SHAKER_AGENT_JOIN_TIMEOUT=300
449 SHAKER_AGENT_LOSS_TIMEOUT=120
450 SCENARIO_AVAILABILITY_ZONE='nova,internal'
451 SCENARIO_COMPUTE_NODES=2
452 SHAKER_EXTERNAL_NET='public'
453 For the more detailed description of the last two categories please refer to the shaker documentation
454 https://pyshaker.readthedocs.io/en/latest/tools.html