blob: 955c6f0530aedb25c89dcb341169056938a18981 [file] [log] [blame]
Oleksii Zhurba4be28322019-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 = 1 %}
7{% set times = 1 %}
8{% set users = 1 %}
9{% set tenants = 1 %}
Oleksii Zhurba687e8952019-05-31 14:54:26 -050010{% set ext_net_id = "EXT_NET_ID" %}
Oleksii Zhurba4be28322019-04-18 18:07:35 -050011{% set fixed_net = "${FIXED_NET}" %}
Oleksii Zhurba687e8952019-05-31 14:54:26 -050012{% set script_file = script_file or "/home/rally/instance_test.sh" %}
13{% set block_migration = false %}
Oleksii Zhurba4be28322019-04-18 18:07:35 -050014{
15 "VMTasks.boot_runcommand_delete": [
16 {
17 "args": {
18 "network_create_args": {},
19 "flavor": {
20 "name": "{{flavor_name_ubuntu}}"
21 },
22 "image": {
23 "name": "{{image_name_ubuntu}}"
24 },
25 "nics": [
26 {"net-id": "{{fixed_net}}"}
27 ],
28 "volume_args": { "size": 10 },
29 "router_create_args": {
30 "external_gateway_info": {"network_id": "{{ext_net_id}}"}
31 },
32 "wait_for_ping": false,
33 "force_delete": false,
34 "command": {
35 "interpreter": "/bin/sh",
36 "script_file": "{{script_file}}"
37 },
38 "username": "ubuntu"
39 },
40 "runner": {
41 "type": "constant",
42 "concurrency": {{concurrency}},
43 "times": {{times}}
44 },
45 "context": {
46 "users": {
47 "users_per_tenant": {{users}},
48 "tenants": {{tenants}}
49 },
50 "api_versions@openstack": { "cinder": {"service_type": "volumev3"} }
51 }
52 }
53 ],
54 "NovaServers.boot_and_associate_floating_ip": [
55 {
56 "runner": {
57 "type": "constant",
58 "concurrency": {{concurrency}},
59 "times": {{times}}
60 },
61 "args": {
62 "flavor": {
63 "name": "{{flavor_name}}"
64 },
65 "image": {
66 "name": "{{image_name}}"
67 },
68 "auto_assign_nic": true,
69 "availability_zone": "{{availability_zone}}"
70 },
71 "context": {
72 "users": {
73 "users_per_tenant": {{users}},
74 "tenants": {{tenants}}
75 },
76 "network": {
77 "router": {
78 "external_gateway_info": {
79 "network_id": "{{ext_net_id}}"
80 }
81 }
82 },
83 "quotas": {
84 "nova": {
85 "instances": -1,
86 "cores": -1,
87 "ram": -1,
88 "floating_ips": -1,
89 "key_pairs": -1,
90 "security_groups": -1,
91 "security_group_rules": -1
92 }
93 }
94 },
95 "sla": { "failure_rate": { "max": 0 } }
96 }
97 ],
98 "NovaServers.boot_and_delete_server": [
99 {
100 "args": {
101 "flavor": {
102 "name": "{{flavor_name_ubuntu}}"
103 },
104 "image": {
105 "name": "{{image_name_ubuntu}}"
106 },
107 "nics": [
108 {"net-id": "{{fixed_net}}"}
109 ],
110 "detailed": true,
111 "availability_zone": "{{availability_zone}}"
112 },
113 "runner": {
114 "type": "constant",
115 "concurrency": {{concurrency}},
116 "times": {{times}}
117 },
118 "context": {
119 "users": {
120 "tenants": {{users}},
121 "users_per_tenant": {{tenants}}
122 },
123 "quotas": {
124 "nova": {
125 "instances": -1,
126 "cores": -1,
127 "ram": -1,
128 "key_pairs": -1,
129 "security_groups": -1,
130 "security_group_rules": -1
131 }
132 }
133 },
134 "sla": { "failure_rate": { "max": 0 } }
135 }
Oleksii Zhurba687e8952019-05-31 14:54:26 -0500136 ],
137 "NovaServers.boot_and_live_migrate_server": [
138 {
139 "args": {
140 "flavor": {
141 "name": "{{flavor_name}}"
142 },
143 "image": {
144 "name": "{{image_name}}"
145 },
146 "nics": [
147 {"net-id": "{{fixed_net}}"}
148 ],
149 "block_migration": {{block_migration}}
150 },
151 "runner": {
152 "type": "constant",
153 "concurrency": {{concurrency}},
154 "times": {{times}}
155 },
156 "context": {
157 "users": {
158 "users_per_tenant": {{users}},
159 "tenants": {{tenants}}
160 },
161 "quotas": {
162 "nova": {
163 "instances": -1,
164 "cores": -1,
165 "ram": -1,
166 "key_pairs": -1,
167 "security_groups": -1,
168 "security_group_rules": -1
169 }
170 }
171 },
172 "sla": { "failure_rate": { "max": 0 } }
173 }
Oleksii Zhurba4be28322019-04-18 18:07:35 -0500174 ]
175}