Merge lp:~zulcss/openstack-charm-testing/rally-tool into lp:openstack-charm-testing
- rally-tool
- Merge into trunk
Proposed by
Chuck Short
Status: | Merged |
---|---|
Merged at revision: | 194 |
Proposed branch: | lp:~zulcss/openstack-charm-testing/rally-tool |
Merge into: | lp:openstack-charm-testing |
Diff against target: |
978 lines (+751/-0) 45 files modified
templates/rally/boot-and-associate-floating-ip.yaml (+18/-0) templates/rally/boot-and-block-migrate.yaml (+17/-0) templates/rally/boot-and-delete-multiple.yaml (+18/-0) templates/rally/boot-and-delete-server-with-keypairs.yaml (+20/-0) templates/rally/boot-and-delete-server-with-secgroups.yaml (+21/-0) templates/rally/boot-and-delete.yaml (+18/-0) templates/rally/boot-and-get-console-server.yaml (+18/-0) templates/rally/boot-and-list.yaml (+19/-0) templates/rally/boot-and-live-migrate.yaml (+17/-0) templates/rally/boot-and-migrate.yaml (+16/-0) templates/rally/boot-and-rebuild.yaml (+18/-0) templates/rally/boot-and-show-server.yaml (+18/-0) templates/rally/boot-bounce-delete.yaml (+27/-0) templates/rally/boot-from-volume-and-delete.yaml (+19/-0) templates/rally/boot-from-volume-and-resize.yaml (+25/-0) templates/rally/boot-from-volume.yaml (+18/-0) templates/rally/boot-lock-unlock-and-delete.yaml (+17/-0) templates/rally/boot-server-attach-created-volume-and-live-migrate.yaml (+20/-0) templates/rally/boot-server-attach-created-volume-and-resize.yaml (+25/-0) templates/rally/boot-server-from-volume-and-live-migrate.yaml (+19/-0) templates/rally/boot-snapshot-boot-delete.yaml (+18/-0) templates/rally/boot.yaml (+17/-0) templates/rally/create-and-delete-floating-ips-bulk.yaml (+13/-0) templates/rally/create-and-delete-keypair.yaml (+11/-0) templates/rally/create-and-delete-network.yaml (+13/-0) templates/rally/create-and-delete-secgroups.yaml (+14/-0) templates/rally/create-and-list-floating-ips-bulk.yaml (+14/-0) templates/rally/create-and-list-keypairs.yaml (+11/-0) templates/rally/create-and-list-networks.yaml (+13/-0) templates/rally/create-and-list-secgroups.yaml (+14/-0) templates/rally/create-and-update-secgroups.yaml (+13/-0) templates/rally/list-agents.yaml (+7/-0) templates/rally/list-aggregates.yaml (+7/-0) templates/rally/list-availability-zones.yaml (+9/-0) templates/rally/list-flavors.yaml (+13/-0) templates/rally/list-hosts.yaml (+7/-0) templates/rally/list-hypervisors.yaml (+9/-0) templates/rally/list-images.yaml (+13/-0) templates/rally/list-servers.yaml (+20/-0) templates/rally/list-services.yaml (+7/-0) templates/rally/pause-and-unpause.yaml (+18/-0) templates/rally/resize-server.yaml (+21/-0) templates/rally/shelve-and-unshelve.yaml (+18/-0) templates/rally/suspend-and-resume.yaml (+18/-0) tools/install_rally.sh (+45/-0) |
To merge this branch: | bzr merge lp:~zulcss/openstack-charm-testing/rally-tool |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenStack Charm Testing Maintainers | Pending | ||
Review via email: mp+290993@code.launchpad.net |
Commit message
Description of the change
Add tool to install and configure rally.
https:/
This tool will install and configure rally in a virtualenv. To install and configure rally run the following script:
tools/install_
The script will do the following:
1. Download rally from github
2. Configure the database
3. Generate the rally tasks from templates
4. Install rally.
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added directory 'templates/rally' |
2 | === added file 'templates/rally/boot-and-associate-floating-ip.yaml' |
3 | --- templates/rally/boot-and-associate-floating-ip.yaml 1970-01-01 00:00:00 +0000 |
4 | +++ templates/rally/boot-and-associate-floating-ip.yaml 2016-04-05 14:12:01 +0000 |
5 | @@ -0,0 +1,18 @@ |
6 | +{% set flavor_name = flavor_name or "m1.tiny" %} |
7 | +--- |
8 | + NovaServers.boot_and_associate_floating_ip: |
9 | + - |
10 | + args: |
11 | + flavor: |
12 | + name: "{{flavor_name}}" |
13 | + image: |
14 | + name: "__IMAGE__" |
15 | + runner: |
16 | + type: "constant" |
17 | + times: 1 |
18 | + concurrency: 1 |
19 | + context: |
20 | + users: |
21 | + tenants: 1 |
22 | + users_per_tenant: 1 |
23 | + network: {} |
24 | |
25 | === added file 'templates/rally/boot-and-block-migrate.yaml' |
26 | --- templates/rally/boot-and-block-migrate.yaml 1970-01-01 00:00:00 +0000 |
27 | +++ templates/rally/boot-and-block-migrate.yaml 2016-04-05 14:12:01 +0000 |
28 | @@ -0,0 +1,17 @@ |
29 | +{% set flavor_name = flavor_name or "m1.tiny" %} |
30 | +--- |
31 | +NovaServers.boot_and_live_migrate_server: |
32 | +- args: |
33 | + flavor: |
34 | + name: "{{flavor_name}}" |
35 | + image: |
36 | + name: "__IMAGE__" |
37 | + block_migration: true |
38 | + runner: |
39 | + type: "constant" |
40 | + times: 10 |
41 | + concurrency: 2 |
42 | + context: |
43 | + users: |
44 | + tenants: 1 |
45 | + users_per_tenant: 1 |
46 | |
47 | === added file 'templates/rally/boot-and-delete-multiple.yaml' |
48 | --- templates/rally/boot-and-delete-multiple.yaml 1970-01-01 00:00:00 +0000 |
49 | +++ templates/rally/boot-and-delete-multiple.yaml 2016-04-05 14:12:01 +0000 |
50 | @@ -0,0 +1,18 @@ |
51 | +{% set flavor_name = flavor_name or "m1.tiny" %} |
52 | +--- |
53 | + NovaServers.boot_and_delete_multiple_servers: |
54 | + - |
55 | + args: |
56 | + image: |
57 | + name: "__IMAGE__" |
58 | + flavor: |
59 | + name: "{{flavor_name}}" |
60 | + count: 5 |
61 | + runner: |
62 | + type: "constant" |
63 | + times: 1 |
64 | + concurrency: 1 |
65 | + context: |
66 | + users: |
67 | + tenants: 1 |
68 | + users_per_tenant: 1 |
69 | |
70 | === added file 'templates/rally/boot-and-delete-server-with-keypairs.yaml' |
71 | --- templates/rally/boot-and-delete-server-with-keypairs.yaml 1970-01-01 00:00:00 +0000 |
72 | +++ templates/rally/boot-and-delete-server-with-keypairs.yaml 2016-04-05 14:12:01 +0000 |
73 | @@ -0,0 +1,20 @@ |
74 | +{% set flavor_name = flavor_name or "m1.tiny" %} |
75 | +--- |
76 | + NovaKeypair.boot_and_delete_server_with_keypair: |
77 | + - |
78 | + args: |
79 | + flavor: |
80 | + name: "{{flavor_name}}" |
81 | + image: |
82 | + name: "__IMAGE__" |
83 | + boot_server_kwargs: {} |
84 | + runner: |
85 | + type: "constant" |
86 | + times: 5 |
87 | + concurrency: 2 |
88 | + context: |
89 | + users: |
90 | + tenants: 2 |
91 | + users_per_tenant: 1 |
92 | + network: |
93 | + start_cidr: "100.1.0.0/26" |
94 | |
95 | === added file 'templates/rally/boot-and-delete-server-with-secgroups.yaml' |
96 | --- templates/rally/boot-and-delete-server-with-secgroups.yaml 1970-01-01 00:00:00 +0000 |
97 | +++ templates/rally/boot-and-delete-server-with-secgroups.yaml 2016-04-05 14:12:01 +0000 |
98 | @@ -0,0 +1,21 @@ |
99 | +{% set flavor_name = flavor_name or "m1.tiny" %} |
100 | +--- |
101 | + NovaSecGroup.boot_and_delete_server_with_secgroups: |
102 | + - |
103 | + args: |
104 | + flavor: |
105 | + name: "{{flavor_name}}" |
106 | + image: |
107 | + name: "__IAMGE__" |
108 | + security_group_count: 10 |
109 | + rules_per_security_group: 10 |
110 | + runner: |
111 | + type: "constant" |
112 | + times: 10 |
113 | + concurrency: 2 |
114 | + context: |
115 | + users: |
116 | + tenants: 3 |
117 | + users_per_tenant: 2 |
118 | + network: |
119 | + start_cidr: "100.1.0.0/26" |
120 | |
121 | === added file 'templates/rally/boot-and-delete.yaml' |
122 | --- templates/rally/boot-and-delete.yaml 1970-01-01 00:00:00 +0000 |
123 | +++ templates/rally/boot-and-delete.yaml 2016-04-05 14:12:01 +0000 |
124 | @@ -0,0 +1,18 @@ |
125 | +{% set flavor_name = flavor_name or "m1.tiny" %} |
126 | +--- |
127 | + NovaServers.boot_and_delete_server: |
128 | + - |
129 | + args: |
130 | + flavor: |
131 | + name: "{{flavor_name}}" |
132 | + image: |
133 | + name: "__IMAGE__" |
134 | + force_delete: false |
135 | + runner: |
136 | + type: "constant" |
137 | + times: 10 |
138 | + concurrency: 2 |
139 | + context: |
140 | + users: |
141 | + tenants: 3 |
142 | + users_per_tenant: 2 |
143 | |
144 | === added file 'templates/rally/boot-and-get-console-server.yaml' |
145 | --- templates/rally/boot-and-get-console-server.yaml 1970-01-01 00:00:00 +0000 |
146 | +++ templates/rally/boot-and-get-console-server.yaml 2016-04-05 14:12:01 +0000 |
147 | @@ -0,0 +1,18 @@ |
148 | +{% set flavor_name = flavor_name or "m1.tiny" %} |
149 | +{% set image_name = image_name or "^cirros.*uec$" %} |
150 | +--- |
151 | + NovaServers.boot_and_get_console_output: |
152 | + - |
153 | + args: |
154 | + flavor: |
155 | + name: "{{flavor_name}}" |
156 | + image: |
157 | + name: "{{image_name}}" |
158 | + runner: |
159 | + type: "constant" |
160 | + times: 1 |
161 | + concurrency: 1 |
162 | + context: |
163 | + users: |
164 | + tenants: 1 |
165 | + users_per_tenant: 1 |
166 | |
167 | === added file 'templates/rally/boot-and-list.yaml' |
168 | --- templates/rally/boot-and-list.yaml 1970-01-01 00:00:00 +0000 |
169 | +++ templates/rally/boot-and-list.yaml 2016-04-05 14:12:01 +0000 |
170 | @@ -0,0 +1,19 @@ |
171 | +{% set flavor_name = flavor_name or "m1.tiny" %} |
172 | +--- |
173 | + NovaServers.boot_and_list_server: |
174 | + - |
175 | + args: |
176 | + flavor: |
177 | + name: "{{flavor_name}}" |
178 | + image: |
179 | + name: "__IMAGE__" |
180 | + detailed: True |
181 | + runner: |
182 | + type: "constant" |
183 | + times: 1 |
184 | + concurrency: 1 |
185 | + context: |
186 | + users: |
187 | + tenants: 1 |
188 | + users_per_tenant: 1 |
189 | + |
190 | |
191 | === added file 'templates/rally/boot-and-live-migrate.yaml' |
192 | --- templates/rally/boot-and-live-migrate.yaml 1970-01-01 00:00:00 +0000 |
193 | +++ templates/rally/boot-and-live-migrate.yaml 2016-04-05 14:12:01 +0000 |
194 | @@ -0,0 +1,17 @@ |
195 | +{% set flavor_name = flavor_name or "m1.tiny" %} |
196 | +--- |
197 | +NovaServers.boot_and_live_migrate_server: |
198 | +- args: |
199 | + flavor: |
200 | + name: "{{flavor_name}}" |
201 | + image: |
202 | + name: "__IMAGE__" |
203 | + block_migration: false |
204 | + runner: |
205 | + type: "constant" |
206 | + times: 10 |
207 | + concurrency: 2 |
208 | + context: |
209 | + users: |
210 | + tenants: 1 |
211 | + users_per_tenant: 1 |
212 | |
213 | === added file 'templates/rally/boot-and-migrate.yaml' |
214 | --- templates/rally/boot-and-migrate.yaml 1970-01-01 00:00:00 +0000 |
215 | +++ templates/rally/boot-and-migrate.yaml 2016-04-05 14:12:01 +0000 |
216 | @@ -0,0 +1,16 @@ |
217 | +{% set flavor_name = flavor_name or "m1.tiny" %} |
218 | +--- |
219 | +NovaServers.boot_and_migrate_server: |
220 | +- args: |
221 | + flavor: |
222 | + name: "{{flavor_name}}" |
223 | + image: |
224 | + name: "__IMAGE__" |
225 | + runner: |
226 | + type: "constant" |
227 | + times: 10 |
228 | + concurrency: 2 |
229 | + context: |
230 | + users: |
231 | + tenants: 1 |
232 | + users_per_tenant: 1 |
233 | |
234 | === added file 'templates/rally/boot-and-rebuild.yaml' |
235 | --- templates/rally/boot-and-rebuild.yaml 1970-01-01 00:00:00 +0000 |
236 | +++ templates/rally/boot-and-rebuild.yaml 2016-04-05 14:12:01 +0000 |
237 | @@ -0,0 +1,18 @@ |
238 | +{% set flavor_name = flavor_name or "m1.tiny" %} |
239 | +--- |
240 | +NovaServers.boot_and_rebuild_server: |
241 | +- args: |
242 | + flavor: |
243 | + name: "{{flavor_name}}" |
244 | + from_image: |
245 | + name: "__IMAGE__" |
246 | + to_image: |
247 | + name: "__IMAGE__" |
248 | + runner: |
249 | + type: "constant" |
250 | + times: 5 |
251 | + concurrency: 2 |
252 | + context: |
253 | + users: |
254 | + tenants: 1 |
255 | + users_per_tenant: 1 |
256 | |
257 | === added file 'templates/rally/boot-and-show-server.yaml' |
258 | --- templates/rally/boot-and-show-server.yaml 1970-01-01 00:00:00 +0000 |
259 | +++ templates/rally/boot-and-show-server.yaml 2016-04-05 14:12:01 +0000 |
260 | @@ -0,0 +1,18 @@ |
261 | +{% set flavor_name = flavor_name or "m1.tiny" %} |
262 | +{% set image_name = image_name or "^cirros.*uec$" %} |
263 | +--- |
264 | + NovaServers.boot_and_show_server: |
265 | + - |
266 | + args: |
267 | + flavor: |
268 | + name: "{{flavor_name}}" |
269 | + image: |
270 | + name: "__IMAGE__" |
271 | + runner: |
272 | + type: "constant" |
273 | + times: 1 |
274 | + concurrency: 1 |
275 | + context: |
276 | + users: |
277 | + tenants: 1 |
278 | + users_per_tenant: 1 |
279 | |
280 | === added file 'templates/rally/boot-bounce-delete.yaml' |
281 | --- templates/rally/boot-bounce-delete.yaml 1970-01-01 00:00:00 +0000 |
282 | +++ templates/rally/boot-bounce-delete.yaml 2016-04-05 14:12:01 +0000 |
283 | @@ -0,0 +1,27 @@ |
284 | +{% set flavor_name = flavor_name or "m1.tiny" %} |
285 | +--- |
286 | + NovaServers.boot_and_bounce_server: |
287 | + - |
288 | + args: |
289 | + flavor: |
290 | + name: "{{flavor_name}}" |
291 | + image: |
292 | + name: "__IMAGE__" |
293 | + force_delete: false |
294 | + actions: |
295 | + - |
296 | + hard_reboot: 1 |
297 | + - |
298 | + soft_reboot: 1 |
299 | + - |
300 | + stop_start: 1 |
301 | + - |
302 | + rescue_unrescue: 1 |
303 | + runner: |
304 | + type: "constant" |
305 | + times: 10 |
306 | + concurrency: 2 |
307 | + context: |
308 | + users: |
309 | + tenants: 3 |
310 | + users_per_tenant: 2 |
311 | |
312 | === added file 'templates/rally/boot-from-volume-and-delete.yaml' |
313 | --- templates/rally/boot-from-volume-and-delete.yaml 1970-01-01 00:00:00 +0000 |
314 | +++ templates/rally/boot-from-volume-and-delete.yaml 2016-04-05 14:12:01 +0000 |
315 | @@ -0,0 +1,19 @@ |
316 | +{% set flavor_name = flavor_name or "m1.tiny" %} |
317 | +--- |
318 | + NovaServers.boot_server_from_volume_and_delete: |
319 | + - |
320 | + args: |
321 | + flavor: |
322 | + name: "{{flavor_name}}" |
323 | + image: |
324 | + name: "__IMAGE__" |
325 | + volume_size: 10 |
326 | + force_delete: false |
327 | + runner: |
328 | + type: "constant" |
329 | + times: 10 |
330 | + concurrency: 2 |
331 | + context: |
332 | + users: |
333 | + tenants: 3 |
334 | + users_per_tenant: 2 |
335 | |
336 | === added file 'templates/rally/boot-from-volume-and-resize.yaml' |
337 | --- templates/rally/boot-from-volume-and-resize.yaml 1970-01-01 00:00:00 +0000 |
338 | +++ templates/rally/boot-from-volume-and-resize.yaml 2016-04-05 14:12:01 +0000 |
339 | @@ -0,0 +1,25 @@ |
340 | +{% set flavor_name = flavor_name or "m1.tiny" %} |
341 | +--- |
342 | + NovaServers.boot_server_from_volume_and_resize: |
343 | + - |
344 | + args: |
345 | + flavor: |
346 | + name: "{{flavor_name}}" |
347 | + image: |
348 | + name: "__IMAGE__" |
349 | + to_flavor: |
350 | + name: "m1.small" |
351 | + confirm: true |
352 | + volume_size: 1 |
353 | + force_delete: false |
354 | + do_delete: true |
355 | + boot_server_kwargs: {} |
356 | + create_volume_kwargs: {} |
357 | + runner: |
358 | + type: "constant" |
359 | + times: 10 |
360 | + concurrency: 2 |
361 | + context: |
362 | + users: |
363 | + tenants: 3 |
364 | + users_per_tenant: 2 |
365 | |
366 | === added file 'templates/rally/boot-from-volume.yaml' |
367 | --- templates/rally/boot-from-volume.yaml 1970-01-01 00:00:00 +0000 |
368 | +++ templates/rally/boot-from-volume.yaml 2016-04-05 14:12:01 +0000 |
369 | @@ -0,0 +1,18 @@ |
370 | +{% set flavor_name = flavor_name or "m1.tiny" %} |
371 | +--- |
372 | + NovaServers.boot_server_from_volume: |
373 | + - |
374 | + args: |
375 | + flavor: |
376 | + name: "{{flavor_name}}" |
377 | + image: |
378 | + name: "__IMAGE__" |
379 | + volume_size: 10 |
380 | + runner: |
381 | + type: "constant" |
382 | + times: 10 |
383 | + concurrency: 2 |
384 | + context: |
385 | + users: |
386 | + tenants: 3 |
387 | + users_per_tenant: 2 |
388 | |
389 | === added file 'templates/rally/boot-lock-unlock-and-delete.yaml' |
390 | --- templates/rally/boot-lock-unlock-and-delete.yaml 1970-01-01 00:00:00 +0000 |
391 | +++ templates/rally/boot-lock-unlock-and-delete.yaml 2016-04-05 14:12:01 +0000 |
392 | @@ -0,0 +1,17 @@ |
393 | +{% set flavor_name = flavor_name or "m1.tiny" %} |
394 | +--- |
395 | + NovaServers.boot_lock_unlock_and_delete: |
396 | + - |
397 | + args: |
398 | + flavor: |
399 | + name: "{{flavor_name}}" |
400 | + image: |
401 | + name: "__IMAGE__" |
402 | + runner: |
403 | + type: "constant" |
404 | + times: 10 |
405 | + concurrency: 2 |
406 | + context: |
407 | + users: |
408 | + tenants: 1 |
409 | + users_per_tenant: 1 |
410 | |
411 | === added file 'templates/rally/boot-server-attach-created-volume-and-live-migrate.yaml' |
412 | --- templates/rally/boot-server-attach-created-volume-and-live-migrate.yaml 1970-01-01 00:00:00 +0000 |
413 | +++ templates/rally/boot-server-attach-created-volume-and-live-migrate.yaml 2016-04-05 14:12:01 +0000 |
414 | @@ -0,0 +1,20 @@ |
415 | +{% set flavor_name = flavor_name or "m1.tiny" %} |
416 | +--- |
417 | +NovaServers.boot_server_attach_created_volume_and_live_migrate: |
418 | +- args: |
419 | + flavor: |
420 | + name: "{{flavor_name}}" |
421 | + image: |
422 | + name: "__IMAGE__" |
423 | + size: 10 |
424 | + block_migration: false |
425 | + boot_server_kwargs: {} |
426 | + create_volume_kwargs: {} |
427 | + runner: |
428 | + type: "constant" |
429 | + times: 5 |
430 | + concurrency: 1 |
431 | + context: |
432 | + users: |
433 | + tenants: 2 |
434 | + users_per_tenant: 2 |
435 | |
436 | === added file 'templates/rally/boot-server-attach-created-volume-and-resize.yaml' |
437 | --- templates/rally/boot-server-attach-created-volume-and-resize.yaml 1970-01-01 00:00:00 +0000 |
438 | +++ templates/rally/boot-server-attach-created-volume-and-resize.yaml 2016-04-05 14:12:01 +0000 |
439 | @@ -0,0 +1,25 @@ |
440 | +{% set flavor_name = flavor_name or "m1.tiny" %} |
441 | +--- |
442 | + NovaServers.boot_server_attach_created_volume_and_resize: |
443 | + - |
444 | + args: |
445 | + flavor: |
446 | + name: "{{flavor_name}}" |
447 | + image: |
448 | + name: "__IMAGE__" |
449 | + to_flavor: |
450 | + name: "m1.small" |
451 | + confirm: true |
452 | + volume_size: 1 |
453 | + force_delete: false |
454 | + do_delete: true |
455 | + boot_server_kwargs: {} |
456 | + create_volume_kwargs: {} |
457 | + runner: |
458 | + type: "constant" |
459 | + times: 10 |
460 | + concurrency: 2 |
461 | + context: |
462 | + users: |
463 | + tenants: 3 |
464 | + users_per_tenant: 2 |
465 | |
466 | === added file 'templates/rally/boot-server-from-volume-and-live-migrate.yaml' |
467 | --- templates/rally/boot-server-from-volume-and-live-migrate.yaml 1970-01-01 00:00:00 +0000 |
468 | +++ templates/rally/boot-server-from-volume-and-live-migrate.yaml 2016-04-05 14:12:01 +0000 |
469 | @@ -0,0 +1,19 @@ |
470 | +{% set flavor_name = flavor_name or "m1.tiny" %} |
471 | +--- |
472 | +NovaServers.boot_server_from_volume_and_live_migrate: |
473 | +- args: |
474 | + flavor: |
475 | + name: "{{flavor_name}}" |
476 | + image: |
477 | + name: "__IMAGE__" |
478 | + block_migration: false |
479 | + volume_size: 10 |
480 | + force_delete: false |
481 | + runner: |
482 | + type: "constant" |
483 | + times: 10 |
484 | + concurrency: 2 |
485 | + context: |
486 | + users: |
487 | + tenants: 1 |
488 | + users_per_tenant: 1 |
489 | |
490 | === added file 'templates/rally/boot-snapshot-boot-delete.yaml' |
491 | --- templates/rally/boot-snapshot-boot-delete.yaml 1970-01-01 00:00:00 +0000 |
492 | +++ templates/rally/boot-snapshot-boot-delete.yaml 2016-04-05 14:12:01 +0000 |
493 | @@ -0,0 +1,18 @@ |
494 | +{% set flavor_name = flavor_name or "m1.tiny" %} |
495 | +--- |
496 | + NovaServers.snapshot_server: |
497 | + - |
498 | + args: |
499 | + flavor: |
500 | + name: "{{flavor_name}}" |
501 | + image: |
502 | + name: "__IMAGE__" |
503 | + force_delete: false |
504 | + runner: |
505 | + type: "constant" |
506 | + times: 10 |
507 | + concurrency: 2 |
508 | + context: |
509 | + users: |
510 | + tenants: 3 |
511 | + users_per_tenant: 2 |
512 | |
513 | === added file 'templates/rally/boot.yaml' |
514 | --- templates/rally/boot.yaml 1970-01-01 00:00:00 +0000 |
515 | +++ templates/rally/boot.yaml 2016-04-05 14:12:01 +0000 |
516 | @@ -0,0 +1,17 @@ |
517 | +{% set flavor_name = flavor_name or "m1.tiny" %} |
518 | +--- |
519 | + NovaServers.boot_server: |
520 | + - |
521 | + args: |
522 | + flavor: |
523 | + name: "{{flavor_name}}" |
524 | + image: |
525 | + name: "__IMAGE__" |
526 | + runner: |
527 | + type: "constant" |
528 | + times: 10 |
529 | + concurrency: 2 |
530 | + context: |
531 | + users: |
532 | + tenants: 3 |
533 | + users_per_tenant: 2 |
534 | |
535 | === added file 'templates/rally/create-and-delete-floating-ips-bulk.yaml' |
536 | --- templates/rally/create-and-delete-floating-ips-bulk.yaml 1970-01-01 00:00:00 +0000 |
537 | +++ templates/rally/create-and-delete-floating-ips-bulk.yaml 2016-04-05 14:12:01 +0000 |
538 | @@ -0,0 +1,13 @@ |
539 | +--- |
540 | + NovaFloatingIpsBulk.create_and_delete_floating_ips_bulk: |
541 | + - |
542 | + args: |
543 | + start_cidr: "10.2.0.0/24" |
544 | + runner: |
545 | + type: "constant" |
546 | + times: 5 |
547 | + concurrency: 2 |
548 | + context: |
549 | + users: |
550 | + tenants: 3 |
551 | + users_per_tenant: 2 |
552 | |
553 | === added file 'templates/rally/create-and-delete-keypair.yaml' |
554 | --- templates/rally/create-and-delete-keypair.yaml 1970-01-01 00:00:00 +0000 |
555 | +++ templates/rally/create-and-delete-keypair.yaml 2016-04-05 14:12:01 +0000 |
556 | @@ -0,0 +1,11 @@ |
557 | +--- |
558 | + NovaKeypair.create_and_delete_keypair: |
559 | + - |
560 | + runner: |
561 | + type: "constant" |
562 | + times: 10 |
563 | + concurrency: 2 |
564 | + context: |
565 | + users: |
566 | + tenants: 3 |
567 | + users_per_tenant: 2 |
568 | |
569 | === added file 'templates/rally/create-and-delete-network.yaml' |
570 | --- templates/rally/create-and-delete-network.yaml 1970-01-01 00:00:00 +0000 |
571 | +++ templates/rally/create-and-delete-network.yaml 2016-04-05 14:12:01 +0000 |
572 | @@ -0,0 +1,13 @@ |
573 | +--- |
574 | + NovaNetworks.create_and_delete_network: |
575 | + - |
576 | + args: |
577 | + start_cidr: "10.10.0.0/24" |
578 | + runner: |
579 | + type: "constant" |
580 | + times: 5 |
581 | + concurrency: 2 |
582 | + context: |
583 | + users: |
584 | + tenants: 3 |
585 | + users_per_tenant: 2 |
586 | \ No newline at end of file |
587 | |
588 | === added file 'templates/rally/create-and-delete-secgroups.yaml' |
589 | --- templates/rally/create-and-delete-secgroups.yaml 1970-01-01 00:00:00 +0000 |
590 | +++ templates/rally/create-and-delete-secgroups.yaml 2016-04-05 14:12:01 +0000 |
591 | @@ -0,0 +1,14 @@ |
592 | +--- |
593 | + NovaSecGroup.create_and_delete_secgroups: |
594 | + - |
595 | + args: |
596 | + security_group_count: 10 |
597 | + rules_per_security_group: 10 |
598 | + runner: |
599 | + type: "constant" |
600 | + times: 10 |
601 | + concurrency: 2 |
602 | + context: |
603 | + users: |
604 | + tenants: 3 |
605 | + users_per_tenant: 2 |
606 | |
607 | === added file 'templates/rally/create-and-list-floating-ips-bulk.yaml' |
608 | --- templates/rally/create-and-list-floating-ips-bulk.yaml 1970-01-01 00:00:00 +0000 |
609 | +++ templates/rally/create-and-list-floating-ips-bulk.yaml 2016-04-05 14:12:01 +0000 |
610 | @@ -0,0 +1,14 @@ |
611 | +--- |
612 | + NovaFloatingIpsBulk.create_and_list_floating_ips_bulk: |
613 | + - |
614 | + args: |
615 | + start_cidr: "10.2.0.0/24" |
616 | + runner: |
617 | + type: "constant" |
618 | + times: 5 |
619 | + concurrency: 2 |
620 | + context: |
621 | + users: |
622 | + tenants: 3 |
623 | + users_per_tenant: 2 |
624 | + |
625 | |
626 | === added file 'templates/rally/create-and-list-keypairs.yaml' |
627 | --- templates/rally/create-and-list-keypairs.yaml 1970-01-01 00:00:00 +0000 |
628 | +++ templates/rally/create-and-list-keypairs.yaml 2016-04-05 14:12:01 +0000 |
629 | @@ -0,0 +1,11 @@ |
630 | +--- |
631 | + NovaKeypair.create_and_list_keypairs: |
632 | + - |
633 | + runner: |
634 | + type: "constant" |
635 | + times: 10 |
636 | + concurrency: 2 |
637 | + context: |
638 | + users: |
639 | + tenants: 3 |
640 | + users_per_tenant: 2 |
641 | |
642 | === added file 'templates/rally/create-and-list-networks.yaml' |
643 | --- templates/rally/create-and-list-networks.yaml 1970-01-01 00:00:00 +0000 |
644 | +++ templates/rally/create-and-list-networks.yaml 2016-04-05 14:12:01 +0000 |
645 | @@ -0,0 +1,13 @@ |
646 | +--- |
647 | + NovaNetworks.create_and_list_networks: |
648 | + - |
649 | + args: |
650 | + start_cidr: "10.10.0.0/24" |
651 | + runner: |
652 | + type: "constant" |
653 | + times: 5 |
654 | + concurrency: 2 |
655 | + context: |
656 | + users: |
657 | + tenants: 3 |
658 | + users_per_tenant: 2 |
659 | \ No newline at end of file |
660 | |
661 | === added file 'templates/rally/create-and-list-secgroups.yaml' |
662 | --- templates/rally/create-and-list-secgroups.yaml 1970-01-01 00:00:00 +0000 |
663 | +++ templates/rally/create-and-list-secgroups.yaml 2016-04-05 14:12:01 +0000 |
664 | @@ -0,0 +1,14 @@ |
665 | +--- |
666 | + NovaSecGroup.create_and_list_secgroups: |
667 | + - |
668 | + args: |
669 | + security_group_count: 10 |
670 | + rules_per_security_group: 10 |
671 | + runner: |
672 | + type: "constant" |
673 | + times: 10 |
674 | + concurrency: 2 |
675 | + context: |
676 | + users: |
677 | + tenants: 3 |
678 | + users_per_tenant: 2 |
679 | |
680 | === added file 'templates/rally/create-and-update-secgroups.yaml' |
681 | --- templates/rally/create-and-update-secgroups.yaml 1970-01-01 00:00:00 +0000 |
682 | +++ templates/rally/create-and-update-secgroups.yaml 2016-04-05 14:12:01 +0000 |
683 | @@ -0,0 +1,13 @@ |
684 | +--- |
685 | + NovaSecGroup.create_and_update_secgroups: |
686 | + - |
687 | + args: |
688 | + security_group_count: 10 |
689 | + runner: |
690 | + type: "constant" |
691 | + times: 10 |
692 | + concurrency: 2 |
693 | + context: |
694 | + users: |
695 | + tenants: 3 |
696 | + users_per_tenant: 2 |
697 | |
698 | === added file 'templates/rally/list-agents.yaml' |
699 | --- templates/rally/list-agents.yaml 1970-01-01 00:00:00 +0000 |
700 | +++ templates/rally/list-agents.yaml 2016-04-05 14:12:01 +0000 |
701 | @@ -0,0 +1,7 @@ |
702 | +--- |
703 | + NovaAgents.list_agents: |
704 | + - |
705 | + runner: |
706 | + type: "constant" |
707 | + concurrency: 2 |
708 | + times: 10 |
709 | |
710 | === added file 'templates/rally/list-aggregates.yaml' |
711 | --- templates/rally/list-aggregates.yaml 1970-01-01 00:00:00 +0000 |
712 | +++ templates/rally/list-aggregates.yaml 2016-04-05 14:12:01 +0000 |
713 | @@ -0,0 +1,7 @@ |
714 | +--- |
715 | + NovaAggregates.list_aggregates: |
716 | + - |
717 | + runner: |
718 | + type: "constant" |
719 | + concurrency: 2 |
720 | + times : 10 |
721 | |
722 | === added file 'templates/rally/list-availability-zones.yaml' |
723 | --- templates/rally/list-availability-zones.yaml 1970-01-01 00:00:00 +0000 |
724 | +++ templates/rally/list-availability-zones.yaml 2016-04-05 14:12:01 +0000 |
725 | @@ -0,0 +1,9 @@ |
726 | +--- |
727 | + NovaAvailabilityZones.list_availability_zones: |
728 | + - |
729 | + args: |
730 | + detailed: true |
731 | + runner: |
732 | + type: "constant" |
733 | + concurrency: 2 |
734 | + times: 10 |
735 | |
736 | === added file 'templates/rally/list-flavors.yaml' |
737 | --- templates/rally/list-flavors.yaml 1970-01-01 00:00:00 +0000 |
738 | +++ templates/rally/list-flavors.yaml 2016-04-05 14:12:01 +0000 |
739 | @@ -0,0 +1,13 @@ |
740 | +--- |
741 | + NovaFlavors.list_flavors: |
742 | + - |
743 | + args: |
744 | + detailed: True |
745 | + runner: |
746 | + type: "constant" |
747 | + times: 10 |
748 | + concurrency: 2 |
749 | + context: |
750 | + users: |
751 | + tenants: 3 |
752 | + users_per_tenant: 2 |
753 | |
754 | === added file 'templates/rally/list-hosts.yaml' |
755 | --- templates/rally/list-hosts.yaml 1970-01-01 00:00:00 +0000 |
756 | +++ templates/rally/list-hosts.yaml 2016-04-05 14:12:01 +0000 |
757 | @@ -0,0 +1,7 @@ |
758 | +--- |
759 | + NovaHosts.list_hosts: |
760 | + - |
761 | + runner: |
762 | + type: "constant" |
763 | + concurrency: 2 |
764 | + times: 10 |
765 | |
766 | === added file 'templates/rally/list-hypervisors.yaml' |
767 | --- templates/rally/list-hypervisors.yaml 1970-01-01 00:00:00 +0000 |
768 | +++ templates/rally/list-hypervisors.yaml 2016-04-05 14:12:01 +0000 |
769 | @@ -0,0 +1,9 @@ |
770 | +--- |
771 | + NovaHypervisors.list_hypervisors: |
772 | + - |
773 | + args: |
774 | + detailed: True |
775 | + runner: |
776 | + type: "constant" |
777 | + times: 10 |
778 | + concurrency: 2 |
779 | |
780 | === added file 'templates/rally/list-images.yaml' |
781 | --- templates/rally/list-images.yaml 1970-01-01 00:00:00 +0000 |
782 | +++ templates/rally/list-images.yaml 2016-04-05 14:12:01 +0000 |
783 | @@ -0,0 +1,13 @@ |
784 | +--- |
785 | + NovaImages.list_images: |
786 | + - |
787 | + args: |
788 | + detailed: True |
789 | + runner: |
790 | + type: "constant" |
791 | + times: 10 |
792 | + concurrency: 2 |
793 | + context: |
794 | + users: |
795 | + tenants: 3 |
796 | + users_per_tenant: 2 |
797 | |
798 | === added file 'templates/rally/list-servers.yaml' |
799 | --- templates/rally/list-servers.yaml 1970-01-01 00:00:00 +0000 |
800 | +++ templates/rally/list-servers.yaml 2016-04-05 14:12:01 +0000 |
801 | @@ -0,0 +1,20 @@ |
802 | +{% set flavor_name = flavor_name or "m1.tiny" %} |
803 | +--- |
804 | + NovaServers.list_servers: |
805 | + - |
806 | + args: |
807 | + detailed: True |
808 | + runner: |
809 | + type: "constant" |
810 | + times: 1 |
811 | + concurrency: 1 |
812 | + context: |
813 | + users: |
814 | + tenants: 1 |
815 | + users_per_tenant: 1 |
816 | + servers: |
817 | + flavor: |
818 | + name: "{{flavor_name}}" |
819 | + image: |
820 | + name: "__IMAGE__" |
821 | + servers_per_tenant: 2 |
822 | |
823 | === added file 'templates/rally/list-services.yaml' |
824 | --- templates/rally/list-services.yaml 1970-01-01 00:00:00 +0000 |
825 | +++ templates/rally/list-services.yaml 2016-04-05 14:12:01 +0000 |
826 | @@ -0,0 +1,7 @@ |
827 | +--- |
828 | + NovaServices.list_services: |
829 | + - |
830 | + runner: |
831 | + type: "constant" |
832 | + times: 10 |
833 | + concurrency: 2 |
834 | |
835 | === added file 'templates/rally/pause-and-unpause.yaml' |
836 | --- templates/rally/pause-and-unpause.yaml 1970-01-01 00:00:00 +0000 |
837 | +++ templates/rally/pause-and-unpause.yaml 2016-04-05 14:12:01 +0000 |
838 | @@ -0,0 +1,18 @@ |
839 | +{% set flavor_name = flavor_name or "m1.tiny" %} |
840 | +--- |
841 | + NovaServers.pause_and_unpause_server: |
842 | + - |
843 | + args: |
844 | + flavor: |
845 | + name: "{{flavor_name}}" |
846 | + image: |
847 | + name: "__IMAGE__" |
848 | + force_delete: false |
849 | + runner: |
850 | + type: "constant" |
851 | + times: 10 |
852 | + concurrency: 2 |
853 | + context: |
854 | + users: |
855 | + tenants: 3 |
856 | + users_per_tenant: 2 |
857 | |
858 | === added file 'templates/rally/resize-server.yaml' |
859 | --- templates/rally/resize-server.yaml 1970-01-01 00:00:00 +0000 |
860 | +++ templates/rally/resize-server.yaml 2016-04-05 14:12:01 +0000 |
861 | @@ -0,0 +1,21 @@ |
862 | +{% set flavor_name = flavor_name or "m1.tiny" %} |
863 | +--- |
864 | + NovaServers.resize_server: |
865 | + - |
866 | + args: |
867 | + flavor: |
868 | + name: "{{flavor_name}}" |
869 | + image: |
870 | + name: "__IMAGE__" |
871 | + to_flavor: |
872 | + name: "m1.small" |
873 | + confirm: true |
874 | + force_delete: false |
875 | + runner: |
876 | + type: "constant" |
877 | + times: 10 |
878 | + concurrency: 5 |
879 | + context: |
880 | + users: |
881 | + tenants: 1 |
882 | + users_per_tenant: 1 |
883 | |
884 | === added file 'templates/rally/shelve-and-unshelve.yaml' |
885 | --- templates/rally/shelve-and-unshelve.yaml 1970-01-01 00:00:00 +0000 |
886 | +++ templates/rally/shelve-and-unshelve.yaml 2016-04-05 14:12:01 +0000 |
887 | @@ -0,0 +1,18 @@ |
888 | +{% set flavor_name = flavor_name or "m1.tiny" %} |
889 | +--- |
890 | + NovaServers.shelve_and_unshelve_server: |
891 | + - |
892 | + args: |
893 | + flavor: |
894 | + name: "{{flavor_name}}" |
895 | + image: |
896 | + name: "__IMAGE__" |
897 | + force_delete: false |
898 | + runner: |
899 | + type: "constant" |
900 | + times: 10 |
901 | + concurrency: 2 |
902 | + context: |
903 | + users: |
904 | + tenants: 3 |
905 | + users_per_tenant: 2 |
906 | |
907 | === added file 'templates/rally/suspend-and-resume.yaml' |
908 | --- templates/rally/suspend-and-resume.yaml 1970-01-01 00:00:00 +0000 |
909 | +++ templates/rally/suspend-and-resume.yaml 2016-04-05 14:12:01 +0000 |
910 | @@ -0,0 +1,18 @@ |
911 | +{% set flavor_name = flavor_name or "m1.tiny" %} |
912 | +--- |
913 | + NovaServers.suspend_and_resume_server: |
914 | + - |
915 | + args: |
916 | + flavor: |
917 | + name: "{{flavor_name}}" |
918 | + image: |
919 | + name: "__IMAGE__" |
920 | + force_delete: false |
921 | + runner: |
922 | + type: "constant" |
923 | + times: 10 |
924 | + concurrency: 2 |
925 | + context: |
926 | + users: |
927 | + tenants: 3 |
928 | + users_per_tenant: 2 |
929 | |
930 | === added file 'tools/install_rally.sh' |
931 | --- tools/install_rally.sh 1970-01-01 00:00:00 +0000 |
932 | +++ tools/install_rally.sh 2016-04-05 14:12:01 +0000 |
933 | @@ -0,0 +1,45 @@ |
934 | +#!/bin/bash |
935 | +# Install and configure rally |
936 | + |
937 | +#set -ex |
938 | + |
939 | +if [ -z $1 ]; then |
940 | + image="cirros" |
941 | +else |
942 | + image=$1 |
943 | +fi |
944 | + |
945 | +source novarc admin admin |
946 | +# Gather vars for tempest template |
947 | +image_name=$(glance image-list | grep $image | awk '{ print $4 }') |
948 | + |
949 | +# Git rally, place the rendered rally template |
950 | +[ -d rally ] || git clone https://github.com/openstack/rally |
951 | +[ -d rally_scenarios ] || mkdir -p rally_scenarios |
952 | + |
953 | +# Install rally |
954 | +rally/install_rally.sh -y -d ~/rally |
955 | + |
956 | +# Insert the image to use |
957 | +for i in templates/rally/*.yaml; do |
958 | + file=`echo $i | sed s:^templates/rally/::` |
959 | + sed -e s:__IMAGE__:$image_name:g $i > rally_scenarios/$file |
960 | +done |
961 | + |
962 | +# Installing rally database |
963 | +source ~/rally/bin/activate |
964 | +rally-manage db recreate |
965 | + |
966 | +# Creating environment |
967 | +rally deployment create --fromenv --name=existing |
968 | + |
969 | + |
970 | +echo |
971 | +echo "Finished installing rally" |
972 | +echo |
973 | +echo "To run a task run the following command (for example): " |
974 | +echo "source ~/rally/bin/activate" |
975 | +echo "rally task start rally_scenarios/boot.yaml" |
976 | + |
977 | + |
978 | + |