blob: 08cbb89cda11063a7265ad0196739b73ab674521 [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=''
129 description: "YAML context with additional parameters, e.g. skipped_nodes=nal01.local.com,ntw01.local.com or tests_set='tests/test_mtu.py'"
Oleksii Zhurba852a1fa2017-12-12 16:27:18 -0600130 cvp-func:
131 type: workflow-scm
132 name: cvp-func
133 display_name: "CVP - Functional tests"
134 discard:
135 build:
136 keep_num: 20
137 artifact:
138 keep_num: 20
139 concurrent: false
140 scm:
141 type: git
142 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Oleksii Zhurba0edf9e52018-10-24 19:00:41 -0500143 branch: "${_param:jenkins_pipelines_branch}"
Sergey Galkinef9eabf2019-06-19 17:53:07 +0400144 credentials: ${_param:jenkins_gerrit_credentials}
Oleksii Zhurba852a1fa2017-12-12 16:27:18 -0600145 script: cvp-func.groovy
146 param:
147 DEBUG_MODE:
148 type: boolean
149 default: 'false'
150 description: Enable if you need to keep container after the test and debug
151 SKIP_LIST_PATH:
152 type: string
153 default: "cvp-configuration/tempest/skip-list.yaml"
154 description: Path to skip list in container
155 SALT_MASTER_URL:
156 type: string
Oleksii Zhurba348c8142019-07-17 12:58:35 -0500157 default: "http://${_param:salt_master_host}:${_param:salt_master_api_port}"
158 description: Full Salt API address [e.g. http://10.10.10.2:6969]
Oleksii Zhurba852a1fa2017-12-12 16:27:18 -0600159 SALT_MASTER_CREDENTIALS:
160 type: string
161 default: "salt"
162 description: Credentials to the Salt API
163 TEST_IMAGE:
164 type: string
Oleksii Zhurba348c8142019-07-17 12:58:35 -0500165 default: "${_param:docker_image_cvp_xrally}"
Oleksii Zhurba852a1fa2017-12-12 16:27:18 -0600166 description: Docker image to use for running Rally/Tempest
167 TARGET_NODE:
168 type: string
mkraynov16a69cb2018-08-01 15:39:16 +0400169 default: ""
Oleksii Zhurba852a1fa2017-12-12 16:27:18 -0600170 description: Node where container with Tempest will be run
171 PROXY:
172 type: string
173 default: ""
Oleksii Zhurba462124e2018-08-14 10:20:26 -0500174 description: "Proxy address to use to access the Internet. For offline mode, use \"offline\" value."
Oleksii Zhurba852a1fa2017-12-12 16:27:18 -0600175 TEMPEST_TEST_PATTERN:
176 type: string
177 default: "set=smoke"
Oleksii Zhurba7bb22762018-03-21 15:52:38 -0500178 description: Use set=smoke (or identity,full...) or just test name
Oleksii Zhurba852a1fa2017-12-12 16:27:18 -0600179 TEMPEST_ENDPOINT_TYPE:
180 type: choice
181 choices:
182 - internalURL
183 - adminURL
184 - publicURL
185 description: Openstack endpoint type to use during test run
186 TEMPEST_REPO:
187 type: string
188 default: "https://github.com/openstack/tempest"
189 description: URL to Tempest repo (local or remote) or path to tempest folder in container
190 TOOLS_REPO:
191 type: string
192 default: "https://github.com/Mirantis/cvp-configuration"
193 description: URL of repo where testing tools, scenarios, configs are located.
Oleksii Zhurbaf59df9f2017-12-07 14:38:49 -0600194 cvp-ha:
195 type: workflow-scm
196 name: cvp-ha
197 display_name: "CVP - HA tests"
198 discard:
199 build:
200 keep_num: 20
201 artifact:
202 keep_num: 20
203 concurrent: false
204 scm:
205 type: git
206 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Oleksii Zhurba0edf9e52018-10-24 19:00:41 -0500207 branch: "${_param:jenkins_pipelines_branch}"
Sergey Galkinef9eabf2019-06-19 17:53:07 +0400208 credentials: ${_param:jenkins_gerrit_credentials}
Oleksii Zhurbaf59df9f2017-12-07 14:38:49 -0600209 script: cvp-ha.groovy
210 param:
211 SALT_MASTER_URL:
212 type: string
Oleksii Zhurba348c8142019-07-17 12:58:35 -0500213 default: "http://${_param:salt_master_host}:${_param:salt_master_api_port}"
214 description: Full Salt API address [e.g. http://10.10.10.2:6969]
Oleksii Zhurbaf59df9f2017-12-07 14:38:49 -0600215 SALT_MASTER_CREDENTIALS:
216 type: string
217 default: "salt"
218 description: Credentials to the Salt API
219 TEMPEST_TARGET_NODE:
220 type: string
mkraynov16a69cb2018-08-01 15:39:16 +0400221 default: ""
Oleksii Zhurbaf59df9f2017-12-07 14:38:49 -0600222 description: Node where container with tempest will be run
223 TEST_IMAGE:
224 type: string
Oleksii Zhurba348c8142019-07-17 12:58:35 -0500225 default: "${_param:docker_image_cvp_xrally}"
Oleksii Zhurbaf59df9f2017-12-07 14:38:49 -0600226 description: Docker image to use for running Rally/Tempest
227 TARGET_NODES:
228 type: string
229 default: "ctl*"
230 description: Nodes to test
231 DEBUG_MODE:
232 type: boolean
233 default: 'false'
234 description: If you need to debug (keep container after test), please enabled this
235 RETRY_CHECK_STATUS:
236 type: string
237 default: "200"
238 description: If you have any problems with timeouts (e.g. while waiting for node to be up/down), please increase this value
239 SKIP_LIST_PATH:
240 type: string
Oleksii Zhurba7bb22762018-03-21 15:52:38 -0500241 default: "cvp-configuration/tempest/skip-list.yaml"
Oleksii Zhurbaf59df9f2017-12-07 14:38:49 -0600242 description: path to skip-list file inside container
243 PROXY:
244 type: string
245 default: ""
Oleksii Zhurba462124e2018-08-14 10:20:26 -0500246 description: "Proxy address to use to access the Internet. For offline mode, use \"offline\" value."
Oleksii Zhurbaf59df9f2017-12-07 14:38:49 -0600247 TEMPEST_TEST_PATTERN:
248 type: string
249 default: "set=smoke"
Oleksii Zhurba7bb22762018-03-21 15:52:38 -0500250 description: Use set=smoke (or identity,full...) or just test name
Oleksii Zhurbaf59df9f2017-12-07 14:38:49 -0600251 MANUAL_CONFIRMATION:
252 type: boolean
253 default: 'false'
254 description: Ask for confirmation before doing something destructive (reboot/shutdown node)
255 TEMPEST_REPO:
256 type: string
257 default: "https://github.com/openstack/tempest"
258 description: Can be repo url (local or remote) or path to folder (inside container) with Tempest
259 TOOLS_REPO:
260 type: string
Oleksii Zhurba7bb22762018-03-21 15:52:38 -0500261 default: "https://github.com/Mirantis/cvp-configuration"
Oleksii Zhurbaf59df9f2017-12-07 14:38:49 -0600262 description: URL of repo where testing tools, scenarios, configs are located.
Oleksii Zhurba35fd4f82019-03-26 16:26:43 -0500263 cvp-tempest:
264 type: workflow-scm
265 name: cvp-tempest
Oleksii Zhurba904c3a62019-05-30 15:56:05 -0500266 display_name: "CVP - Tempest (new)"
Oleksii Zhurba35fd4f82019-03-26 16:26:43 -0500267 discard:
268 build:
269 keep_num: 20
270 artifact:
271 keep_num: 20
272 concurrent: false
273 scm:
274 type: git
275 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
276 branch: "${_param:jenkins_pipelines_branch}"
Sergey Galkinef9eabf2019-06-19 17:53:07 +0400277 credentials: ${_param:jenkins_gerrit_credentials}
Oleksii Zhurba35fd4f82019-03-26 16:26:43 -0500278 script: cvp-tempest.groovy
279 param:
280 PREPARE_RESOURCES:
281 type: boolean
282 default: true
283 description: Prepare resources for Tempest
284 SALT_MASTER_URL:
285 type: string
Oleksii Zhurba348c8142019-07-17 12:58:35 -0500286 default: "http://${_param:salt_master_host}:${_param:salt_master_api_port}"
287 description: Full Salt API address [e.g. http://10.10.10.2:6969]
Oleksii Zhurba35fd4f82019-03-26 16:26:43 -0500288 TEMPEST_TEST_PATTERN:
289 type: string
290 default: "set=smoke"
291 description: Use set=smoke, set=full or just test name (regex)
292 TEMPEST_ENDPOINT_TYPE:
293 type: choice
294 choices:
295 - internalURL
296 - adminURL
297 - publicURL
298 description: Openstack endpoint type to use during test run.
299 EXTRA_PARAMS:
300 type: text
301 default: |
302 ---
303 DEBUG_MODE: false
304 GENERATE_CONFIG: true
Oleksii Zhurba2eed0302019-07-17 12:55:27 -0500305 TEST_IMAGE: "${_param:docker_image_cvp_tempest}"
Oleksii Zhurba35fd4f82019-03-26 16:26:43 -0500306 report_prefix: "cvp_"
307 description: YAML context with additional parameters
Oleksii Zhurba535032c2017-12-12 16:31:57 -0600308 cvp-perf:
309 type: workflow-scm
310 name: cvp-perf
311 display_name: "CVP - Performance tests"
312 discard:
313 build:
314 keep_num: 20
315 artifact:
316 keep_num: 20
317 concurrent: false
318 scm:
319 type: git
320 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Oleksii Zhurba0edf9e52018-10-24 19:00:41 -0500321 branch: "${_param:jenkins_pipelines_branch}"
Sergey Galkinef9eabf2019-06-19 17:53:07 +0400322 credentials: ${_param:jenkins_gerrit_credentials}
Oleksii Zhurba535032c2017-12-12 16:31:57 -0600323 script: cvp-perf.groovy
324 param:
325 DEBUG_MODE:
326 type: boolean
327 default: 'false'
328 description: Enable if you need to keep container after the test and debug
329 RALLY_SCENARIO_FILE:
330 type: string
331 default: "cvp-configuration/rally/rally_scenarios.json"
332 description: Path to scenario file in container
333 TEST_IMAGE:
334 type: string
Oleksii Zhurba348c8142019-07-17 12:58:35 -0500335 default: "${_param:docker_image_cvp_xrally}"
Oleksii Zhurba535032c2017-12-12 16:31:57 -0600336 description: Docker image to use for running Rally/Tempest
337 SALT_MASTER_URL:
338 type: string
Oleksii Zhurba348c8142019-07-17 12:58:35 -0500339 default: "http://${_param:salt_master_host}:${_param:salt_master_api_port}"
340 description: Full Salt API address [e.g. http://10.10.10.2:6969]
Oleksii Zhurba535032c2017-12-12 16:31:57 -0600341 SALT_MASTER_CREDENTIALS:
342 type: string
343 default: "salt"
344 description: Credentials to the Salt API
345 TARGET_NODE:
346 type: string
mkraynov16a69cb2018-08-01 15:39:16 +0400347 default: ""
Oleksii Zhurba535032c2017-12-12 16:31:57 -0600348 description: Node where docker container with Rally will be run
349 TOOLS_REPO:
350 type: string
351 default: "https://github.com/Mirantis/cvp-configuration"
Oleksii Zhurba462124e2018-08-14 10:20:26 -0500352 description: URL of repo where testing tools, scenarios, configs are located.
Oleksii Zhurba535032c2017-12-12 16:31:57 -0600353 PROXY:
354 type: string
355 default: ""
Oleksii Zhurba462124e2018-08-14 10:20:26 -0500356 description: "Proxy address to use to access the Internet. For offline mode, use \"offline\" value."
Oleksii Zhurba68ad5042018-02-16 20:13:07 -0600357 cvp-stacklight:
358 type: workflow-scm
359 name: cvp-stacklight
360 display_name: "CVP - Stacklight tests"
361 discard:
362 build:
363 keep_num: 20
364 artifact:
365 keep_num: 20
366 concurrent: false
367 scm:
368 type: git
369 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
370 branch: "${_param:jenkins_pipelines_branch}"
Sergey Galkinef9eabf2019-06-19 17:53:07 +0400371 credentials: ${_param:jenkins_gerrit_credentials}
Hanna Arhipova8285e612019-02-14 13:45:17 +0200372 script: cvp-runner.groovy
Oleksii Zhurba68ad5042018-02-16 20:13:07 -0600373 param:
Hanna Arhipova8285e612019-02-14 13:45:17 +0200374 IMAGE:
375 type: string
Oleksii Zhurba348c8142019-07-17 12:58:35 -0500376 default: "${_param:docker_image_cvp_sanity_checks}"
Hanna Arhipova8285e612019-02-14 13:45:17 +0200377 description: Docker image with tests and all pip dependecies to use for testing
Oleksii Zhurba68ad5042018-02-16 20:13:07 -0600378 SALT_MASTER_URL:
379 type: string
380 default: "${_param:jenkins_salt_api_url}"
Oleksii Zhurba348c8142019-07-17 12:58:35 -0500381 description: Full Salt API address [e.g. https://10.10.10.2:8969]
Oleksii Zhurba68ad5042018-02-16 20:13:07 -0600382 SALT_MASTER_CREDENTIALS:
383 type: string
384 default: "salt"
Hanna Arhipova8285e612019-02-14 13:45:17 +0200385 EXTRA_PARAMS:
386 type: text
387 default: |
388 envs:
389 - SL_AUTOCONF=True
390 description: YAML context with additional parameters
Oleksii Zhurbae729cf72018-06-13 11:29:46 -0500391 cvp-spt:
392 type: workflow-scm
393 name: cvp-spt
394 display_name: "CVP - Simplified Performance Tests (SPT)"
395 discard:
396 build:
397 keep_num: 20
398 artifact:
399 keep_num: 20
400 concurrent: false
401 scm:
402 type: git
403 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
404 branch: "${_param:jenkins_pipelines_branch}"
Sergey Galkinef9eabf2019-06-19 17:53:07 +0400405 credentials: ${_param:jenkins_gerrit_credentials}
Oleksii Zhurba26848a62018-09-03 21:29:11 -0500406 script: cvp-runner.groovy
Oleksii Zhurbae729cf72018-06-13 11:29:46 -0500407 param:
Oleksii Zhurba26848a62018-09-03 21:29:11 -0500408 IMAGE:
409 type: string
Oleksii Zhurba348c8142019-07-17 12:58:35 -0500410 default: "${_param:docker_image_cvp_sanity_checks}"
Oleksii Zhurba26848a62018-09-03 21:29:11 -0500411 description: Docker image with tests and all pip dependecies to use for testing
Oleksii Zhurbae729cf72018-06-13 11:29:46 -0500412 SALT_MASTER_URL:
413 type: string
414 default: "${_param:jenkins_salt_api_url}"
Oleksii Zhurba348c8142019-07-17 12:58:35 -0500415 description: Full Salt API address [e.g. https://10.10.10.2:8969]
Oleksii Zhurbae729cf72018-06-13 11:29:46 -0500416 SALT_MASTER_CREDENTIALS:
417 type: string
418 default: "salt"
Hanna Arhipova718fbf62019-01-24 18:50:02 +0200419 EXTRA_PARAMS:
420 type: text
Oleksii Zhurba592e14c2019-04-16 17:44:57 -0500421 default: |
422 envs:
423 - tests_set=''
Hanna Arhipova5bccdcf2019-07-16 18:04:04 +0300424 - image_name=Ubuntu
Oleksii Zhurba592e14c2019-04-16 17:44:57 -0500425 - networks=10.101.0.0/24
426 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 +0100427 cvp-shaker:
428 type: workflow-scm
429 name: cvp-shaker
430 display_name: "CVP - Shaker network tests"
431 discard:
432 build:
433 keep_num: 20
434 artifact:
435 keep_num: 20
436 concurrent: false
437 scm:
438 type: git
439 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
440 branch: "${_param:jenkins_pipelines_branch}"
Sergey Galkinef9eabf2019-06-19 17:53:07 +0400441 credentials: ${_param:jenkins_gerrit_credentials}
Oleg Basove8143de2019-01-29 01:36:06 +0100442 script: cvp-shaker.groovy
443 param:
444 IMAGE:
445 type: string
Oleg Basov06938fe2019-04-01 20:41:24 +0200446 default: "${_param:docker_image_cvp_shaker_checks}"
Oleg Basove8143de2019-01-29 01:36:06 +0100447 description: Docker image to use for running Shaker.
448 SALT_MASTER_URL:
449 type: string
450 default: "${_param:jenkins_salt_api_url}"
451 description: Full Salt API address [e.g. https://10.10.10.2:6969].
452 SALT_MASTER_CREDENTIALS:
453 type: string
454 default: "salt"
455 description: Credentials to the Salt API.
456 SHAKER_PARAMS:
457 type: text
458 default: |
459 ---
460 SHAKER_SERVER_ENDPOINT: '10.13.0.15:5999'
461 SHAKER_SCENARIOS: 'scenarios/essential'
462 SKIP_LIST: ''
Oleg Basovc3602a72019-02-15 15:49:09 +0100463 MATRIX: ''
Oleg Basove8143de2019-01-29 01:36:06 +0100464 image_builder:
465 # - SHAKER_FLAVOR_DISK=4
466 # - SHAKER_FLAVOR_RAM=512
467 # - SHAKER_FLAVOR_VCPUS=1
468 # - SHAKER_IMAGE_BUILDER_MODE='dib'
469 shaker:
470 # - SHAKER_AGENT_JOIN_TIMEOUT=300
471 # - SHAKER_AGENT_LOSS_TIMEOUT=120
472 # - SCENARIO_AVAILABILITY_ZONE='nova,internal'
473 # - SCENARIO_COMPUTE_NODES=2
474 # - SHAKER_EXTERNAL_NET='public'
475 description: |
476 YAML context with parameters for running Shaker tests, where
477 "SHAKER_SERVER_ENDPOINT" - Address for Shaker server connections (host:port). Should be accessible
478 from tenant's VM network (usually equals to public address of cicd node)
479 "SHAKER_SCENARIOS" - Path to shaker scenarios in the cvp-shaker docker image
480 (can be directory or specific file). Main categories are
481 scenarios/essential/l2
482 scenarios/essential/l3
483 scenarios/additional/cross_az
484 scenarios/additional/external
485 scenarios/additional/qos
Oleg Basovc3602a72019-02-15 15:49:09 +0100486 "MATRIX" - Set the matrix of extra parameters for the scenario. The value is specified in JSON format.
487 To override a scenario duration one may provide "{time: 10}", or to override list of hosts:
488 "{host:[ping.online.net, iperf.eenet.ee]}". When several parameters are overridden all combinations are
489 tested. It is a required field for some of external-category scenarios when the host name with iperf3
490 server needs to be provided as a command-line parameter, e.g. "{host: 10.13.100.4}".
Oleg Basove8143de2019-01-29 01:36:06 +0100491 "SKIP_LIST" - Comma-separated list of Shaker scenarios to skip, directories or files inside scenarios/
492 of cvp-shaker, e.g. "dense_l2.yaml,full_l2.yaml,l3"
493 "image_builder" - shaker-image-builder env variables
494 SHAKER_FLAVOR_DISK=4
495 SHAKER_FLAVOR_RAM=512
496 SHAKER_FLAVOR_VCPUS=1
497 SHAKER_IMAGE_BUILDER_MODE='dib'
498 "shaker" - main shaker runner env variables
499 SHAKER_AGENT_JOIN_TIMEOUT=300
500 SHAKER_AGENT_LOSS_TIMEOUT=120
501 SCENARIO_AVAILABILITY_ZONE='nova,internal'
502 SCENARIO_COMPUTE_NODES=2
503 SHAKER_EXTERNAL_NET='public'
504 For the more detailed description of the last two categories please refer to the shaker documentation
505 https://pyshaker.readthedocs.io/en/latest/tools.html
Oleksii Zhurbaa31172e2019-04-23 12:23:11 -0500506 cvp-rebuild:
507 type: workflow-scm
508 name: cvp-rebuild
509 display_name: "CVP-rebuild job for images"
510 discard:
511 build:
512 keep_num: 20
513 artifact:
514 keep_num: 20
515 concurrent: false
516 scm:
517 type: git
518 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
519 branch: "${_param:jenkins_pipelines_branch}"
Sergey Galkinef9eabf2019-06-19 17:53:07 +0400520 credentials: ${_param:jenkins_gerrit_credentials}
Oleksii Zhurbaa31172e2019-04-23 12:23:11 -0500521 script: cvp-rebuild.groovy
522 param:
523 DESTINATION_IMAGE:
524 type: string
525 default: ""
526 description: "Specify address of local registry and name of the image e.g. _cid_vip_:5000/ci-tempest:v1"
527 SALT_MASTER_URL:
528 type: string
529 default: "${_param:jenkins_salt_api_url}"
530 description: Full Salt API address [e.g. https://10.10.10.2:6969]
531 SALT_MASTER_CREDENTIALS:
532 type: string
533 default: "salt"
534 REPO:
535 type: string
536 default: ""
537 description: Specify repo that will be used to rebuild image
538 BRANCH:
539 type: string
540 default: ""
541 description: Branch or version of REPO to checkout