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