blob: 6c3a05d5d2130f38f9f8fd1e50e2e1846cc3563a [file] [log] [blame]
Oleksii Zhurba53cca042019-04-18 18:07:35 -05001{% set flavor_name = flavor_name or "m1.tiny" %}
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" %}
5{% set availability_zone = "nova" %}
6{% set concurrency = 10 %}
7{% set times = 100 %}
8{% set users = 3 %}
9{% set tenants = 3 %}
10{% set ext_net_id = "<PUT_ID_HERE>" %}
11{% set fixed_net = "${FIXED_NET}" %}
12{% set script_file = script_file or "/home/rally/source/cvp-configuration/rally/instance_test.sh" %}
13{
14 "VMTasks.boot_runcommand_delete": [
15 {
16 "args": {
17 "network_create_args": {},
18 "flavor": {
19 "name": "{{flavor_name_ubuntu}}"
20 },
21 "image": {
22 "name": "{{image_name_ubuntu}}"
23 },
24 "nics": [
25 {"net-id": "{{fixed_net}}"}
26 ],
27 "volume_args": { "size": 10 },
28 "router_create_args": {
29 "external_gateway_info": {"network_id": "{{ext_net_id}}"}
30 },
31 "wait_for_ping": false,
32 "force_delete": false,
33 "command": {
34 "interpreter": "/bin/sh",
35 "script_file": "{{script_file}}"
36 },
37 "username": "ubuntu"
38 },
39 "runner": {
40 "type": "constant",
41 "concurrency": {{concurrency}},
42 "times": {{times}}
43 },
44 "context": {
45 "users": {
46 "users_per_tenant": {{users}},
47 "tenants": {{tenants}}
48 },
49 "api_versions@openstack": { "cinder": {"service_type": "volumev3"} }
50 }
51 }
52 ],
53 "NovaServers.boot_and_associate_floating_ip": [
54 {
55 "runner": {
56 "type": "constant",
57 "concurrency": {{concurrency}},
58 "times": {{times}}
59 },
60 "args": {
61 "flavor": {
62 "name": "{{flavor_name}}"
63 },
64 "image": {
65 "name": "{{image_name}}"
66 },
67 "auto_assign_nic": true,
68 "availability_zone": "{{availability_zone}}"
69 },
70 "context": {
71 "users": {
72 "users_per_tenant": {{users}},
73 "tenants": {{tenants}}
74 },
75 "network": {
76 "router": {
77 "external_gateway_info": {
78 "network_id": "{{ext_net_id}}"
79 }
80 }
81 },
82 "quotas": {
83 "nova": {
84 "instances": -1,
85 "cores": -1,
86 "ram": -1,
87 "floating_ips": -1,
88 "key_pairs": -1,
89 "security_groups": -1,
90 "security_group_rules": -1
91 }
92 }
93 },
94 "sla": { "failure_rate": { "max": 0 } }
95 }
96 ],
97 "NovaServers.boot_and_delete_server": [
98 {
99 "args": {
100 "flavor": {
101 "name": "{{flavor_name_ubuntu}}"
102 },
103 "image": {
104 "name": "{{image_name_ubuntu}}"
105 },
106 "nics": [
107 {"net-id": "{{fixed_net}}"}
108 ],
109 "detailed": true,
110 "availability_zone": "{{availability_zone}}"
111 },
112 "runner": {
113 "type": "constant",
114 "concurrency": {{concurrency}},
115 "times": {{times}}
116 },
117 "context": {
118 "users": {
119 "tenants": {{users}},
120 "users_per_tenant": {{tenants}}
121 },
122 "quotas": {
123 "nova": {
124 "instances": -1,
125 "cores": -1,
126 "ram": -1,
127 "key_pairs": -1,
128 "security_groups": -1,
129 "security_group_rules": -1
130 }
131 }
132 },
133 "sla": { "failure_rate": { "max": 0 } }
134 }
135 ]
136}