blob: a59fe91eba264cf2dd3a163f6e6934c0ce0079cc [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.*"
Oleksii Zhurba8d368a52019-07-24 16:46:11 -05009 CVP:
Oleksii Zhurba348c8142019-07-17 12:58:35 -050010 enabled: true
11 type: ListView
12 include_regex: "cvp.*"
Dmitrii Kabanovb908f302017-08-11 00:21:59 -070013 job:
14 validate_openstack:
15 type: workflow-scm
16 name: validate-openstack
17 display_name: "Validate - Openstack"
18 discard:
19 build:
Jakub Josef1a828962018-01-23 12:33:34 +010020 keep_num: 50
Dmitrii Kabanovb908f302017-08-11 00:21:59 -070021 artifact:
Jakub Josef1a828962018-01-23 12:33:34 +010022 keep_num: 50
Oleg Basov8c0bbeb2019-03-27 01:19:14 +010023 concurrent: true
Dmitrii Kabanovb908f302017-08-11 00:21:59 -070024 scm:
25 type: git
26 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Jakub Josef7938b532017-12-12 18:02:03 +010027 branch: "${_param:jenkins_pipelines_branch}"
Sergey Galkinef9eabf2019-06-19 17:53:07 +040028 credentials: ${_param:jenkins_gerrit_credentials}
Dmitrii Kabanovb908f302017-08-11 00:21:59 -070029 script: validate-cloud.groovy
Dmitrii Kabanovb908f302017-08-11 00:21:59 -070030 param:
Oleg Basovf465e462019-03-05 23:54:47 +010031 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 Basov90042ad2019-04-07 12:31:22 +020037 default: "xrally/xrally-openstack:1.4.0"
Oleg Basov8c0bbeb2019-03-27 01:19:14 +010038 description: Rally docker image to use for running tests
Dmitrii Kabanovb908f302017-08-11 00:21:59 -070039 SALT_MASTER_URL:
40 type: string
Sam Stoelinga1539f3c2017-09-25 17:05:40 -070041 default: "${_param:jenkins_salt_api_url}"
42 description: Full Salt API address [e.g. https://10.10.10.2:6969]
Dmitrii Kabanovb908f302017-08-11 00:21:59 -070043 SALT_MASTER_CREDENTIALS:
44 type: string
45 default: "salt"
Tetiana Korchakd644b352017-08-25 10:30:57 -070046 description: Credentials to the Salt API
Oleg Basovf465e462019-03-05 23:54:47 +010047 VALIDATE_PARAMS:
48 type: text
Oleg Basov8c0bbeb2019-03-27 01:19:14 +010049 description: YAML of parameters for Rally test
50 default: |
Oleg Basovf465e462019-03-05 23:54:47 +010051 ---
52 rally:
53 # Name of availability zone
54 AVAILABILITY_ZONE: 'nova'
55 # External(floating) network name
56 FLOATING_NETWORK: 'public'
57 # Rally base image for glance
58 RALLY_IMAGE: 'cirros'
59 # Flavor name for Rally scenarios
60 RALLY_FLAVOR: 'm1.tiny'
61 # Git repository with configuration files for Rally
Oleg Basov90042ad2019-04-07 12:31:22 +020062 RALLY_CONFIG_REPO: 'https://review.gerrithub.io/Mirantis/scale-scenarios'
Oleg Basovf465e462019-03-05 23:54:47 +010063 # Git branch which will be used during the checkout
64 RALLY_CONFIG_BRANCH: 'master'
65 # Git repository with Rally plugins
66 RALLY_PLUGINS_REPO: 'https://github.com/Mirantis/rally-plugins'
67 # Git branch which will be used during the checkout
68 RALLY_PLUGINS_BRANCH: 'master'
69 # Rally scenarios directory or file with scenarios
70 RALLY_SCENARIOS: 'rally-scenarios-light'
71 # Stacklight Rally scenarios directory or file with scenarios
72 RALLY_SL_SCENARIOS: 'rally-stacklight'
73 # Rally scenarios arguments file
74 RALLY_TASK_ARGS_FILE: 'job-params-light.yaml'
75 # Rally-compliant DB connection string for long-term results storing
76 RALLY_DB_CONN_STRING: ''
77 # List of tags for marking Rally tasks. Used as filter for Rally trends
78 RALLY_TAGS:
79 # - 'platform=openstack'
80 # - 'env=your_env_name'
81 # - 'cmp=2'
82 # Generate rally trends report. Requires an external DB
83 RALLY_TRENDS: 'false'
84 # If chosen K8S Rally plugin will be used to test K8S cluster
85 K8S_RALLY: 'false'
86 # If chosen then Stacklight Rally test will be executed
87 STACKLIGHT_RALLY: 'false'
Oleg Basovf465e462019-03-05 23:54:47 +010088 # Scenarios names/dirs to skip
89 SKIP_LIST: ''
Oleg Basov90042ad2019-04-07 12:31:22 +020090 # Run in parallel for each directory inside RALLY_SCENARIOS and RALLY_SL_SCENARIOS
91 PARALLEL_PERFORMANCE: 'false'
Oleg Basov54bde2f2019-05-27 16:43:26 +020092 # If you are running longevity scenarios with parallel performance enabled on a cicd node
93 # with less than 21GB, you may consider disabling generation of html reports. Each Rally
94 # process consumes ~ 4GB of memory when generating reports on top of week amount of data
95 GENERATE_REPORT: 'true'
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}"
Sergey Galkinef9eabf2019-06-19 17:53:07 +0400110 credentials: ${_param:jenkins_gerrit_credentials}
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
Oleksii Zhurba348c8142019-07-17 12:58:35 -0500115 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 Zhurba348c8142019-07-17 12:58:35 -0500120 description: Full Salt API address [e.g. https://10.10.10.2:8969]
Oleksii Zhurbad97ac812017-10-05 14:18:50 -0500121 SALT_MASTER_CREDENTIALS:
122 type: string
123 default: "salt"
Hanna Arhipova718fbf62019-01-24 18:50:02 +0200124 EXTRA_PARAMS:
125 type: text
Oleksii Zhurba592e14c2019-04-16 17:44:57 -0500126 default: |
127 envs:
128 - tests_set=''
Ievgeniia Zadorozhna761850f2019-11-13 18:37:39 +0300129 override_config:
130 skipped_nodes: []
131 description: |
132 YAML context with additional parameters. 'envs' key is for environment variables, 'override_config' key is for overriding the global config in YAML format (good for nested parameters). Example:
133 envs:
134 - tests_set='tests/test_mtu.py'
135 override_config:
136 drivetrain_version: 2019.2.0
137 skipped_groups:
138 - log
139 test_duplicate_ips:
140 skipped_ifaces:
141 - lo
142 - virbr0
143 - docker_gwbridge
144 - docker0
145 test_packages:
146 skipped_packages: []
147 skip_test: 'false'
Oleksii Zhurba852a1fa2017-12-12 16:27:18 -0600148 cvp-func:
149 type: workflow-scm
150 name: cvp-func
151 display_name: "CVP - Functional tests"
152 discard:
153 build:
154 keep_num: 20
155 artifact:
156 keep_num: 20
157 concurrent: false
158 scm:
159 type: git
160 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Oleksii Zhurba0edf9e52018-10-24 19:00:41 -0500161 branch: "${_param:jenkins_pipelines_branch}"
Sergey Galkinef9eabf2019-06-19 17:53:07 +0400162 credentials: ${_param:jenkins_gerrit_credentials}
Oleksii Zhurba852a1fa2017-12-12 16:27:18 -0600163 script: cvp-func.groovy
164 param:
165 DEBUG_MODE:
166 type: boolean
167 default: 'false'
168 description: Enable if you need to keep container after the test and debug
169 SKIP_LIST_PATH:
170 type: string
171 default: "cvp-configuration/tempest/skip-list.yaml"
172 description: Path to skip list in container
173 SALT_MASTER_URL:
174 type: string
Oleksii Zhurba348c8142019-07-17 12:58:35 -0500175 default: "http://${_param:salt_master_host}:${_param:salt_master_api_port}"
176 description: Full Salt API address [e.g. http://10.10.10.2:6969]
Oleksii Zhurba852a1fa2017-12-12 16:27:18 -0600177 SALT_MASTER_CREDENTIALS:
178 type: string
179 default: "salt"
180 description: Credentials to the Salt API
181 TEST_IMAGE:
182 type: string
Oleksii Zhurba348c8142019-07-17 12:58:35 -0500183 default: "${_param:docker_image_cvp_xrally}"
Oleksii Zhurba852a1fa2017-12-12 16:27:18 -0600184 description: Docker image to use for running Rally/Tempest
185 TARGET_NODE:
186 type: string
mkraynov16a69cb2018-08-01 15:39:16 +0400187 default: ""
Oleksii Zhurba852a1fa2017-12-12 16:27:18 -0600188 description: Node where container with Tempest will be run
189 PROXY:
190 type: string
191 default: ""
Oleksii Zhurba462124e2018-08-14 10:20:26 -0500192 description: "Proxy address to use to access the Internet. For offline mode, use \"offline\" value."
Oleksii Zhurba852a1fa2017-12-12 16:27:18 -0600193 TEMPEST_TEST_PATTERN:
194 type: string
195 default: "set=smoke"
Oleksii Zhurba7bb22762018-03-21 15:52:38 -0500196 description: Use set=smoke (or identity,full...) or just test name
Oleksii Zhurba852a1fa2017-12-12 16:27:18 -0600197 TEMPEST_ENDPOINT_TYPE:
198 type: choice
199 choices:
200 - internalURL
201 - adminURL
202 - publicURL
203 description: Openstack endpoint type to use during test run
204 TEMPEST_REPO:
205 type: string
206 default: "https://github.com/openstack/tempest"
207 description: URL to Tempest repo (local or remote) or path to tempest folder in container
208 TOOLS_REPO:
209 type: string
210 default: "https://github.com/Mirantis/cvp-configuration"
211 description: URL of repo where testing tools, scenarios, configs are located.
Oleksii Zhurbaf59df9f2017-12-07 14:38:49 -0600212 cvp-ha:
213 type: workflow-scm
214 name: cvp-ha
215 display_name: "CVP - HA tests"
216 discard:
217 build:
218 keep_num: 20
219 artifact:
220 keep_num: 20
221 concurrent: false
222 scm:
223 type: git
224 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Oleksii Zhurba0edf9e52018-10-24 19:00:41 -0500225 branch: "${_param:jenkins_pipelines_branch}"
Sergey Galkinef9eabf2019-06-19 17:53:07 +0400226 credentials: ${_param:jenkins_gerrit_credentials}
Oleksii Zhurbaf59df9f2017-12-07 14:38:49 -0600227 script: cvp-ha.groovy
228 param:
229 SALT_MASTER_URL:
230 type: string
Oleksii Zhurba348c8142019-07-17 12:58:35 -0500231 default: "http://${_param:salt_master_host}:${_param:salt_master_api_port}"
232 description: Full Salt API address [e.g. http://10.10.10.2:6969]
Oleksii Zhurbaf59df9f2017-12-07 14:38:49 -0600233 SALT_MASTER_CREDENTIALS:
234 type: string
235 default: "salt"
236 description: Credentials to the Salt API
237 TEMPEST_TARGET_NODE:
238 type: string
mkraynov16a69cb2018-08-01 15:39:16 +0400239 default: ""
Oleksii Zhurbaf59df9f2017-12-07 14:38:49 -0600240 description: Node where container with tempest will be run
241 TEST_IMAGE:
242 type: string
Oleksii Zhurba348c8142019-07-17 12:58:35 -0500243 default: "${_param:docker_image_cvp_xrally}"
Oleksii Zhurbaf59df9f2017-12-07 14:38:49 -0600244 description: Docker image to use for running Rally/Tempest
245 TARGET_NODES:
246 type: string
247 default: "ctl*"
248 description: Nodes to test
249 DEBUG_MODE:
250 type: boolean
251 default: 'false'
252 description: If you need to debug (keep container after test), please enabled this
253 RETRY_CHECK_STATUS:
254 type: string
255 default: "200"
256 description: If you have any problems with timeouts (e.g. while waiting for node to be up/down), please increase this value
257 SKIP_LIST_PATH:
258 type: string
Oleksii Zhurba7bb22762018-03-21 15:52:38 -0500259 default: "cvp-configuration/tempest/skip-list.yaml"
Oleksii Zhurbaf59df9f2017-12-07 14:38:49 -0600260 description: path to skip-list file inside container
261 PROXY:
262 type: string
263 default: ""
Oleksii Zhurba462124e2018-08-14 10:20:26 -0500264 description: "Proxy address to use to access the Internet. For offline mode, use \"offline\" value."
Oleksii Zhurbaf59df9f2017-12-07 14:38:49 -0600265 TEMPEST_TEST_PATTERN:
266 type: string
267 default: "set=smoke"
Oleksii Zhurba7bb22762018-03-21 15:52:38 -0500268 description: Use set=smoke (or identity,full...) or just test name
Oleksii Zhurbaf59df9f2017-12-07 14:38:49 -0600269 MANUAL_CONFIRMATION:
270 type: boolean
271 default: 'false'
272 description: Ask for confirmation before doing something destructive (reboot/shutdown node)
273 TEMPEST_REPO:
274 type: string
275 default: "https://github.com/openstack/tempest"
276 description: Can be repo url (local or remote) or path to folder (inside container) with Tempest
277 TOOLS_REPO:
278 type: string
Oleksii Zhurba7bb22762018-03-21 15:52:38 -0500279 default: "https://github.com/Mirantis/cvp-configuration"
Oleksii Zhurbaf59df9f2017-12-07 14:38:49 -0600280 description: URL of repo where testing tools, scenarios, configs are located.
Oleksii Zhurba35fd4f82019-03-26 16:26:43 -0500281 cvp-tempest:
282 type: workflow-scm
283 name: cvp-tempest
Oleksii Zhurba904c3a62019-05-30 15:56:05 -0500284 display_name: "CVP - Tempest (new)"
Oleksii Zhurba35fd4f82019-03-26 16:26:43 -0500285 discard:
286 build:
287 keep_num: 20
288 artifact:
289 keep_num: 20
290 concurrent: false
291 scm:
292 type: git
293 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
294 branch: "${_param:jenkins_pipelines_branch}"
Sergey Galkinef9eabf2019-06-19 17:53:07 +0400295 credentials: ${_param:jenkins_gerrit_credentials}
Oleksii Zhurba35fd4f82019-03-26 16:26:43 -0500296 script: cvp-tempest.groovy
297 param:
298 PREPARE_RESOURCES:
299 type: boolean
300 default: true
301 description: Prepare resources for Tempest
302 SALT_MASTER_URL:
303 type: string
Oleksii Zhurba348c8142019-07-17 12:58:35 -0500304 default: "http://${_param:salt_master_host}:${_param:salt_master_api_port}"
305 description: Full Salt API address [e.g. http://10.10.10.2:6969]
Oleksii Zhurba35fd4f82019-03-26 16:26:43 -0500306 TEMPEST_TEST_PATTERN:
307 type: string
308 default: "set=smoke"
309 description: Use set=smoke, set=full or just test name (regex)
310 TEMPEST_ENDPOINT_TYPE:
311 type: choice
312 choices:
313 - internalURL
314 - adminURL
315 - publicURL
316 description: Openstack endpoint type to use during test run.
317 EXTRA_PARAMS:
318 type: text
319 default: |
320 ---
321 DEBUG_MODE: false
322 GENERATE_CONFIG: true
Oleksii Zhurba2eed0302019-07-17 12:55:27 -0500323 TEST_IMAGE: "${_param:docker_image_cvp_tempest}"
Oleksii Zhurba35fd4f82019-03-26 16:26:43 -0500324 report_prefix: "cvp_"
325 description: YAML context with additional parameters
Oleksii Zhurba535032c2017-12-12 16:31:57 -0600326 cvp-perf:
327 type: workflow-scm
328 name: cvp-perf
329 display_name: "CVP - Performance tests"
330 discard:
331 build:
332 keep_num: 20
333 artifact:
334 keep_num: 20
335 concurrent: false
336 scm:
337 type: git
338 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Oleksii Zhurba0edf9e52018-10-24 19:00:41 -0500339 branch: "${_param:jenkins_pipelines_branch}"
Sergey Galkinef9eabf2019-06-19 17:53:07 +0400340 credentials: ${_param:jenkins_gerrit_credentials}
Oleksii Zhurba535032c2017-12-12 16:31:57 -0600341 script: cvp-perf.groovy
342 param:
343 DEBUG_MODE:
344 type: boolean
345 default: 'false'
346 description: Enable if you need to keep container after the test and debug
347 RALLY_SCENARIO_FILE:
348 type: string
349 default: "cvp-configuration/rally/rally_scenarios.json"
350 description: Path to scenario file in container
351 TEST_IMAGE:
352 type: string
Oleksii Zhurba348c8142019-07-17 12:58:35 -0500353 default: "${_param:docker_image_cvp_xrally}"
Oleksii Zhurba535032c2017-12-12 16:31:57 -0600354 description: Docker image to use for running Rally/Tempest
355 SALT_MASTER_URL:
356 type: string
Oleksii Zhurba348c8142019-07-17 12:58:35 -0500357 default: "http://${_param:salt_master_host}:${_param:salt_master_api_port}"
358 description: Full Salt API address [e.g. http://10.10.10.2:6969]
Oleksii Zhurba535032c2017-12-12 16:31:57 -0600359 SALT_MASTER_CREDENTIALS:
360 type: string
361 default: "salt"
362 description: Credentials to the Salt API
363 TARGET_NODE:
364 type: string
mkraynov16a69cb2018-08-01 15:39:16 +0400365 default: ""
Oleksii Zhurba535032c2017-12-12 16:31:57 -0600366 description: Node where docker container with Rally will be run
367 TOOLS_REPO:
368 type: string
369 default: "https://github.com/Mirantis/cvp-configuration"
Oleksii Zhurba462124e2018-08-14 10:20:26 -0500370 description: URL of repo where testing tools, scenarios, configs are located.
Oleksii Zhurba535032c2017-12-12 16:31:57 -0600371 PROXY:
372 type: string
373 default: ""
Oleksii Zhurba462124e2018-08-14 10:20:26 -0500374 description: "Proxy address to use to access the Internet. For offline mode, use \"offline\" value."
Oleksii Zhurba68ad5042018-02-16 20:13:07 -0600375 cvp-stacklight:
376 type: workflow-scm
377 name: cvp-stacklight
378 display_name: "CVP - Stacklight tests"
379 discard:
380 build:
381 keep_num: 20
382 artifact:
383 keep_num: 20
384 concurrent: false
385 scm:
386 type: git
387 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
388 branch: "${_param:jenkins_pipelines_branch}"
Sergey Galkinef9eabf2019-06-19 17:53:07 +0400389 credentials: ${_param:jenkins_gerrit_credentials}
Hanna Arhipova8285e612019-02-14 13:45:17 +0200390 script: cvp-runner.groovy
Oleksii Zhurba68ad5042018-02-16 20:13:07 -0600391 param:
Hanna Arhipova8285e612019-02-14 13:45:17 +0200392 IMAGE:
393 type: string
Oleksii Zhurba348c8142019-07-17 12:58:35 -0500394 default: "${_param:docker_image_cvp_sanity_checks}"
Hanna Arhipova8285e612019-02-14 13:45:17 +0200395 description: Docker image with tests and all pip dependecies to use for testing
Oleksii Zhurba68ad5042018-02-16 20:13:07 -0600396 SALT_MASTER_URL:
397 type: string
398 default: "${_param:jenkins_salt_api_url}"
Oleksii Zhurba348c8142019-07-17 12:58:35 -0500399 description: Full Salt API address [e.g. https://10.10.10.2:8969]
Oleksii Zhurba68ad5042018-02-16 20:13:07 -0600400 SALT_MASTER_CREDENTIALS:
401 type: string
402 default: "salt"
Hanna Arhipova8285e612019-02-14 13:45:17 +0200403 EXTRA_PARAMS:
404 type: text
405 default: |
406 envs:
407 - SL_AUTOCONF=True
408 description: YAML context with additional parameters
Oleksii Zhurbae729cf72018-06-13 11:29:46 -0500409 cvp-spt:
410 type: workflow-scm
411 name: cvp-spt
412 display_name: "CVP - Simplified Performance Tests (SPT)"
413 discard:
414 build:
415 keep_num: 20
416 artifact:
417 keep_num: 20
418 concurrent: false
419 scm:
420 type: git
421 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
422 branch: "${_param:jenkins_pipelines_branch}"
Sergey Galkinef9eabf2019-06-19 17:53:07 +0400423 credentials: ${_param:jenkins_gerrit_credentials}
Oleksii Zhurba26848a62018-09-03 21:29:11 -0500424 script: cvp-runner.groovy
Oleksii Zhurbae729cf72018-06-13 11:29:46 -0500425 param:
Oleksii Zhurba26848a62018-09-03 21:29:11 -0500426 IMAGE:
427 type: string
Oleksii Zhurba348c8142019-07-17 12:58:35 -0500428 default: "${_param:docker_image_cvp_sanity_checks}"
Oleksii Zhurba26848a62018-09-03 21:29:11 -0500429 description: Docker image with tests and all pip dependecies to use for testing
Oleksii Zhurbae729cf72018-06-13 11:29:46 -0500430 SALT_MASTER_URL:
431 type: string
432 default: "${_param:jenkins_salt_api_url}"
Oleksii Zhurba348c8142019-07-17 12:58:35 -0500433 description: Full Salt API address [e.g. https://10.10.10.2:8969]
Oleksii Zhurbae729cf72018-06-13 11:29:46 -0500434 SALT_MASTER_CREDENTIALS:
435 type: string
436 default: "salt"
Hanna Arhipova718fbf62019-01-24 18:50:02 +0200437 EXTRA_PARAMS:
438 type: text
Oleksii Zhurba592e14c2019-04-16 17:44:57 -0500439 default: |
440 envs:
441 - tests_set=''
Hanna Arhipova5bccdcf2019-07-16 18:04:04 +0300442 - image_name=Ubuntu
Oleksii Zhurba592e14c2019-04-16 17:44:57 -0500443 - networks=10.101.0.0/24
444 description: 'YAML context with additional parameters. Additional params: HW_NODES, CMP_HOSTS, salt_timeout, skipped_nodes, nova_timeout, iperf_prep_string, IMAGE_SIZE_MB'
Oleg Basove8143de2019-01-29 01:36:06 +0100445 cvp-shaker:
446 type: workflow-scm
447 name: cvp-shaker
448 display_name: "CVP - Shaker network tests"
449 discard:
450 build:
451 keep_num: 20
452 artifact:
453 keep_num: 20
454 concurrent: false
455 scm:
456 type: git
457 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
458 branch: "${_param:jenkins_pipelines_branch}"
Sergey Galkinef9eabf2019-06-19 17:53:07 +0400459 credentials: ${_param:jenkins_gerrit_credentials}
Oleg Basove8143de2019-01-29 01:36:06 +0100460 script: cvp-shaker.groovy
461 param:
462 IMAGE:
463 type: string
Oleg Basov06938fe2019-04-01 20:41:24 +0200464 default: "${_param:docker_image_cvp_shaker_checks}"
Oleg Basove8143de2019-01-29 01:36:06 +0100465 description: Docker image to use for running Shaker.
466 SALT_MASTER_URL:
467 type: string
468 default: "${_param:jenkins_salt_api_url}"
469 description: Full Salt API address [e.g. https://10.10.10.2:6969].
470 SALT_MASTER_CREDENTIALS:
471 type: string
472 default: "salt"
473 description: Credentials to the Salt API.
Ievgeniia Zadorozhna62da35e2019-11-12 15:03:27 +0300474 SLAVE_NODE:
475 type: string
476 default: "slave01"
477 description: Label or name of node to start the Shaker server (should be one of cicd nodes and should have the IP address of SHAKER_SERVER_ENDPOINT).
Oleg Basove8143de2019-01-29 01:36:06 +0100478 SHAKER_PARAMS:
479 type: text
480 default: |
481 ---
482 SHAKER_SERVER_ENDPOINT: '10.13.0.15:5999'
483 SHAKER_SCENARIOS: 'scenarios/essential'
484 SKIP_LIST: ''
Oleg Basovc3602a72019-02-15 15:49:09 +0100485 MATRIX: ''
Oleg Basove8143de2019-01-29 01:36:06 +0100486 image_builder:
487 # - SHAKER_FLAVOR_DISK=4
488 # - SHAKER_FLAVOR_RAM=512
489 # - SHAKER_FLAVOR_VCPUS=1
490 # - SHAKER_IMAGE_BUILDER_MODE='dib'
491 shaker:
492 # - SHAKER_AGENT_JOIN_TIMEOUT=300
493 # - SHAKER_AGENT_LOSS_TIMEOUT=120
494 # - SCENARIO_AVAILABILITY_ZONE='nova,internal'
495 # - SCENARIO_COMPUTE_NODES=2
496 # - SHAKER_EXTERNAL_NET='public'
497 description: |
498 YAML context with parameters for running Shaker tests, where
Ievgeniia Zadorozhna62da35e2019-11-12 15:03:27 +0300499 "SHAKER_SERVER_ENDPOINT" - Address for Shaker server connections (host:port). The IP address of SLAVE_NODE with the port. Should be accessible
500 from tenant's VM network (floating network)
Oleg Basove8143de2019-01-29 01:36:06 +0100501 "SHAKER_SCENARIOS" - Path to shaker scenarios in the cvp-shaker docker image
502 (can be directory or specific file). Main categories are
503 scenarios/essential/l2
504 scenarios/essential/l3
505 scenarios/additional/cross_az
506 scenarios/additional/external
507 scenarios/additional/qos
Oleg Basovc3602a72019-02-15 15:49:09 +0100508 "MATRIX" - Set the matrix of extra parameters for the scenario. The value is specified in JSON format.
509 To override a scenario duration one may provide "{time: 10}", or to override list of hosts:
510 "{host:[ping.online.net, iperf.eenet.ee]}". When several parameters are overridden all combinations are
511 tested. It is a required field for some of external-category scenarios when the host name with iperf3
512 server needs to be provided as a command-line parameter, e.g. "{host: 10.13.100.4}".
Oleg Basove8143de2019-01-29 01:36:06 +0100513 "SKIP_LIST" - Comma-separated list of Shaker scenarios to skip, directories or files inside scenarios/
514 of cvp-shaker, e.g. "dense_l2.yaml,full_l2.yaml,l3"
515 "image_builder" - shaker-image-builder env variables
516 SHAKER_FLAVOR_DISK=4
517 SHAKER_FLAVOR_RAM=512
518 SHAKER_FLAVOR_VCPUS=1
519 SHAKER_IMAGE_BUILDER_MODE='dib'
520 "shaker" - main shaker runner env variables
521 SHAKER_AGENT_JOIN_TIMEOUT=300
522 SHAKER_AGENT_LOSS_TIMEOUT=120
523 SCENARIO_AVAILABILITY_ZONE='nova,internal'
524 SCENARIO_COMPUTE_NODES=2
525 SHAKER_EXTERNAL_NET='public'
526 For the more detailed description of the last two categories please refer to the shaker documentation
527 https://pyshaker.readthedocs.io/en/latest/tools.html
Oleksii Zhurbaa31172e2019-04-23 12:23:11 -0500528 cvp-rebuild:
529 type: workflow-scm
530 name: cvp-rebuild
531 display_name: "CVP-rebuild job for images"
532 discard:
533 build:
534 keep_num: 20
535 artifact:
536 keep_num: 20
537 concurrent: false
538 scm:
539 type: git
540 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
541 branch: "${_param:jenkins_pipelines_branch}"
Sergey Galkinef9eabf2019-06-19 17:53:07 +0400542 credentials: ${_param:jenkins_gerrit_credentials}
Oleksii Zhurbaa31172e2019-04-23 12:23:11 -0500543 script: cvp-rebuild.groovy
544 param:
545 DESTINATION_IMAGE:
546 type: string
547 default: ""
548 description: "Specify address of local registry and name of the image e.g. _cid_vip_:5000/ci-tempest:v1"
549 SALT_MASTER_URL:
550 type: string
551 default: "${_param:jenkins_salt_api_url}"
552 description: Full Salt API address [e.g. https://10.10.10.2:6969]
553 SALT_MASTER_CREDENTIALS:
554 type: string
555 default: "salt"
556 REPO:
557 type: string
558 default: ""
559 description: Specify repo that will be used to rebuild image
560 BRANCH:
561 type: string
562 default: ""
563 description: Branch or version of REPO to checkout