Fix rally cinder volume attach scenarios
[functest-xtesting.git] / functest / opnfv_tests / openstack / rally / scenario / full / opnfv-cinder.yaml
1   CinderVolumes.create_and_attach_volume:
2     -
3       args:
4         {{ vm_params(image_name,flavor_name,1) }}
5         nics:
6           - net-id: {{ netid }}
7       context:
8         {% call user_context(tenants_amount, users_amount, use_existing_users) %}
9         quotas:
10           {{ unlimited_volumes() }}
11         {% endcall %}
12       runner:
13         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
14       sla:
15         {{ no_failures_sla() }}
16
17   CinderVolumes.create_and_list_snapshots:
18     -
19       args:
20         detailed: true
21         force: false
22       context:
23         {% call user_context(tenants_amount, users_amount, use_existing_users) %}
24         quotas:
25           {{ unlimited_volumes() }}
26         {{ volumes() }}
27         {% endcall %}
28       runner:
29         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
30       sla:
31         {{ no_failures_sla() }}
32
33   CinderVolumes.create_and_list_volume:
34     -
35       args:
36         detailed: true
37         {{ vm_params(image_name,none,1) }}
38       context:
39         {% call user_context(tenants_amount, users_amount, use_existing_users) %}
40         quotas:
41           {{ unlimited_volumes() }}
42         {% endcall %}
43       runner:
44         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
45       sla:
46         {{ no_failures_sla() }}
47     -
48       args:
49         detailed: true
50         size: 1
51       context:
52         {% call user_context(tenants_amount, users_amount, use_existing_users) %}
53         quotas:
54           {{ unlimited_volumes() }}
55         {% endcall %}
56       runner:
57         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
58       sla:
59         {{ no_failures_sla() }}
60
61   CinderVolumes.create_and_upload_volume_to_image:
62     -
63       args:
64         container_format: "bare"
65         disk_format: "raw"
66         do_delete: true
67         force: false
68         size: 1
69       context:
70         {% call user_context(tenants_amount, users_amount, use_existing_users) %}
71         quotas:
72           {{ unlimited_volumes() }}
73         {% endcall %}
74       runner:
75         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
76       sla:
77         {{ no_failures_sla() }}
78
79   CinderVolumes.create_nested_snapshots_and_attach_volume:
80     -
81       args:
82         {{ vm_params(image_name,flavor_name) }}
83         nested_level: 1
84         size:
85           max: 1
86           min: 1
87         create_vm_params:
88             nics:
89               - net-id: {{ netid }}
90       context:
91         {% call user_context(tenants_amount, users_amount, use_existing_users) %}
92         quotas:
93           {{ unlimited_volumes() }}
94         {% endcall %}
95       runner:
96         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
97       sla:
98         {{ no_failures_sla() }}
99
100   CinderVolumes.create_snapshot_and_attach_volume:
101     -
102       args:
103         {{ vm_params(image_name,flavor_name) }}
104         size:
105           min: 1
106           max: 5
107         create_vm_params:
108             nics:
109               - net-id: {{ netid }}
110       context:
111         {% call user_context(tenants_amount, users_amount, use_existing_users) %}
112         quotas:
113           {{ unlimited_volumes() }}
114         {% endcall %}
115       runner:
116         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
117       sla:
118         {{ no_failures_sla() }}
119
120   CinderVolumes.create_volume:
121     -
122       args:
123         size: 1
124       context:
125         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
126       runner:
127         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
128     -
129       args:
130         size:
131           min: 1
132           max: 5
133       context:
134         {% call user_context(tenants_amount, users_amount, use_existing_users) %}
135         quotas:
136           {{ unlimited_volumes() }}
137         {% endcall %}
138       runner:
139         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
140       sla:
141         {{ no_failures_sla() }}
142
143   CinderVolumes.list_volumes:
144     -
145       args:
146         detailed: True
147       context:
148         {% call user_context(tenants_amount, users_amount, use_existing_users) %}
149         quotas:
150           {{ unlimited_volumes() }}
151         volumes:
152           size: 1
153           volumes_per_tenant: 4
154         {% endcall %}
155       runner:
156         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
157       sla:
158         {{ no_failures_sla() }}
159
160   CinderVolumes.create_and_delete_snapshot:
161     -
162       args:
163         force: false
164       context:
165         {% call user_context(tenants_amount, users_amount, use_existing_users) %}
166         quotas:
167           {{ unlimited_volumes() }}
168         {{ volumes() }}
169         {% endcall %}
170       runner:
171         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
172       sla:
173         {{ no_failures_sla() }}
174
175   CinderVolumes.create_and_delete_volume:
176     -
177       args:
178         size:
179           max: 1
180           min: 1
181       context:
182         {% call user_context(tenants_amount, users_amount, use_existing_users) %}
183         quotas:
184           {{ unlimited_volumes() }}
185         {% endcall %}
186       runner:
187         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
188       sla:
189         {{ no_failures_sla() }}
190     -
191       args:
192         {{ vm_params(image_name,none,1) }}
193       context:
194         {% call user_context(tenants_amount, users_amount, use_existing_users) %}
195         quotas:
196           {{ unlimited_volumes() }}
197         {% endcall %}
198       runner:
199         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
200       sla:
201         {{ no_failures_sla() }}
202     -
203       args:
204         size: 1
205       context:
206         {% call user_context(tenants_amount, users_amount, use_existing_users) %}
207         quotas:
208           {{ unlimited_volumes() }}
209         {% endcall %}
210       runner:
211         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
212       sla:
213         {{ no_failures_sla() }}
214
215   CinderVolumes.create_and_extend_volume:
216     -
217       args:
218         new_size: 2
219         size: 1
220       context:
221         {% call user_context(tenants_amount, users_amount, use_existing_users) %}
222         quotas:
223           {{ unlimited_volumes() }}
224         {% endcall %}
225       runner:
226         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
227       sla:
228         {{ no_failures_sla() }}
229
230   CinderVolumes.create_from_volume_and_delete_volume:
231     -
232       args:
233         size: 1
234       context:
235         {% call user_context(tenants_amount, users_amount, use_existing_users) %}
236         quotas:
237           {{ unlimited_volumes() }}
238         {{ volumes() }}
239         {% endcall %}
240       runner:
241         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
242       sla:
243         {{ no_failures_sla() }}
244
245   CinderQos.create_and_get_qos:
246     -
247       args:
248         consumer: "both"
249         write_iops_sec: "10"
250         read_iops_sec: "1000"
251       context:
252         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
253       runner:
254         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
255       sla:
256         {{ no_failures_sla() }}
257
258   CinderQos.create_and_list_qos:
259     -
260       args:
261         consumer: "both"
262         write_iops_sec: "10"
263         read_iops_sec: "1000"
264       context:
265         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
266       runner:
267         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
268       sla:
269         {{ no_failures_sla() }}
270
271   CinderQos.create_and_set_qos:
272     -
273       args:
274         consumer: "back-end"
275         write_iops_sec: "10"
276         read_iops_sec: "1000"
277         set_consumer: "both"
278         set_write_iops_sec: "11"
279         set_read_iops_sec: "1001"
280       context:
281         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
282       runner:
283         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
284       sla:
285         {{ no_failures_sla() }}
286
287   CinderVolumeTypes.create_and_get_volume_type:
288     -
289       args:
290         description: "rally tests creating types"
291       context:
292         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
293       runner:
294         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
295       sla:
296         {{ no_failures_sla() }}
297
298   CinderVolumeTypes.create_and_list_volume_types:
299     -
300       args:
301         description: "rally tests creating types"
302       context:
303         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
304       runner:
305         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
306       sla:
307         {{ no_failures_sla() }}
308
309   CinderVolumeTypes.create_and_update_volume_type:
310     -
311       args:
312         description: "test"
313         update_description: "test update"
314       context:
315         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
316       runner:
317         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
318       sla:
319         {{ no_failures_sla() }}
320
321   CinderVolumeTypes.create_volume_type_and_encryption_type:
322     -
323       args:
324         description: "rally tests creating types"
325         provider: "LuksEncryptor"
326         cipher: "aes-xts-plain64"
327         key_size: 512
328         control_location: "front-end"
329       context:
330         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
331       runner:
332         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
333       sla:
334         {{ no_failures_sla() }}
335
336   CinderVolumeTypes.create_volume_type_add_and_list_type_access:
337     -
338       args:
339         description: "rally tests creating types"
340       context:
341         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
342       runner:
343         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
344       sla:
345         {{ no_failures_sla() }}