Oleksii Zhurba | 1580fc5 | 2017-11-14 15:20:44 -0600 | [diff] [blame] | 1 | {% set flavor_name = flavor_name or "m1.tiny" %} |
Oleksii Zhurba | eb57df2 | 2018-06-21 17:44:06 -0500 | [diff] [blame] | 2 | {% set flavor_name_ubuntu = flavor_name_ubuntu or "m1.medium" %} |
| 3 | {% set image_name = image_name or "testvm" %} |
| 4 | {% set image_name_ubuntu = image_name_ubuntu or "Ubuntu" %} |
Oleksii Zhurba | 1580fc5 | 2017-11-14 15:20:44 -0600 | [diff] [blame] | 5 | {% set volume_type = volume_type or "default" %} |
| 6 | {% set availability_zone = "nova" %} |
| 7 | {% set concurrency = 1 %} |
| 8 | {% set volume_size = 1 %} |
Oleksii Zhurba | eb57df2 | 2018-06-21 17:44:06 -0500 | [diff] [blame] | 9 | {% set times = 1 %} |
| 10 | {% set users = 1 %} |
| 11 | {% set tenants = 1 %} |
Oleksii Zhurba | 1580fc5 | 2017-11-14 15:20:44 -0600 | [diff] [blame] | 12 | {% set rbd_image = "/home/rally/cvp-configuration/cirros-0.3.4-x86_64-disk.img" %} |
Oleksii Zhurba | 425335a | 2017-12-12 15:31:50 -0600 | [diff] [blame] | 13 | {% set heat_template = "/home/rally/cvp-configuration/rally/default.yaml.template" %} |
Oleksii Zhurba | eb57df2 | 2018-06-21 17:44:06 -0500 | [diff] [blame] | 14 | {% set ext_net_name = "floating" %} |
| 15 | {% set script_file = script_file or "cvp-configuration/rally/instance_test.sh" %} |
Oleksii Zhurba | 1580fc5 | 2017-11-14 15:20:44 -0600 | [diff] [blame] | 16 | { |
Oleksii Zhurba | 425335a | 2017-12-12 15:31:50 -0600 | [diff] [blame] | 17 | "KeystoneBasic.authenticate_user_and_validate_token": [ |
| 18 | { |
| 19 | "args": {}, |
| 20 | "runner": { |
| 21 | "type": "constant", |
| 22 | "times": {{times}}, |
| 23 | "concurrency": {{concurrency}} |
| 24 | }, |
| 25 | "sla": { |
| 26 | "failure_rate": { |
| 27 | "max": 0 |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | ], |
Oleksii Zhurba | eb57df2 | 2018-06-21 17:44:06 -0500 | [diff] [blame] | 32 | "Authenticate.validate_cinder": [ |
| 33 | { |
| 34 | "args": { |
| 35 | "repetitions": 2 |
| 36 | }, |
| 37 | "runner": { |
| 38 | "type": "constant", |
| 39 | "times": {{times}}, |
| 40 | "concurrency": {{concurrency}} |
| 41 | }, |
| 42 | "context": { |
| 43 | "users": { |
| 44 | "users_per_tenant": {{users}}, |
| 45 | "tenants": {{tenants}} |
| 46 | } |
| 47 | }, |
| 48 | "sla": { |
| 49 | "failure_rate": { |
| 50 | "max": 0 |
| 51 | } |
| 52 | } |
| 53 | } |
| 54 | ], |
| 55 | "Authenticate.validate_glance": [ |
| 56 | { |
| 57 | "args": { |
| 58 | "repetitions": 2 |
| 59 | }, |
| 60 | "runner": { |
| 61 | "type": "constant", |
| 62 | "times": {{times}}, |
| 63 | "concurrency": {{concurrency}} |
| 64 | }, |
| 65 | "context": { |
| 66 | "users": { |
| 67 | "users_per_tenant": {{users}}, |
| 68 | "tenants": {{tenants}} |
| 69 | } |
| 70 | }, |
| 71 | "sla": { |
| 72 | "failure_rate": { |
| 73 | "max": 0 |
| 74 | } |
| 75 | } |
| 76 | } |
| 77 | ], |
| 78 | "Authenticate.validate_heat": [ |
| 79 | { |
| 80 | "args": { |
| 81 | "repetitions": 2 |
| 82 | }, |
| 83 | "runner": { |
| 84 | "type": "constant", |
| 85 | "times": {{times}}, |
| 86 | "concurrency": {{concurrency}} |
| 87 | }, |
| 88 | "context": { |
| 89 | "users": { |
| 90 | "users_per_tenant": {{users}}, |
| 91 | "tenants": {{tenants}} |
| 92 | } |
| 93 | }, |
| 94 | "sla": { |
| 95 | "failure_rate": { |
| 96 | "max": 0 |
| 97 | } |
| 98 | } |
| 99 | } |
| 100 | ], |
| 101 | "Authenticate.validate_nova": [ |
| 102 | { |
| 103 | "args": { |
| 104 | "repetitions": 2 |
| 105 | }, |
| 106 | "runner": { |
| 107 | "type": "constant", |
| 108 | "times": {{times}}, |
| 109 | "concurrency": {{concurrency}} |
| 110 | }, |
| 111 | "context": { |
| 112 | "users": { |
| 113 | "users_per_tenant": {{users}}, |
| 114 | "tenants": {{tenants}} |
| 115 | } |
| 116 | }, |
| 117 | "sla": { |
| 118 | "failure_rate": { |
| 119 | "max": 0 |
| 120 | } |
| 121 | } |
| 122 | } |
| 123 | ], |
| 124 | "Authenticate.validate_neutron": [ |
| 125 | { |
| 126 | "args": { |
| 127 | "repetitions": 2 |
| 128 | }, |
| 129 | "runner": { |
| 130 | "type": "constant", |
| 131 | "times": {{times}}, |
| 132 | "concurrency": {{concurrency}} |
| 133 | }, |
| 134 | "context": { |
| 135 | "users": { |
| 136 | "users_per_tenant": {{users}}, |
| 137 | "tenants": {{tenants}} |
| 138 | } |
| 139 | }, |
| 140 | "sla": { |
| 141 | "failure_rate": { |
| 142 | "max": 0 |
| 143 | } |
| 144 | } |
| 145 | } |
| 146 | ], |
| 147 | "VMTasks.boot_runcommand_delete": [ |
| 148 | { |
| 149 | "args": { |
| 150 | "flavor": { |
| 151 | "name": "{{flavor_name_ubuntu}}" |
| 152 | }, |
| 153 | "image": { |
| 154 | "name": "{{image_name_ubuntu}}" |
| 155 | }, |
| 156 | "volume_args": { |
| 157 | "size": 10 |
| 158 | }, |
| 159 | "floating_network": "{{ext_net_name}}", |
| 160 | "use_floating_ip": true, |
| 161 | "wait_for_ping": false, |
| 162 | "force_delete": false, |
| 163 | "command": { |
| 164 | "interpreter": "/bin/sh", |
| 165 | "script_file": "{{script_file}}" |
| 166 | }, |
| 167 | "username": "ubuntu" |
| 168 | }, |
| 169 | "runner": { |
| 170 | "type": "constant", |
| 171 | "times": 1, |
| 172 | "concurrency": 1 |
| 173 | }, |
| 174 | "context": { |
| 175 | "users": { |
| 176 | "tenants": 1, |
| 177 | "users_per_tenant": 1 |
| 178 | }, |
| 179 | "network": {} |
| 180 | } |
| 181 | } |
| 182 | ], |
| 183 | "NovaServers.boot_and_migrate_server": [ |
| 184 | { |
| 185 | "args": { |
| 186 | "flavor": { |
| 187 | "name": "{{flavor_name}}" |
| 188 | }, |
| 189 | "image": { |
| 190 | "name": "{{image_name}}" |
| 191 | } |
| 192 | }, |
| 193 | "runner": { |
| 194 | "type": "constant", |
| 195 | "times": {{times}}, |
| 196 | "concurrency": {{concurrency}} |
| 197 | }, |
| 198 | "context": { |
| 199 | "users": { |
| 200 | "users_per_tenant": {{users}}, |
| 201 | "tenants": {{tenants}} |
| 202 | } |
| 203 | }, |
| 204 | "sla": { |
| 205 | "failure_rate": { |
| 206 | "max": 0 |
| 207 | } |
| 208 | } |
| 209 | } |
| 210 | ], |
| 211 | "NovaServers.boot_and_live_migrate_server": [ |
| 212 | { |
| 213 | "args": { |
| 214 | "flavor": { |
| 215 | "name": "{{flavor_name}}" |
| 216 | }, |
| 217 | "image": { |
| 218 | "name": "{{image_name}}" |
| 219 | }, |
| 220 | "block_migration": false |
| 221 | }, |
| 222 | "runner": { |
| 223 | "type": "constant", |
| 224 | "concurrency": {{concurrency}}, |
| 225 | "times": {{times}} |
| 226 | }, |
| 227 | "context": { |
| 228 | "users": { |
| 229 | "users_per_tenant": {{users}}, |
| 230 | "tenants": {{tenants}} |
| 231 | } |
| 232 | }, |
| 233 | "sla": { |
| 234 | "failure_rate": { |
| 235 | "max": 0 |
| 236 | } |
| 237 | } |
| 238 | } |
| 239 | ], |
Oleksii Zhurba | 1580fc5 | 2017-11-14 15:20:44 -0600 | [diff] [blame] | 240 | "NovaServers.boot_and_associate_floating_ip": [ |
| 241 | { |
| 242 | "runner": { |
| 243 | "type": "constant", |
| 244 | "concurrency": {{concurrency}}, |
| 245 | "times": {{times}} |
| 246 | }, |
| 247 | "args": { |
| 248 | "flavor": { |
| 249 | "name": "{{flavor_name}}" |
| 250 | }, |
| 251 | "image": { |
| 252 | "name": "{{image_name}}" |
| 253 | }, |
| 254 | "auto_assign_nic": true, |
| 255 | "availability_zone": "{{availability_zone}}" |
| 256 | }, |
| 257 | "context": { |
| 258 | "users": { |
| 259 | "users_per_tenant": {{users}}, |
| 260 | "tenants": {{tenants}} |
| 261 | }, |
| 262 | "network": {}, |
| 263 | "quotas": { |
| 264 | "nova": { |
| 265 | "instances": -1, |
| 266 | "cores": -1, |
| 267 | "ram": -1, |
| 268 | "floating_ips": -1, |
| 269 | "key_pairs": -1, |
| 270 | "security_groups": -1, |
| 271 | "security_group_rules": -1 |
| 272 | } |
| 273 | } |
| 274 | }, |
| 275 | "sla": { |
| 276 | "failure_rate": { |
| 277 | "max": 0 |
| 278 | } |
| 279 | } |
| 280 | } |
| 281 | ], |
Oleksii Zhurba | eb57df2 | 2018-06-21 17:44:06 -0500 | [diff] [blame] | 282 | "NovaServers.boot_and_delete_server": [ |
| 283 | { |
| 284 | "args": { |
| 285 | "flavor": { |
| 286 | "name": "{{flavor_name_ubuntu}}" |
| 287 | }, |
| 288 | "image": { |
| 289 | "name": "{{image_name_ubuntu}}" |
| 290 | }, |
| 291 | "detailed": true, |
| 292 | "auto_assign_nic": true, |
| 293 | "availability_zone": "{{availability_zone}}" |
| 294 | }, |
| 295 | "runner": { |
| 296 | "type": "constant", |
| 297 | "concurrency": {{concurrency}}, |
| 298 | "times": {{times}} |
| 299 | }, |
| 300 | "context": { |
| 301 | "users": { |
| 302 | "tenants": {{users}}, |
| 303 | "users_per_tenant": {{tenants}} |
| 304 | }, |
| 305 | "network": {}, |
| 306 | "quotas": { |
| 307 | "nova": { |
| 308 | "instances": -1, |
| 309 | "cores": -1, |
| 310 | "ram": -1, |
| 311 | "floating_ips": -1, |
| 312 | "key_pairs": -1, |
| 313 | "security_groups": -1, |
| 314 | "security_group_rules": -1 |
| 315 | } |
| 316 | } |
| 317 | }, |
| 318 | "sla": { |
| 319 | "failure_rate": { |
| 320 | "max": 0 |
| 321 | } |
| 322 | } |
| 323 | } |
| 324 | ], |
| 325 | "NovaServers.boot_and_delete_server": [ |
Oleksii Zhurba | 1580fc5 | 2017-11-14 15:20:44 -0600 | [diff] [blame] | 326 | { |
| 327 | "args": { |
| 328 | "flavor": { |
| 329 | "name": "{{flavor_name}}" |
| 330 | }, |
| 331 | "image": { |
| 332 | "name": "{{image_name}}" |
| 333 | }, |
Oleksii Zhurba | 425335a | 2017-12-12 15:31:50 -0600 | [diff] [blame] | 334 | "detailed": true, |
Oleksii Zhurba | 1580fc5 | 2017-11-14 15:20:44 -0600 | [diff] [blame] | 335 | "auto_assign_nic": true, |
| 336 | "availability_zone": "{{availability_zone}}" |
| 337 | }, |
| 338 | "runner": { |
| 339 | "type": "constant", |
| 340 | "concurrency": {{concurrency}}, |
| 341 | "times": {{times}} |
| 342 | }, |
| 343 | "context": { |
| 344 | "users": { |
| 345 | "tenants": {{users}}, |
| 346 | "users_per_tenant": {{tenants}} |
| 347 | }, |
| 348 | "network": {}, |
| 349 | "quotas": { |
| 350 | "nova": { |
| 351 | "instances": -1, |
| 352 | "cores": -1, |
| 353 | "ram": -1, |
| 354 | "floating_ips": -1, |
| 355 | "key_pairs": -1, |
| 356 | "security_groups": -1, |
| 357 | "security_group_rules": -1 |
| 358 | } |
| 359 | } |
| 360 | }, |
| 361 | "sla": { |
| 362 | "failure_rate": { |
| 363 | "max": 0 |
| 364 | } |
| 365 | } |
| 366 | } |
| 367 | ], |
| 368 | "NovaServers.boot_server_from_volume_and_delete": [ |
| 369 | { |
| 370 | "args": { |
| 371 | "flavor": { |
| 372 | "name": "{{flavor_name}}" |
| 373 | }, |
| 374 | "image": { |
| 375 | "name": "{{image_name}}" |
| 376 | }, |
| 377 | "volume_size": {{volume_size}}, |
| 378 | "volume_type": "{{volume_type}}", |
| 379 | "force_delete": false, |
| 380 | "auto_assign_nic": true, |
| 381 | "availability_zone": "{{availability_zone}}" |
| 382 | }, |
| 383 | "runner": { |
| 384 | "type": "constant", |
| 385 | "concurrency": {{concurrency}}, |
| 386 | "times": {{times}} |
| 387 | }, |
| 388 | "context": { |
| 389 | "users": { |
| 390 | "tenants": {{users}}, |
| 391 | "users_per_tenant": {{tenants}} |
| 392 | }, |
| 393 | "network": {}, |
| 394 | "quotas": { |
| 395 | "nova": { |
| 396 | "instances": -1, |
| 397 | "cores": -1, |
| 398 | "ram": -1, |
| 399 | "floating_ips": -1, |
| 400 | "key_pairs": -1, |
| 401 | "security_groups": -1, |
| 402 | "security_group_rules": -1 |
| 403 | }, |
| 404 | "cinder": { |
| 405 | "volumes": -1 |
| 406 | } |
| 407 | } |
| 408 | }, |
| 409 | "sla": { |
| 410 | "failure_rate": { |
| 411 | "max": 0 |
| 412 | } |
| 413 | } |
| 414 | } |
| 415 | ], |
| 416 | "NeutronNetworks.create_and_delete_networks": [ |
| 417 | { |
| 418 | "args": { |
| 419 | "network_create_args": {} |
| 420 | }, |
| 421 | "runner": { |
| 422 | "type": "constant", |
| 423 | "concurrency": {{concurrency}}, |
| 424 | "times": {{times}} |
| 425 | }, |
| 426 | "context": { |
| 427 | "users": { |
| 428 | "tenants": {{users}}, |
| 429 | "users_per_tenant": {{tenants}} |
| 430 | }, |
| 431 | "quotas": { |
| 432 | "neutron": { |
| 433 | "network": -1 |
| 434 | } |
| 435 | } |
| 436 | }, |
| 437 | "sla": { |
| 438 | "failure_rate": { |
| 439 | "max": 0 |
| 440 | } |
| 441 | } |
| 442 | } |
| 443 | ], |
| 444 | "NeutronNetworks.create_and_delete_ports": [ |
| 445 | { |
| 446 | "args": { |
| 447 | "network_create_args": {}, |
| 448 | "port_create_args": {}, |
| 449 | "ports_per_network": 10 |
| 450 | }, |
| 451 | "runner": { |
| 452 | "type": "constant", |
| 453 | "concurrency": {{concurrency}}, |
| 454 | "times": {{times}} |
| 455 | }, |
| 456 | "context": { |
| 457 | "network": {}, |
| 458 | "users": { |
| 459 | "tenants": {{users}}, |
| 460 | "users_per_tenant": {{tenants}} |
| 461 | }, |
| 462 | "quotas": { |
| 463 | "neutron": { |
| 464 | "network": -1, |
| 465 | "port": -1 |
| 466 | } |
| 467 | } |
| 468 | }, |
| 469 | "sla": { |
| 470 | "failure_rate": { |
| 471 | "max": 0 |
| 472 | } |
| 473 | } |
| 474 | } |
| 475 | ], |
| 476 | "NeutronNetworks.create_and_delete_routers": [ |
| 477 | { |
| 478 | "args": { |
| 479 | "network_create_args": {}, |
| 480 | "subnet_create_args": {}, |
| 481 | "subnet_cidr_start": "1.1.0.0/30", |
| 482 | "subnets_per_network": 2, |
| 483 | "router_create_args": {} |
| 484 | }, |
| 485 | "runner": { |
| 486 | "type": "constant", |
| 487 | "concurrency": {{concurrency}}, |
| 488 | "times": {{times}} |
| 489 | }, |
| 490 | "context": { |
| 491 | "network": {}, |
| 492 | "users": { |
| 493 | "tenants": {{users}}, |
| 494 | "users_per_tenant": {{tenants}} |
| 495 | }, |
| 496 | "quotas": { |
| 497 | "neutron": { |
| 498 | "network": -1, |
| 499 | "subnet": -1, |
| 500 | "router": -1 |
| 501 | } |
| 502 | } |
| 503 | }, |
| 504 | "sla": { |
| 505 | "failure_rate": { |
| 506 | "max": 0 |
| 507 | } |
| 508 | } |
| 509 | } |
| 510 | ], |
| 511 | "CinderVolumes.create_and_attach_volume": [ |
| 512 | { |
| 513 | "args": { |
| 514 | "size": {{volume_size}}, |
| 515 | "image": { |
| 516 | "name": "{{image_name}}" |
| 517 | }, |
| 518 | "flavor": { |
| 519 | "name": "{{flavor_name}}" |
| 520 | }, |
| 521 | "create_volume_params": { |
| 522 | }, |
| 523 | "auto_assign_nic": true, |
| 524 | "availability_zone": "{{availability_zone}}" |
| 525 | }, |
| 526 | "runner": { |
| 527 | "type": "constant", |
| 528 | "concurrency": {{concurrency}}, |
| 529 | "times": {{times}} |
| 530 | }, |
| 531 | "context": { |
| 532 | "users": { |
| 533 | "tenants": {{users}}, |
| 534 | "users_per_tenant": {{tenants}} |
| 535 | }, |
| 536 | "network": {}, |
| 537 | "quotas": { |
| 538 | "cinder": { |
| 539 | "volumes": -1 |
| 540 | } |
| 541 | } |
| 542 | }, |
| 543 | "sla": { |
| 544 | "failure_rate": { |
| 545 | "max": 0 |
| 546 | } |
| 547 | } |
| 548 | } |
| 549 | ], |
| 550 | "CinderVolumes.create_and_delete_snapshot": [ |
| 551 | { |
| 552 | "args": { |
| 553 | "force": false |
| 554 | }, |
| 555 | "runner": { |
| 556 | "type": "constant", |
| 557 | "concurrency": {{concurrency}}, |
| 558 | "times": {{times}} |
| 559 | }, |
| 560 | "context": { |
| 561 | "users": { |
| 562 | "tenants": {{users}}, |
| 563 | "users_per_tenant": {{tenants}} |
| 564 | }, |
| 565 | "volumes": { |
| 566 | "size": {{volume_size}} |
| 567 | }, |
| 568 | "quotas": { |
| 569 | "cinder": { |
| 570 | "snapshots": -1, |
| 571 | "volumes": -1 |
| 572 | } |
| 573 | } |
| 574 | }, |
| 575 | "sla": { |
| 576 | "failure_rate": { |
| 577 | "max": 0 |
| 578 | } |
| 579 | } |
| 580 | } |
| 581 | ], |
| 582 | "CinderVolumes.create_and_upload_volume_to_image": [ |
| 583 | { |
| 584 | "args": { |
| 585 | "size": {{volume_size}}, |
| 586 | "force": false, |
| 587 | "container_format": "bare", |
| 588 | "disk_format": "raw", |
| 589 | "do_delete": true, |
| 590 | "image": { |
| 591 | "name": "{{image_name}}" |
| 592 | } |
| 593 | }, |
| 594 | "runner": { |
| 595 | "type": "constant", |
| 596 | "concurrency": {{concurrency}}, |
| 597 | "times": {{times}} |
| 598 | }, |
| 599 | "context": { |
| 600 | "users": { |
| 601 | "tenants": {{users}}, |
| 602 | "users_per_tenant": {{tenants}} |
| 603 | }, |
| 604 | "quotas": { |
| 605 | "cinder": { |
| 606 | "snapshots": -1, |
| 607 | "volumes": -1 |
| 608 | } |
| 609 | } |
| 610 | }, |
| 611 | "sla": { |
| 612 | "failure_rate": { |
| 613 | "max": 0 |
| 614 | } |
| 615 | } |
| 616 | } |
| 617 | ], |
| 618 | "GlanceImages.create_and_delete_image": [ |
| 619 | { |
| 620 | "args": { |
| 621 | "image_location": "{{rbd_image}}", |
| 622 | "container_format": "bare", |
| 623 | "disk_format": "qcow2" |
| 624 | }, |
| 625 | "runner": { |
| 626 | "type": "constant", |
| 627 | "concurrency": {{concurrency}}, |
| 628 | "times": {{times}} |
| 629 | }, |
| 630 | "context": { |
| 631 | "users": { |
| 632 | "tenants": {{users}}, |
| 633 | "users_per_tenant": {{tenants}} |
| 634 | } |
| 635 | }, |
| 636 | "sla": { |
| 637 | "failure_rate": { |
| 638 | "max": 0 |
| 639 | } |
| 640 | } |
| 641 | } |
| 642 | ], |
| 643 | "HeatStacks.create_and_delete_stack": [ |
| 644 | { |
| 645 | "args": { |
Oleksii Zhurba | 425335a | 2017-12-12 15:31:50 -0600 | [diff] [blame] | 646 | "template_path": "{{heat_template}}" |
Oleksii Zhurba | 1580fc5 | 2017-11-14 15:20:44 -0600 | [diff] [blame] | 647 | }, |
| 648 | "runner": { |
| 649 | "type": "constant", |
| 650 | "concurrency": {{concurrency}}, |
| 651 | "times": {{times}} |
| 652 | }, |
| 653 | "context": { |
| 654 | "users": { |
| 655 | "tenants": {{users}}, |
| 656 | "users_per_tenant": {{tenants}} |
| 657 | } |
| 658 | }, |
| 659 | "sla": { |
| 660 | "failure_rate": { |
| 661 | "max": 0 |
| 662 | } |
| 663 | } |
| 664 | } |
| 665 | ], |
| 666 | "KeystoneBasic.create_tenant_with_users": [ |
| 667 | { |
| 668 | "args": { |
| 669 | "users_per_tenant": 10 |
| 670 | }, |
| 671 | "runner": { |
| 672 | "type": "constant", |
| 673 | "concurrency": {{concurrency}}, |
| 674 | "times": {{times}} |
| 675 | }, |
| 676 | "sla": { |
| 677 | "failure_rate": { |
| 678 | "max": 0 |
| 679 | } |
| 680 | } |
| 681 | } |
| 682 | ] |
| 683 | } |