Merge "Parameterize Rally scenarios"
[functest.git] / testcases / VIM / OpenStack / CI / rally_cert / scenario / opnfv-nova.yaml
1   NovaKeypair.boot_and_delete_server_with_keypair:
2     -
3       args:
4         {{ vm_params(image_name, flavor_name) }}
5       context:
6         {% call user_context(tenants_amount, users_amount, use_existing_users) %}
7         network:
8           networks_per_tenant: 1
9           start_cidr: "100.1.0.0/25"
10         quotas:
11           {{ unlimited_neutron() }}
12           {{ unlimited_nova(keypairs=true) }}
13         {% endcall %}
14       runner:
15         {{ constant_runner(concurrency=2*controllers_amount, times=10*controllers_amount, is_smoke=smoke) }}
16       sla:
17         {{ no_failures_sla() }}
18
19   NovaKeypair.create_and_delete_keypair:
20     -
21       context:
22         {% call user_context(tenants_amount, users_amount, use_existing_users) %}
23         quotas:
24           {{ unlimited_nova(keypairs=true) }}
25         {% endcall %}
26       runner:
27         {{ constant_runner(concurrency=2*controllers_amount, times=10*controllers_amount, is_smoke=smoke) }}
28       sla:
29         {{ no_failures_sla() }}
30
31   NovaKeypair.create_and_list_keypairs:
32     -
33       context:
34         {% call user_context(tenants_amount, users_amount, use_existing_users) %}
35         quotas:
36           {{ unlimited_nova(keypairs=true) }}
37         {% endcall %}
38       runner:
39         {{ constant_runner(concurrency=2*controllers_amount, times=10*controllers_amount, is_smoke=smoke) }}
40       sla:
41         {{ no_failures_sla() }}
42
43   NovaServers.boot_and_bounce_server:
44     -
45       args:
46         actions:
47           -
48             hard_reboot: 1
49           -
50             soft_reboot: 1
51           -
52             stop_start: 1
53           -
54             rescue_unrescue: 1
55         {{ vm_params(image_name, flavor_name) }}
56       context:
57         {% call user_context(tenants_amount, users_amount, use_existing_users) %}
58         network:
59           networks_per_tenant: 1
60           start_cidr: "100.1.0.0/25"
61         quotas:
62           {{ unlimited_neutron() }}
63           {{ unlimited_nova() }}
64         {% endcall %}
65       runner:
66         {{ constant_runner(concurrency=2*controllers_amount, times=10*controllers_amount, is_smoke=smoke) }}
67       sla:
68         {{ no_failures_sla() }}
69
70   NovaServers.boot_and_delete_server:
71     -
72       args:
73         {{ vm_params(image_name, flavor_name) }}
74       context:
75         {% call user_context(tenants_amount, users_amount, use_existing_users) %}
76         network:
77           networks_per_tenant: 1
78           start_cidr: "100.1.0.0/25"
79         quotas:
80           {{ unlimited_neutron() }}
81           {{ unlimited_nova() }}
82         {% endcall %}
83       runner:
84         {{ constant_runner(concurrency=2*controllers_amount, times=10*controllers_amount, is_smoke=smoke) }}
85       sla:
86         {{ no_failures_sla() }}
87
88   NovaServers.boot_and_list_server:
89     -
90       args:
91         detailed: true
92         {{ vm_params(image_name, flavor_name) }}
93       context:
94         {% call user_context(tenants_amount, users_amount, use_existing_users) %}
95         network:
96           networks_per_tenant: 1
97           start_cidr: "100.1.0.0/25"
98         quotas:
99           {{ unlimited_neutron() }}
100           {{ unlimited_nova() }}
101         {% endcall %}
102       runner:
103         {{ constant_runner(concurrency=2*controllers_amount, times=10*controllers_amount, is_smoke=smoke) }}
104       sla:
105         {{ no_failures_sla() }}
106
107   NovaServers.boot_and_rebuild_server:
108     -
109       args:
110         {{ vm_params(flavor=flavor_name) }}
111         from_image:
112           name: {{ image_name }}
113         to_image:
114           name: {{ image_name }}
115       context:
116         {% call user_context(tenants_amount, users_amount, use_existing_users) %}
117         network:
118           networks_per_tenant: 1
119           start_cidr: "100.1.0.0/25"
120         quotas:
121           {{ unlimited_neutron() }}
122           {{ unlimited_nova() }}
123         {% endcall %}
124       runner:
125         {{ constant_runner(concurrency=2*controllers_amount, times=10*controllers_amount, is_smoke=smoke) }}
126       sla:
127         {{ no_failures_sla() }}
128
129   NovaServers.boot_server_from_volume_and_delete:
130     -
131       args:
132         {{ vm_params(image_name, flavor_name) }}
133         volume_size: 5
134       context:
135         {% call user_context(tenants_amount, users_amount, use_existing_users) %}
136         network:
137           networks_per_tenant: 1
138           start_cidr: "100.1.0.0/25"
139         quotas:
140           {{ unlimited_volumes() }}
141           {{ unlimited_neutron() }}
142           {{ unlimited_nova() }}
143         {% endcall %}
144       runner:
145         {{ constant_runner(concurrency=2*controllers_amount, times=10*controllers_amount, is_smoke=smoke) }}
146       sla:
147         {{ no_failures_sla() }}
148
149   NovaServers.pause_and_unpause_server:
150     -
151       args:
152         {{ vm_params(image_name, flavor_name) }}
153         force_delete: false
154       context:
155         {% call user_context(tenants_amount, users_amount, use_existing_users) %}
156         network:
157           networks_per_tenant: 1
158           start_cidr: "100.1.0.0/25"
159         quotas:
160           {{ unlimited_neutron() }}
161           {{ unlimited_nova() }}
162         {% endcall %}
163       runner:
164         {{ constant_runner(concurrency=2*controllers_amount, times=10*controllers_amount, is_smoke=smoke) }}
165       sla:
166         {{ no_failures_sla() }}
167
168   NovaServers.snapshot_server:
169     -
170       args:
171         {{ vm_params(image_name, flavor_name) }}
172       context:
173         {% call user_context(tenants_amount, users_amount, use_existing_users) %}
174         network:
175           networks_per_tenant: 1
176           start_cidr: "100.1.0.0/25"
177         quotas:
178           {{ unlimited_neutron() }}
179           {{ unlimited_nova() }}
180         {% endcall %}
181       runner:
182         {{ constant_runner(concurrency=2*controllers_amount, times=10*controllers_amount, is_smoke=smoke) }}
183       sla:
184         {{ no_failures_sla() }}
185
186   NovaSecGroup.boot_and_delete_server_with_secgroups:
187     -
188       args:
189         {{ vm_params(image_name, flavor_name) }}
190         security_group_count: 10
191         rules_per_security_group: 10
192       context:
193         {% call user_context(tenants_amount, users_amount, use_existing_users) %}
194         network:
195           start_cidr: "100.1.0.0/25"
196         {% endcall %}
197       runner:
198         {{ constant_runner(concurrency=2*controllers_amount, times=10*controllers_amount, is_smoke=smoke) }}
199       sla:
200         {{ no_failures_sla() }}
201
202   NovaServers.boot_and_live_migrate_server:
203     - args:
204         {{ vm_params(image_name, flavor_name) }}
205         block_migration: false
206       context:
207         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
208       runner:
209         {{ constant_runner(concurrency=2*controllers_amount, times=10*controllers_amount, is_smoke=smoke) }}
210       sla:
211         {{ no_failures_sla() }}
212
213   NovaServers.boot_and_migrate_server:
214     - args:
215         {{ vm_params(image_name, flavor_name) }}
216       context:
217         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
218       runner:
219         {{ constant_runner(concurrency=2*controllers_amount, times=10*controllers_amount, is_smoke=smoke) }}
220       sla:
221         {{ no_failures_sla() }}
222
223   NovaServers.boot_server_from_volume:
224     -
225       args:
226         {{ vm_params(image_name, flavor_name) }}
227         volume_size: 10
228       context:
229         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
230       runner:
231         {{ constant_runner(concurrency=2*controllers_amount, times=10*controllers_amount, is_smoke=smoke) }}
232       sla:
233         {{ no_failures_sla() }}
234
235   NovaServers.boot_server:
236     -
237       args:
238         {{ vm_params(image_name, flavor_name) }}
239       context:
240         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
241       runner:
242         {{ constant_runner(concurrency=2*controllers_amount, times=10*controllers_amount, is_smoke=smoke) }}
243       sla:
244         {{ no_failures_sla() }}
245
246   NovaServers.boot_server_attach_created_volume_and_live_migrate:
247     -
248       args:
249         {{ vm_params(image_name, flavor_name) }}
250         size: 10
251         block_migration: false
252       context:
253         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
254       runner:
255         {{ constant_runner(concurrency=2*controllers_amount, times=10*controllers_amount, is_smoke=smoke) }}
256       sla:
257         {{ no_failures_sla() }}
258
259   NovaServers.boot_server_from_volume_and_live_migrate:
260     - args:
261         {{ vm_params(image_name, flavor_name) }}
262         block_migration: false
263         volume_size: 10
264         force_delete: false
265       context:
266         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
267       runner:
268         {{ constant_runner(concurrency=2*controllers_amount, times=10*controllers_amount, is_smoke=smoke) }}
269       sla:
270         {{ no_failures_sla() }}
271
272   NovaSecGroup.create_and_delete_secgroups:
273     -
274       args:
275         security_group_count: 10
276         rules_per_security_group: 10
277       context:
278         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
279       runner:
280         {{ constant_runner(concurrency=2*controllers_amount, times=10*controllers_amount, is_smoke=smoke) }}
281       sla:
282         {{ no_failures_sla() }}
283
284   NovaSecGroup.create_and_list_secgroups:
285     -
286       args:
287         security_group_count: 10
288         rules_per_security_group: 10
289       context:
290         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
291       runner:
292         {{ constant_runner(concurrency=2*controllers_amount, times=10*controllers_amount, is_smoke=smoke) }}
293       sla:
294         {{ no_failures_sla() }}
295
296   NovaServers.list_servers:
297     -
298       args:
299         detailed: True
300       context:
301         {% call user_context(tenants_amount, users_amount, use_existing_users) %}
302         servers:
303           {{ vm_params(image_name,flavor_name,none)|indent(2,true) }}
304           servers_per_tenant: 2
305         {% endcall %}
306       runner:
307         {{ constant_runner(concurrency=2*controllers_amount, times=10*controllers_amount, is_smoke=smoke) }}
308       sla:
309         {{ no_failures_sla() }}
310
311   NovaServers.resize_server:
312     -
313       args:
314         {{ vm_params(image_name, flavor_name) }}
315         to_flavor:
316           name: "m1.small"
317         confirm: true
318         force_delete: false
319       context:
320         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
321       runner:
322         {{ constant_runner(concurrency=2*controllers_amount, times=10*controllers_amount, is_smoke=smoke) }}
323       sla:
324         {{ no_failures_sla() }}