Dmitrii Kabanov | b908f30 | 2017-08-11 00:21:59 -0700 | [diff] [blame] | 1 | parameters: |
| 2 | jenkins: |
| 3 | client: |
| 4 | view: |
| 5 | Validation: |
| 6 | enabled: true |
| 7 | type: ListView |
| 8 | include_regex: "validate.*" |
Oleksii Zhurba | 8d368a5 | 2019-07-24 16:46:11 -0500 | [diff] [blame] | 9 | CVP: |
Oleksii Zhurba | 348c814 | 2019-07-17 12:58:35 -0500 | [diff] [blame] | 10 | enabled: true |
| 11 | type: ListView |
| 12 | include_regex: "cvp.*" |
Dmitrii Kabanov | b908f30 | 2017-08-11 00:21:59 -0700 | [diff] [blame] | 13 | job: |
| 14 | validate_openstack: |
| 15 | type: workflow-scm |
| 16 | name: validate-openstack |
| 17 | display_name: "Validate - Openstack" |
| 18 | discard: |
| 19 | build: |
Jakub Josef | 1a82896 | 2018-01-23 12:33:34 +0100 | [diff] [blame] | 20 | keep_num: 50 |
Dmitrii Kabanov | b908f30 | 2017-08-11 00:21:59 -0700 | [diff] [blame] | 21 | artifact: |
Jakub Josef | 1a82896 | 2018-01-23 12:33:34 +0100 | [diff] [blame] | 22 | keep_num: 50 |
Oleg Basov | 8c0bbeb | 2019-03-27 01:19:14 +0100 | [diff] [blame] | 23 | concurrent: true |
Dmitrii Kabanov | b908f30 | 2017-08-11 00:21:59 -0700 | [diff] [blame] | 24 | scm: |
| 25 | type: git |
| 26 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
Jakub Josef | 7938b53 | 2017-12-12 18:02:03 +0100 | [diff] [blame] | 27 | branch: "${_param:jenkins_pipelines_branch}" |
Sergey Galkin | ef9eabf | 2019-06-19 17:53:07 +0400 | [diff] [blame] | 28 | credentials: ${_param:jenkins_gerrit_credentials} |
Dmitrii Kabanov | b908f30 | 2017-08-11 00:21:59 -0700 | [diff] [blame] | 29 | script: validate-cloud.groovy |
Dmitrii Kabanov | b908f30 | 2017-08-11 00:21:59 -0700 | [diff] [blame] | 30 | param: |
Oleg Basov | f465e46 | 2019-03-05 23:54:47 +0100 | [diff] [blame] | 31 | JOB_TIMEOUT: |
| 32 | type: string |
| 33 | default: "3" |
| 34 | description: Job timeout in hours |
Oleg Basov | f465e46 | 2019-03-05 23:54:47 +0100 | [diff] [blame] | 35 | TEST_IMAGE: |
| 36 | type: string |
Oleg Basov | 90042ad | 2019-04-07 12:31:22 +0200 | [diff] [blame] | 37 | default: "xrally/xrally-openstack:1.4.0" |
Oleg Basov | 8c0bbeb | 2019-03-27 01:19:14 +0100 | [diff] [blame] | 38 | description: Rally docker image to use for running tests |
Dmitrii Kabanov | b908f30 | 2017-08-11 00:21:59 -0700 | [diff] [blame] | 39 | SALT_MASTER_URL: |
| 40 | type: string |
Sam Stoelinga | 1539f3c | 2017-09-25 17:05:40 -0700 | [diff] [blame] | 41 | default: "${_param:jenkins_salt_api_url}" |
| 42 | description: Full Salt API address [e.g. https://10.10.10.2:6969] |
Dmitrii Kabanov | b908f30 | 2017-08-11 00:21:59 -0700 | [diff] [blame] | 43 | SALT_MASTER_CREDENTIALS: |
| 44 | type: string |
| 45 | default: "salt" |
Tetiana Korchak | d644b35 | 2017-08-25 10:30:57 -0700 | [diff] [blame] | 46 | description: Credentials to the Salt API |
Oleg Basov | f465e46 | 2019-03-05 23:54:47 +0100 | [diff] [blame] | 47 | VALIDATE_PARAMS: |
| 48 | type: text |
Oleg Basov | 8c0bbeb | 2019-03-27 01:19:14 +0100 | [diff] [blame] | 49 | description: YAML of parameters for Rally test |
| 50 | default: | |
Oleg Basov | f465e46 | 2019-03-05 23:54:47 +0100 | [diff] [blame] | 51 | --- |
| 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 Basov | 90042ad | 2019-04-07 12:31:22 +0200 | [diff] [blame] | 62 | RALLY_CONFIG_REPO: 'https://review.gerrithub.io/Mirantis/scale-scenarios' |
Oleg Basov | f465e46 | 2019-03-05 23:54:47 +0100 | [diff] [blame] | 63 | # 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 Basov | f465e46 | 2019-03-05 23:54:47 +0100 | [diff] [blame] | 88 | # Scenarios names/dirs to skip |
| 89 | SKIP_LIST: '' |
Oleg Basov | 90042ad | 2019-04-07 12:31:22 +0200 | [diff] [blame] | 90 | # Run in parallel for each directory inside RALLY_SCENARIOS and RALLY_SL_SCENARIOS |
| 91 | PARALLEL_PERFORMANCE: 'false' |
Oleg Basov | 54bde2f | 2019-05-27 16:43:26 +0200 | [diff] [blame] | 92 | # 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 Zhurba | d97ac81 | 2017-10-05 14:18:50 -0500 | [diff] [blame] | 96 | cvp-sanity: |
| 97 | type: workflow-scm |
Oleksii Zhurba | 0707605 | 2017-11-08 12:59:25 -0600 | [diff] [blame] | 98 | name: cvp-sanity |
Oleksii Zhurba | d97ac81 | 2017-10-05 14:18:50 -0500 | [diff] [blame] | 99 | 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 Josef | 7938b53 | 2017-12-12 18:02:03 +0100 | [diff] [blame] | 109 | branch: "${_param:jenkins_pipelines_branch}" |
Sergey Galkin | ef9eabf | 2019-06-19 17:53:07 +0400 | [diff] [blame] | 110 | credentials: ${_param:jenkins_gerrit_credentials} |
Oleksii Zhurba | c0af3f0 | 2018-06-14 13:47:54 -0500 | [diff] [blame] | 111 | script: cvp-runner.groovy |
Oleksii Zhurba | d97ac81 | 2017-10-05 14:18:50 -0500 | [diff] [blame] | 112 | param: |
Oleksii Zhurba | 26848a6 | 2018-09-03 21:29:11 -0500 | [diff] [blame] | 113 | IMAGE: |
| 114 | type: string |
Oleksii Zhurba | 348c814 | 2019-07-17 12:58:35 -0500 | [diff] [blame] | 115 | default: "${_param:docker_image_cvp_sanity_checks}" |
Oleksii Zhurba | 26848a6 | 2018-09-03 21:29:11 -0500 | [diff] [blame] | 116 | description: Docker image with tests and all pip dependecies to use for testing |
Oleksii Zhurba | d97ac81 | 2017-10-05 14:18:50 -0500 | [diff] [blame] | 117 | SALT_MASTER_URL: |
| 118 | type: string |
Oleksii Zhurba | 0707605 | 2017-11-08 12:59:25 -0600 | [diff] [blame] | 119 | default: "${_param:jenkins_salt_api_url}" |
Oleksii Zhurba | 348c814 | 2019-07-17 12:58:35 -0500 | [diff] [blame] | 120 | description: Full Salt API address [e.g. https://10.10.10.2:8969] |
Oleksii Zhurba | d97ac81 | 2017-10-05 14:18:50 -0500 | [diff] [blame] | 121 | SALT_MASTER_CREDENTIALS: |
| 122 | type: string |
| 123 | default: "salt" |
Hanna Arhipova | 718fbf6 | 2019-01-24 18:50:02 +0200 | [diff] [blame] | 124 | EXTRA_PARAMS: |
| 125 | type: text |
Oleksii Zhurba | 592e14c | 2019-04-16 17:44:57 -0500 | [diff] [blame] | 126 | default: | |
| 127 | envs: |
| 128 | - tests_set='' |
Ievgeniia Zadorozhna | 761850f | 2019-11-13 18:37:39 +0300 | [diff] [blame] | 129 | 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 Zhurba | 852a1fa | 2017-12-12 16:27:18 -0600 | [diff] [blame] | 148 | 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 Zhurba | 0edf9e5 | 2018-10-24 19:00:41 -0500 | [diff] [blame] | 161 | branch: "${_param:jenkins_pipelines_branch}" |
Sergey Galkin | ef9eabf | 2019-06-19 17:53:07 +0400 | [diff] [blame] | 162 | credentials: ${_param:jenkins_gerrit_credentials} |
Oleksii Zhurba | 852a1fa | 2017-12-12 16:27:18 -0600 | [diff] [blame] | 163 | 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 Zhurba | 348c814 | 2019-07-17 12:58:35 -0500 | [diff] [blame] | 175 | 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 Zhurba | 852a1fa | 2017-12-12 16:27:18 -0600 | [diff] [blame] | 177 | SALT_MASTER_CREDENTIALS: |
| 178 | type: string |
| 179 | default: "salt" |
| 180 | description: Credentials to the Salt API |
| 181 | TEST_IMAGE: |
| 182 | type: string |
Oleksii Zhurba | 348c814 | 2019-07-17 12:58:35 -0500 | [diff] [blame] | 183 | default: "${_param:docker_image_cvp_xrally}" |
Oleksii Zhurba | 852a1fa | 2017-12-12 16:27:18 -0600 | [diff] [blame] | 184 | description: Docker image to use for running Rally/Tempest |
| 185 | TARGET_NODE: |
| 186 | type: string |
mkraynov | 16a69cb | 2018-08-01 15:39:16 +0400 | [diff] [blame] | 187 | default: "" |
Oleksii Zhurba | 852a1fa | 2017-12-12 16:27:18 -0600 | [diff] [blame] | 188 | description: Node where container with Tempest will be run |
| 189 | PROXY: |
| 190 | type: string |
| 191 | default: "" |
Oleksii Zhurba | 462124e | 2018-08-14 10:20:26 -0500 | [diff] [blame] | 192 | description: "Proxy address to use to access the Internet. For offline mode, use \"offline\" value." |
Oleksii Zhurba | 852a1fa | 2017-12-12 16:27:18 -0600 | [diff] [blame] | 193 | TEMPEST_TEST_PATTERN: |
| 194 | type: string |
| 195 | default: "set=smoke" |
Oleksii Zhurba | 7bb2276 | 2018-03-21 15:52:38 -0500 | [diff] [blame] | 196 | description: Use set=smoke (or identity,full...) or just test name |
Oleksii Zhurba | 852a1fa | 2017-12-12 16:27:18 -0600 | [diff] [blame] | 197 | 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 Zhurba | f59df9f | 2017-12-07 14:38:49 -0600 | [diff] [blame] | 212 | 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 Zhurba | 0edf9e5 | 2018-10-24 19:00:41 -0500 | [diff] [blame] | 225 | branch: "${_param:jenkins_pipelines_branch}" |
Sergey Galkin | ef9eabf | 2019-06-19 17:53:07 +0400 | [diff] [blame] | 226 | credentials: ${_param:jenkins_gerrit_credentials} |
Oleksii Zhurba | f59df9f | 2017-12-07 14:38:49 -0600 | [diff] [blame] | 227 | script: cvp-ha.groovy |
| 228 | param: |
| 229 | SALT_MASTER_URL: |
| 230 | type: string |
Oleksii Zhurba | 348c814 | 2019-07-17 12:58:35 -0500 | [diff] [blame] | 231 | 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 Zhurba | f59df9f | 2017-12-07 14:38:49 -0600 | [diff] [blame] | 233 | SALT_MASTER_CREDENTIALS: |
| 234 | type: string |
| 235 | default: "salt" |
| 236 | description: Credentials to the Salt API |
| 237 | TEMPEST_TARGET_NODE: |
| 238 | type: string |
mkraynov | 16a69cb | 2018-08-01 15:39:16 +0400 | [diff] [blame] | 239 | default: "" |
Oleksii Zhurba | f59df9f | 2017-12-07 14:38:49 -0600 | [diff] [blame] | 240 | description: Node where container with tempest will be run |
| 241 | TEST_IMAGE: |
| 242 | type: string |
Oleksii Zhurba | 348c814 | 2019-07-17 12:58:35 -0500 | [diff] [blame] | 243 | default: "${_param:docker_image_cvp_xrally}" |
Oleksii Zhurba | f59df9f | 2017-12-07 14:38:49 -0600 | [diff] [blame] | 244 | 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 Zhurba | 7bb2276 | 2018-03-21 15:52:38 -0500 | [diff] [blame] | 259 | default: "cvp-configuration/tempest/skip-list.yaml" |
Oleksii Zhurba | f59df9f | 2017-12-07 14:38:49 -0600 | [diff] [blame] | 260 | description: path to skip-list file inside container |
| 261 | PROXY: |
| 262 | type: string |
| 263 | default: "" |
Oleksii Zhurba | 462124e | 2018-08-14 10:20:26 -0500 | [diff] [blame] | 264 | description: "Proxy address to use to access the Internet. For offline mode, use \"offline\" value." |
Oleksii Zhurba | f59df9f | 2017-12-07 14:38:49 -0600 | [diff] [blame] | 265 | TEMPEST_TEST_PATTERN: |
| 266 | type: string |
| 267 | default: "set=smoke" |
Oleksii Zhurba | 7bb2276 | 2018-03-21 15:52:38 -0500 | [diff] [blame] | 268 | description: Use set=smoke (or identity,full...) or just test name |
Oleksii Zhurba | f59df9f | 2017-12-07 14:38:49 -0600 | [diff] [blame] | 269 | 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 Zhurba | 7bb2276 | 2018-03-21 15:52:38 -0500 | [diff] [blame] | 279 | default: "https://github.com/Mirantis/cvp-configuration" |
Oleksii Zhurba | f59df9f | 2017-12-07 14:38:49 -0600 | [diff] [blame] | 280 | description: URL of repo where testing tools, scenarios, configs are located. |
Oleksii Zhurba | 35fd4f8 | 2019-03-26 16:26:43 -0500 | [diff] [blame] | 281 | cvp-tempest: |
| 282 | type: workflow-scm |
| 283 | name: cvp-tempest |
Oleksii Zhurba | 904c3a6 | 2019-05-30 15:56:05 -0500 | [diff] [blame] | 284 | display_name: "CVP - Tempest (new)" |
Oleksii Zhurba | 35fd4f8 | 2019-03-26 16:26:43 -0500 | [diff] [blame] | 285 | 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 Galkin | ef9eabf | 2019-06-19 17:53:07 +0400 | [diff] [blame] | 295 | credentials: ${_param:jenkins_gerrit_credentials} |
Oleksii Zhurba | 35fd4f8 | 2019-03-26 16:26:43 -0500 | [diff] [blame] | 296 | 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 Zhurba | 348c814 | 2019-07-17 12:58:35 -0500 | [diff] [blame] | 304 | 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 Zhurba | 35fd4f8 | 2019-03-26 16:26:43 -0500 | [diff] [blame] | 306 | 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 Zhurba | 2eed030 | 2019-07-17 12:55:27 -0500 | [diff] [blame] | 323 | TEST_IMAGE: "${_param:docker_image_cvp_tempest}" |
Oleksii Zhurba | 35fd4f8 | 2019-03-26 16:26:43 -0500 | [diff] [blame] | 324 | report_prefix: "cvp_" |
| 325 | description: YAML context with additional parameters |
Oleksii Zhurba | 535032c | 2017-12-12 16:31:57 -0600 | [diff] [blame] | 326 | 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 Zhurba | 0edf9e5 | 2018-10-24 19:00:41 -0500 | [diff] [blame] | 339 | branch: "${_param:jenkins_pipelines_branch}" |
Sergey Galkin | ef9eabf | 2019-06-19 17:53:07 +0400 | [diff] [blame] | 340 | credentials: ${_param:jenkins_gerrit_credentials} |
Oleksii Zhurba | 535032c | 2017-12-12 16:31:57 -0600 | [diff] [blame] | 341 | 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 Zhurba | 348c814 | 2019-07-17 12:58:35 -0500 | [diff] [blame] | 353 | default: "${_param:docker_image_cvp_xrally}" |
Oleksii Zhurba | 535032c | 2017-12-12 16:31:57 -0600 | [diff] [blame] | 354 | description: Docker image to use for running Rally/Tempest |
| 355 | SALT_MASTER_URL: |
| 356 | type: string |
Oleksii Zhurba | 348c814 | 2019-07-17 12:58:35 -0500 | [diff] [blame] | 357 | 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 Zhurba | 535032c | 2017-12-12 16:31:57 -0600 | [diff] [blame] | 359 | SALT_MASTER_CREDENTIALS: |
| 360 | type: string |
| 361 | default: "salt" |
| 362 | description: Credentials to the Salt API |
| 363 | TARGET_NODE: |
| 364 | type: string |
mkraynov | 16a69cb | 2018-08-01 15:39:16 +0400 | [diff] [blame] | 365 | default: "" |
Oleksii Zhurba | 535032c | 2017-12-12 16:31:57 -0600 | [diff] [blame] | 366 | 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 Zhurba | 462124e | 2018-08-14 10:20:26 -0500 | [diff] [blame] | 370 | description: URL of repo where testing tools, scenarios, configs are located. |
Oleksii Zhurba | 535032c | 2017-12-12 16:31:57 -0600 | [diff] [blame] | 371 | PROXY: |
| 372 | type: string |
| 373 | default: "" |
Oleksii Zhurba | 462124e | 2018-08-14 10:20:26 -0500 | [diff] [blame] | 374 | description: "Proxy address to use to access the Internet. For offline mode, use \"offline\" value." |
Oleksii Zhurba | 68ad504 | 2018-02-16 20:13:07 -0600 | [diff] [blame] | 375 | 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 Galkin | ef9eabf | 2019-06-19 17:53:07 +0400 | [diff] [blame] | 389 | credentials: ${_param:jenkins_gerrit_credentials} |
Hanna Arhipova | 8285e61 | 2019-02-14 13:45:17 +0200 | [diff] [blame] | 390 | script: cvp-runner.groovy |
Oleksii Zhurba | 68ad504 | 2018-02-16 20:13:07 -0600 | [diff] [blame] | 391 | param: |
Hanna Arhipova | 8285e61 | 2019-02-14 13:45:17 +0200 | [diff] [blame] | 392 | IMAGE: |
| 393 | type: string |
Oleksii Zhurba | 348c814 | 2019-07-17 12:58:35 -0500 | [diff] [blame] | 394 | default: "${_param:docker_image_cvp_sanity_checks}" |
Hanna Arhipova | 8285e61 | 2019-02-14 13:45:17 +0200 | [diff] [blame] | 395 | description: Docker image with tests and all pip dependecies to use for testing |
Oleksii Zhurba | 68ad504 | 2018-02-16 20:13:07 -0600 | [diff] [blame] | 396 | SALT_MASTER_URL: |
| 397 | type: string |
| 398 | default: "${_param:jenkins_salt_api_url}" |
Oleksii Zhurba | 348c814 | 2019-07-17 12:58:35 -0500 | [diff] [blame] | 399 | description: Full Salt API address [e.g. https://10.10.10.2:8969] |
Oleksii Zhurba | 68ad504 | 2018-02-16 20:13:07 -0600 | [diff] [blame] | 400 | SALT_MASTER_CREDENTIALS: |
| 401 | type: string |
| 402 | default: "salt" |
Hanna Arhipova | 8285e61 | 2019-02-14 13:45:17 +0200 | [diff] [blame] | 403 | EXTRA_PARAMS: |
| 404 | type: text |
| 405 | default: | |
| 406 | envs: |
| 407 | - SL_AUTOCONF=True |
| 408 | description: YAML context with additional parameters |
Oleksii Zhurba | e729cf7 | 2018-06-13 11:29:46 -0500 | [diff] [blame] | 409 | 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 Galkin | ef9eabf | 2019-06-19 17:53:07 +0400 | [diff] [blame] | 423 | credentials: ${_param:jenkins_gerrit_credentials} |
Oleksii Zhurba | 26848a6 | 2018-09-03 21:29:11 -0500 | [diff] [blame] | 424 | script: cvp-runner.groovy |
Oleksii Zhurba | e729cf7 | 2018-06-13 11:29:46 -0500 | [diff] [blame] | 425 | param: |
Oleksii Zhurba | 26848a6 | 2018-09-03 21:29:11 -0500 | [diff] [blame] | 426 | IMAGE: |
| 427 | type: string |
Oleksii Zhurba | 348c814 | 2019-07-17 12:58:35 -0500 | [diff] [blame] | 428 | default: "${_param:docker_image_cvp_sanity_checks}" |
Oleksii Zhurba | 26848a6 | 2018-09-03 21:29:11 -0500 | [diff] [blame] | 429 | description: Docker image with tests and all pip dependecies to use for testing |
Oleksii Zhurba | e729cf7 | 2018-06-13 11:29:46 -0500 | [diff] [blame] | 430 | SALT_MASTER_URL: |
| 431 | type: string |
| 432 | default: "${_param:jenkins_salt_api_url}" |
Oleksii Zhurba | 348c814 | 2019-07-17 12:58:35 -0500 | [diff] [blame] | 433 | description: Full Salt API address [e.g. https://10.10.10.2:8969] |
Oleksii Zhurba | e729cf7 | 2018-06-13 11:29:46 -0500 | [diff] [blame] | 434 | SALT_MASTER_CREDENTIALS: |
| 435 | type: string |
| 436 | default: "salt" |
Hanna Arhipova | 718fbf6 | 2019-01-24 18:50:02 +0200 | [diff] [blame] | 437 | EXTRA_PARAMS: |
| 438 | type: text |
Oleksii Zhurba | 592e14c | 2019-04-16 17:44:57 -0500 | [diff] [blame] | 439 | default: | |
| 440 | envs: |
| 441 | - tests_set='' |
Hanna Arhipova | 5bccdcf | 2019-07-16 18:04:04 +0300 | [diff] [blame] | 442 | - image_name=Ubuntu |
Oleksii Zhurba | 592e14c | 2019-04-16 17:44:57 -0500 | [diff] [blame] | 443 | - 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 Basov | e8143de | 2019-01-29 01:36:06 +0100 | [diff] [blame] | 445 | 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 Galkin | ef9eabf | 2019-06-19 17:53:07 +0400 | [diff] [blame] | 459 | credentials: ${_param:jenkins_gerrit_credentials} |
Oleg Basov | e8143de | 2019-01-29 01:36:06 +0100 | [diff] [blame] | 460 | script: cvp-shaker.groovy |
| 461 | param: |
| 462 | IMAGE: |
| 463 | type: string |
Oleg Basov | 06938fe | 2019-04-01 20:41:24 +0200 | [diff] [blame] | 464 | default: "${_param:docker_image_cvp_shaker_checks}" |
Oleg Basov | e8143de | 2019-01-29 01:36:06 +0100 | [diff] [blame] | 465 | 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 Zadorozhna | 62da35e | 2019-11-12 15:03:27 +0300 | [diff] [blame] | 474 | 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 Basov | e8143de | 2019-01-29 01:36:06 +0100 | [diff] [blame] | 478 | 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 Basov | c3602a7 | 2019-02-15 15:49:09 +0100 | [diff] [blame] | 485 | MATRIX: '' |
Oleg Basov | e8143de | 2019-01-29 01:36:06 +0100 | [diff] [blame] | 486 | 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 Zadorozhna | 62da35e | 2019-11-12 15:03:27 +0300 | [diff] [blame] | 499 | "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 Basov | e8143de | 2019-01-29 01:36:06 +0100 | [diff] [blame] | 501 | "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 Basov | c3602a7 | 2019-02-15 15:49:09 +0100 | [diff] [blame] | 508 | "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 Basov | e8143de | 2019-01-29 01:36:06 +0100 | [diff] [blame] | 513 | "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 Zhurba | a31172e | 2019-04-23 12:23:11 -0500 | [diff] [blame] | 528 | 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 Galkin | ef9eabf | 2019-06-19 17:53:07 +0400 | [diff] [blame] | 542 | credentials: ${_param:jenkins_gerrit_credentials} |
Oleksii Zhurba | a31172e | 2019-04-23 12:23:11 -0500 | [diff] [blame] | 543 | 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 |