Oleksii Zhurba | 4be2832 | 2019-04-18 18:07:35 -0500 | [diff] [blame] | 1 | {% set flavor_name = flavor_name or "m1.tiny" %} |
| 2 | {% set image_name = image_name or "testvm" %} |
| 3 | {% set volume_type = volume_type or "default" %} |
| 4 | {% set availability_zone = "nova" %} |
| 5 | {% set concurrency = 10 %} |
| 6 | {% set volume_size = 1 %} |
| 7 | {% set times = 100 %} |
| 8 | {% set users = 3 %} |
| 9 | {% set tenants = 3 %} |
| 10 | {% set rbd_image = "http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img" %} |
| 11 | {% set heat_template = "/home/rally/source/cvp-configuration/rally/default.yaml.template" %} |
| 12 | {% set fixed_net = "${FIXED_NET}" %} |
| 13 | {% set block_migration = true %} |
| 14 | { |
| 15 | "KeystoneBasic.authenticate_user_and_validate_token": [ |
| 16 | { |
| 17 | "args": {}, |
| 18 | "runner": { |
| 19 | "type": "constant", |
| 20 | "times": {{times}}, |
| 21 | "concurrency": {{concurrency}} |
| 22 | }, |
| 23 | "sla": { "failure_rate": { "max": 0 } } |
| 24 | } |
| 25 | ], |
| 26 | "KeystoneBasic.create_tenant_with_users": [ |
| 27 | { |
| 28 | "args": { "users_per_tenant": 10 }, |
| 29 | "runner": { |
| 30 | "type": "constant", |
| 31 | "concurrency": {{concurrency}}, |
| 32 | "times": {{times}} |
| 33 | }, |
| 34 | "sla": { "failure_rate": { "max": 0 } } |
| 35 | } |
| 36 | ], |
| 37 | "Authenticate.validate_cinder": [ |
| 38 | { |
| 39 | "args": { "repetitions": 2 }, |
| 40 | "runner": { |
| 41 | "type": "constant", |
| 42 | "times": {{times}}, |
| 43 | "concurrency": {{concurrency}} |
| 44 | }, |
| 45 | "context": { |
| 46 | "users": { |
| 47 | "users_per_tenant": {{users}}, |
| 48 | "tenants": {{tenants}} |
| 49 | }, |
| 50 | "api_versions@openstack": { "cinder": {"service_type": "volumev3"} } |
| 51 | }, |
| 52 | "sla": { "failure_rate": { "max": 0 } } |
| 53 | } |
| 54 | ], |
| 55 | "Authenticate.validate_glance": [ |
| 56 | { |
| 57 | "args": { "repetitions": 2 }, |
| 58 | "runner": { |
| 59 | "type": "constant", |
| 60 | "times": {{times}}, |
| 61 | "concurrency": {{concurrency}} |
| 62 | }, |
| 63 | "context": { |
| 64 | "users": { |
| 65 | "users_per_tenant": {{users}}, |
| 66 | "tenants": {{tenants}} |
| 67 | } |
| 68 | }, |
| 69 | "sla": { "failure_rate": { "max": 0 } } |
| 70 | } |
| 71 | ], |
| 72 | "Authenticate.validate_heat": [ |
| 73 | { |
| 74 | "args": { "repetitions": 2 }, |
| 75 | "runner": { |
| 76 | "type": "constant", |
| 77 | "times": {{times}}, |
| 78 | "concurrency": {{concurrency}} |
| 79 | }, |
| 80 | "context": { |
| 81 | "users": { |
| 82 | "users_per_tenant": {{users}}, |
| 83 | "tenants": {{tenants}} |
| 84 | } |
| 85 | }, |
| 86 | "sla": { "failure_rate": { "max": 0 } } |
| 87 | } |
| 88 | ], |
| 89 | "Authenticate.validate_nova": [ |
| 90 | { |
| 91 | "args": { "repetitions": 2 }, |
| 92 | "runner": { |
| 93 | "type": "constant", |
| 94 | "times": {{times}}, |
| 95 | "concurrency": {{concurrency}} |
| 96 | }, |
| 97 | "context": { |
| 98 | "users": { |
| 99 | "users_per_tenant": {{users}}, |
| 100 | "tenants": {{tenants}} |
| 101 | } |
| 102 | }, |
| 103 | "sla": { "failure_rate": { "max": 0 } } |
| 104 | } |
| 105 | ], |
| 106 | "Authenticate.validate_neutron": [ |
| 107 | { |
| 108 | "args": { "repetitions": 2 }, |
| 109 | "runner": { |
| 110 | "type": "constant", |
| 111 | "times": {{times}}, |
| 112 | "concurrency": {{concurrency}} |
| 113 | }, |
| 114 | "context": { |
| 115 | "users": { |
| 116 | "users_per_tenant": {{users}}, |
| 117 | "tenants": {{tenants}} |
| 118 | } |
| 119 | }, |
| 120 | "sla": { "failure_rate": { "max": 0 } } |
| 121 | } |
| 122 | ], |
| 123 | "NovaServers.boot_and_migrate_server": [ |
| 124 | { |
| 125 | "args": { |
| 126 | "flavor": { |
| 127 | "name": "{{flavor_name}}" |
| 128 | }, |
| 129 | "image": { |
| 130 | "name": "{{image_name}}" |
| 131 | }, |
| 132 | "nics": [ |
| 133 | {"net-id": "{{fixed_net}}"} |
| 134 | ] |
| 135 | }, |
| 136 | "runner": { |
| 137 | "type": "constant", |
| 138 | "times": {{times}}, |
| 139 | "concurrency": {{concurrency}} |
| 140 | }, |
| 141 | "context": { |
| 142 | "users": { |
| 143 | "users_per_tenant": {{users}}, |
| 144 | "tenants": {{tenants}} |
| 145 | }, |
| 146 | "quotas": { |
| 147 | "nova": { |
| 148 | "instances": -1, |
| 149 | "cores": -1, |
| 150 | "ram": -1, |
| 151 | "key_pairs": -1, |
| 152 | "security_groups": -1, |
| 153 | "security_group_rules": -1 |
| 154 | } |
| 155 | } |
| 156 | }, |
| 157 | "sla": { "failure_rate": { "max": 0 } } |
| 158 | } |
| 159 | ], |
| 160 | "NovaServers.boot_and_live_migrate_server": [ |
| 161 | { |
| 162 | "args": { |
| 163 | "flavor": { |
| 164 | "name": "{{flavor_name}}" |
| 165 | }, |
| 166 | "image": { |
| 167 | "name": "{{image_name}}" |
| 168 | }, |
| 169 | "nics": [ |
| 170 | {"net-id": "{{fixed_net}}"} |
| 171 | ], |
| 172 | "block_migration": {{block_migration}} |
| 173 | }, |
| 174 | "runner": { |
| 175 | "type": "constant", |
| 176 | "concurrency": {{concurrency}}, |
| 177 | "times": {{times}} |
| 178 | }, |
| 179 | "context": { |
| 180 | "users": { |
| 181 | "users_per_tenant": {{users}}, |
| 182 | "tenants": {{tenants}} |
| 183 | }, |
| 184 | "quotas": { |
| 185 | "nova": { |
| 186 | "instances": -1, |
| 187 | "cores": -1, |
| 188 | "ram": -1, |
| 189 | "key_pairs": -1, |
| 190 | "security_groups": -1, |
| 191 | "security_group_rules": -1 |
| 192 | } |
| 193 | } |
| 194 | }, |
| 195 | "sla": { "failure_rate": { "max": 0 } } |
| 196 | } |
| 197 | ], |
| 198 | "NovaServers.boot_and_delete_server": [ |
| 199 | { |
| 200 | "args": { |
| 201 | "flavor": { |
| 202 | "name": "{{flavor_name}}" |
| 203 | }, |
| 204 | "image": { |
| 205 | "name": "{{image_name}}" |
| 206 | }, |
| 207 | "nics": [ |
| 208 | {"net-id": "{{fixed_net}}"} |
| 209 | ], |
| 210 | "detailed": true, |
| 211 | "availability_zone": "{{availability_zone}}" |
| 212 | }, |
| 213 | "runner": { |
| 214 | "type": "constant", |
| 215 | "concurrency": {{concurrency}}, |
| 216 | "times": {{times}} |
| 217 | }, |
| 218 | "context": { |
| 219 | "users": { |
| 220 | "tenants": {{users}}, |
| 221 | "users_per_tenant": {{tenants}} |
| 222 | }, |
| 223 | "quotas": { |
| 224 | "nova": { |
| 225 | "instances": -1, |
| 226 | "cores": -1, |
| 227 | "ram": -1, |
| 228 | "key_pairs": -1, |
| 229 | "security_groups": -1, |
| 230 | "security_group_rules": -1 |
| 231 | } |
| 232 | } |
| 233 | }, |
| 234 | "sla": { "failure_rate": { "max": 0 } } |
| 235 | } |
| 236 | ], |
| 237 | "NovaServers.boot_server_from_volume_and_delete": [ |
| 238 | { |
| 239 | "args": { |
| 240 | "flavor": { |
| 241 | "name": "{{flavor_name}}" |
| 242 | }, |
| 243 | "image": { |
| 244 | "name": "{{image_name}}" |
| 245 | }, |
| 246 | "nics": [ |
| 247 | {"net-id": "{{fixed_net}}"} |
| 248 | ], |
| 249 | "volume_size": {{volume_size}}, |
| 250 | "volume_type": "{{volume_type}}", |
| 251 | "force_delete": false, |
| 252 | "availability_zone": "{{availability_zone}}" |
| 253 | }, |
| 254 | "runner": { |
| 255 | "type": "constant", |
| 256 | "concurrency": {{concurrency}}, |
| 257 | "times": {{times}} |
| 258 | }, |
| 259 | "context": { |
| 260 | "users": { |
| 261 | "tenants": {{users}}, |
| 262 | "users_per_tenant": {{tenants}} |
| 263 | }, |
| 264 | "api_versions@openstack": { "cinder": {"service_type": "volumev3"} }, |
| 265 | "quotas": { |
| 266 | "nova": { |
| 267 | "instances": -1, |
| 268 | "cores": -1, |
| 269 | "ram": -1, |
| 270 | "key_pairs": -1, |
| 271 | "security_groups": -1, |
| 272 | "security_group_rules": -1 |
| 273 | }, |
| 274 | "cinder": { "volumes": -1 } |
| 275 | } |
| 276 | }, |
| 277 | "sla": { "failure_rate": { "max": 0 } } |
| 278 | } |
| 279 | ], |
| 280 | "NeutronNetworks.create_and_delete_networks": [ |
| 281 | { |
| 282 | "runner": { |
| 283 | "type": "constant", |
| 284 | "concurrency": {{concurrency}}, |
| 285 | "times": {{times}} |
| 286 | }, |
| 287 | "context": { |
| 288 | "users": { |
| 289 | "tenants": {{users}}, |
| 290 | "users_per_tenant": {{tenants}} |
| 291 | }, |
| 292 | "quotas": { |
| 293 | "neutron": { "network": -1 } |
| 294 | } |
| 295 | }, |
| 296 | "sla": { "failure_rate": { "max": 0 } } |
| 297 | } |
| 298 | ], |
| 299 | "NeutronNetworks.create_and_delete_ports": [ |
| 300 | { |
| 301 | "args": { |
| 302 | "network_create_args": {}, |
| 303 | "port_create_args": {}, |
| 304 | "ports_per_network": 10 |
| 305 | }, |
| 306 | "runner": { |
| 307 | "type": "constant", |
| 308 | "concurrency": {{concurrency}}, |
| 309 | "times": {{times}} |
| 310 | }, |
| 311 | "context": { |
| 312 | "users": { |
| 313 | "tenants": {{users}}, |
| 314 | "users_per_tenant": {{tenants}} |
| 315 | }, |
| 316 | "quotas": { |
| 317 | "neutron": { |
| 318 | "network": -1, |
| 319 | "port": -1 |
| 320 | } |
| 321 | } |
| 322 | }, |
| 323 | "sla": { "failure_rate": { "max": 0 } } |
| 324 | } |
| 325 | ], |
| 326 | "NeutronNetworks.create_and_delete_routers": [ |
| 327 | { |
| 328 | "args": { |
| 329 | "network_create_args": {}, |
| 330 | "subnet_create_args": {}, |
| 331 | "subnet_cidr_start": "1.1.0.0/30", |
| 332 | "subnets_per_network": 2, |
| 333 | "router_create_args": {} |
| 334 | }, |
| 335 | "runner": { |
| 336 | "type": "constant", |
| 337 | "concurrency": {{concurrency}}, |
| 338 | "times": {{times}} |
| 339 | }, |
| 340 | "context": { |
| 341 | "users": { |
| 342 | "tenants": {{users}}, |
| 343 | "users_per_tenant": {{tenants}} |
| 344 | }, |
| 345 | "quotas": { |
| 346 | "neutron": { |
| 347 | "network": -1, |
| 348 | "subnet": -1, |
| 349 | "router": -1 |
| 350 | } |
| 351 | } |
| 352 | }, |
| 353 | "sla": { "failure_rate": { "max": 0 } } |
| 354 | } |
| 355 | ], |
| 356 | "CinderVolumes.create_and_attach_volume": [ |
| 357 | { |
| 358 | "args": { |
| 359 | "size": {{volume_size}}, |
| 360 | "image": { |
| 361 | "name": "{{image_name}}" |
| 362 | }, |
| 363 | "flavor": { |
| 364 | "name": "{{flavor_name}}" |
| 365 | }, |
| 366 | "nics": [ |
| 367 | {"net-id": "{{fixed_net}}"} |
| 368 | ], |
| 369 | "create_volume_params": {}, |
| 370 | "availability_zone": "{{availability_zone}}" |
| 371 | }, |
| 372 | "runner": { |
| 373 | "type": "constant", |
| 374 | "concurrency": {{concurrency}}, |
| 375 | "times": {{times}} |
| 376 | }, |
| 377 | "context": { |
| 378 | "users": { |
| 379 | "tenants": {{users}}, |
| 380 | "users_per_tenant": {{tenants}} |
| 381 | }, |
| 382 | "api_versions@openstack": { "cinder": {"service_type": "volumev3"} }, |
| 383 | "quotas": { |
| 384 | "nova": { |
| 385 | "instances": -1, |
| 386 | "cores": -1, |
| 387 | "ram": -1, |
| 388 | "key_pairs": -1, |
| 389 | "security_groups": -1, |
| 390 | "security_group_rules": -1 |
| 391 | }, |
| 392 | "cinder": { "volumes": -1 } |
| 393 | } |
| 394 | }, |
| 395 | "sla": { "failure_rate": { "max": 0 } } |
| 396 | } |
| 397 | ], |
| 398 | "CinderVolumes.create_and_delete_snapshot": [ |
| 399 | { |
| 400 | "args": { "force": false }, |
| 401 | "runner": { |
| 402 | "type": "constant", |
| 403 | "concurrency": {{concurrency}}, |
| 404 | "times": {{times}} |
| 405 | }, |
| 406 | "context": { |
| 407 | "users": { |
| 408 | "tenants": {{users}}, |
| 409 | "users_per_tenant": {{tenants}} |
| 410 | }, |
| 411 | "volumes": { "size": {{volume_size}} }, |
| 412 | "quotas": { |
| 413 | "cinder": { |
| 414 | "snapshots": -1, |
| 415 | "volumes": -1 |
| 416 | } |
| 417 | }, |
| 418 | "api_versions@openstack": { "cinder": {"service_type": "volumev3"} } |
| 419 | }, |
| 420 | "sla": { "failure_rate": { "max": 0 } } |
| 421 | } |
| 422 | ], |
| 423 | "CinderVolumes.create_and_upload_volume_to_image": [ |
| 424 | { |
| 425 | "args": { |
| 426 | "size": {{volume_size}}, |
| 427 | "force": false, |
| 428 | "container_format": "bare", |
| 429 | "disk_format": "raw", |
| 430 | "do_delete": true, |
| 431 | "image": { |
| 432 | "name": "{{image_name}}" |
| 433 | } |
| 434 | }, |
| 435 | "runner": { |
| 436 | "type": "constant", |
| 437 | "concurrency": {{concurrency}}, |
| 438 | "times": {{times}} |
| 439 | }, |
| 440 | "context": { |
| 441 | "users": { |
| 442 | "tenants": {{users}}, |
| 443 | "users_per_tenant": {{tenants}} |
| 444 | }, |
| 445 | "quotas": { |
| 446 | "cinder": { |
| 447 | "snapshots": -1, |
| 448 | "volumes": -1 |
| 449 | } |
| 450 | }, |
| 451 | "api_versions@openstack": { "cinder": {"service_type": "volumev3"} } |
| 452 | }, |
| 453 | "sla": { "failure_rate": { "max": 0 } } |
| 454 | } |
| 455 | ], |
| 456 | "GlanceImages.create_and_delete_image": [ |
| 457 | { |
| 458 | "args": { |
| 459 | "image_location": "{{rbd_image}}", |
| 460 | "container_format": "bare", |
| 461 | "disk_format": "qcow2" |
| 462 | }, |
| 463 | "runner": { |
| 464 | "type": "constant", |
| 465 | "concurrency": {{concurrency}}, |
| 466 | "times": {{times}} |
| 467 | }, |
| 468 | "context": { |
| 469 | "users": { |
| 470 | "tenants": {{users}}, |
| 471 | "users_per_tenant": {{tenants}} |
| 472 | } |
| 473 | }, |
| 474 | "sla": { "failure_rate": { "max": 0 } } |
| 475 | } |
| 476 | ], |
| 477 | "HeatStacks.create_and_delete_stack": [ |
| 478 | { |
| 479 | "args": { "template_path": "{{heat_template}}" }, |
| 480 | "runner": { |
| 481 | "type": "constant", |
| 482 | "concurrency": {{concurrency}}, |
| 483 | "times": {{times}} |
| 484 | }, |
| 485 | "context": { |
| 486 | "users": { |
| 487 | "tenants": {{users}}, |
| 488 | "users_per_tenant": {{tenants}} |
| 489 | } |
| 490 | }, |
| 491 | "sla": { "failure_rate": { "max": 0 } } |
| 492 | } |
| 493 | ] |
| 494 | } |