Merge lp:~zulcss/openstack-charm-testing/rally-tool into lp:openstack-charm-testing

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
Reviewer Review Type Date Requested Status
OpenStack Charm Testing Maintainers Pending
Review via email: mp+290993@code.launchpad.net

Description of the change

Add tool to install and configure rally.

https://github.com/openstack/rally

This tool will install and configure rally in a virtualenv. To install and configure rally run the following script:

tools/install_rally.sh <name of image to use>

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
=== added directory 'templates/rally'
=== added file 'templates/rally/boot-and-associate-floating-ip.yaml'
--- templates/rally/boot-and-associate-floating-ip.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/boot-and-associate-floating-ip.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,18 @@
1{% set flavor_name = flavor_name or "m1.tiny" %}
2---
3 NovaServers.boot_and_associate_floating_ip:
4 -
5 args:
6 flavor:
7 name: "{{flavor_name}}"
8 image:
9 name: "__IMAGE__"
10 runner:
11 type: "constant"
12 times: 1
13 concurrency: 1
14 context:
15 users:
16 tenants: 1
17 users_per_tenant: 1
18 network: {}
019
=== added file 'templates/rally/boot-and-block-migrate.yaml'
--- templates/rally/boot-and-block-migrate.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/boot-and-block-migrate.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,17 @@
1{% set flavor_name = flavor_name or "m1.tiny" %}
2---
3NovaServers.boot_and_live_migrate_server:
4- args:
5 flavor:
6 name: "{{flavor_name}}"
7 image:
8 name: "__IMAGE__"
9 block_migration: true
10 runner:
11 type: "constant"
12 times: 10
13 concurrency: 2
14 context:
15 users:
16 tenants: 1
17 users_per_tenant: 1
018
=== added file 'templates/rally/boot-and-delete-multiple.yaml'
--- templates/rally/boot-and-delete-multiple.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/boot-and-delete-multiple.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,18 @@
1{% set flavor_name = flavor_name or "m1.tiny" %}
2---
3 NovaServers.boot_and_delete_multiple_servers:
4 -
5 args:
6 image:
7 name: "__IMAGE__"
8 flavor:
9 name: "{{flavor_name}}"
10 count: 5
11 runner:
12 type: "constant"
13 times: 1
14 concurrency: 1
15 context:
16 users:
17 tenants: 1
18 users_per_tenant: 1
019
=== added file 'templates/rally/boot-and-delete-server-with-keypairs.yaml'
--- templates/rally/boot-and-delete-server-with-keypairs.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/boot-and-delete-server-with-keypairs.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,20 @@
1{% set flavor_name = flavor_name or "m1.tiny" %}
2---
3 NovaKeypair.boot_and_delete_server_with_keypair:
4 -
5 args:
6 flavor:
7 name: "{{flavor_name}}"
8 image:
9 name: "__IMAGE__"
10 boot_server_kwargs: {}
11 runner:
12 type: "constant"
13 times: 5
14 concurrency: 2
15 context:
16 users:
17 tenants: 2
18 users_per_tenant: 1
19 network:
20 start_cidr: "100.1.0.0/26"
021
=== added file 'templates/rally/boot-and-delete-server-with-secgroups.yaml'
--- templates/rally/boot-and-delete-server-with-secgroups.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/boot-and-delete-server-with-secgroups.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,21 @@
1{% set flavor_name = flavor_name or "m1.tiny" %}
2---
3 NovaSecGroup.boot_and_delete_server_with_secgroups:
4 -
5 args:
6 flavor:
7 name: "{{flavor_name}}"
8 image:
9 name: "__IAMGE__"
10 security_group_count: 10
11 rules_per_security_group: 10
12 runner:
13 type: "constant"
14 times: 10
15 concurrency: 2
16 context:
17 users:
18 tenants: 3
19 users_per_tenant: 2
20 network:
21 start_cidr: "100.1.0.0/26"
022
=== added file 'templates/rally/boot-and-delete.yaml'
--- templates/rally/boot-and-delete.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/boot-and-delete.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,18 @@
1{% set flavor_name = flavor_name or "m1.tiny" %}
2---
3 NovaServers.boot_and_delete_server:
4 -
5 args:
6 flavor:
7 name: "{{flavor_name}}"
8 image:
9 name: "__IMAGE__"
10 force_delete: false
11 runner:
12 type: "constant"
13 times: 10
14 concurrency: 2
15 context:
16 users:
17 tenants: 3
18 users_per_tenant: 2
019
=== added file 'templates/rally/boot-and-get-console-server.yaml'
--- templates/rally/boot-and-get-console-server.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/boot-and-get-console-server.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,18 @@
1{% set flavor_name = flavor_name or "m1.tiny" %}
2{% set image_name = image_name or "^cirros.*uec$" %}
3---
4 NovaServers.boot_and_get_console_output:
5 -
6 args:
7 flavor:
8 name: "{{flavor_name}}"
9 image:
10 name: "{{image_name}}"
11 runner:
12 type: "constant"
13 times: 1
14 concurrency: 1
15 context:
16 users:
17 tenants: 1
18 users_per_tenant: 1
019
=== added file 'templates/rally/boot-and-list.yaml'
--- templates/rally/boot-and-list.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/boot-and-list.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,19 @@
1{% set flavor_name = flavor_name or "m1.tiny" %}
2---
3 NovaServers.boot_and_list_server:
4 -
5 args:
6 flavor:
7 name: "{{flavor_name}}"
8 image:
9 name: "__IMAGE__"
10 detailed: True
11 runner:
12 type: "constant"
13 times: 1
14 concurrency: 1
15 context:
16 users:
17 tenants: 1
18 users_per_tenant: 1
19
020
=== added file 'templates/rally/boot-and-live-migrate.yaml'
--- templates/rally/boot-and-live-migrate.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/boot-and-live-migrate.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,17 @@
1{% set flavor_name = flavor_name or "m1.tiny" %}
2---
3NovaServers.boot_and_live_migrate_server:
4- args:
5 flavor:
6 name: "{{flavor_name}}"
7 image:
8 name: "__IMAGE__"
9 block_migration: false
10 runner:
11 type: "constant"
12 times: 10
13 concurrency: 2
14 context:
15 users:
16 tenants: 1
17 users_per_tenant: 1
018
=== added file 'templates/rally/boot-and-migrate.yaml'
--- templates/rally/boot-and-migrate.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/boot-and-migrate.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,16 @@
1{% set flavor_name = flavor_name or "m1.tiny" %}
2---
3NovaServers.boot_and_migrate_server:
4- args:
5 flavor:
6 name: "{{flavor_name}}"
7 image:
8 name: "__IMAGE__"
9 runner:
10 type: "constant"
11 times: 10
12 concurrency: 2
13 context:
14 users:
15 tenants: 1
16 users_per_tenant: 1
017
=== added file 'templates/rally/boot-and-rebuild.yaml'
--- templates/rally/boot-and-rebuild.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/boot-and-rebuild.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,18 @@
1{% set flavor_name = flavor_name or "m1.tiny" %}
2---
3NovaServers.boot_and_rebuild_server:
4- args:
5 flavor:
6 name: "{{flavor_name}}"
7 from_image:
8 name: "__IMAGE__"
9 to_image:
10 name: "__IMAGE__"
11 runner:
12 type: "constant"
13 times: 5
14 concurrency: 2
15 context:
16 users:
17 tenants: 1
18 users_per_tenant: 1
019
=== added file 'templates/rally/boot-and-show-server.yaml'
--- templates/rally/boot-and-show-server.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/boot-and-show-server.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,18 @@
1{% set flavor_name = flavor_name or "m1.tiny" %}
2{% set image_name = image_name or "^cirros.*uec$" %}
3---
4 NovaServers.boot_and_show_server:
5 -
6 args:
7 flavor:
8 name: "{{flavor_name}}"
9 image:
10 name: "__IMAGE__"
11 runner:
12 type: "constant"
13 times: 1
14 concurrency: 1
15 context:
16 users:
17 tenants: 1
18 users_per_tenant: 1
019
=== added file 'templates/rally/boot-bounce-delete.yaml'
--- templates/rally/boot-bounce-delete.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/boot-bounce-delete.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,27 @@
1{% set flavor_name = flavor_name or "m1.tiny" %}
2---
3 NovaServers.boot_and_bounce_server:
4 -
5 args:
6 flavor:
7 name: "{{flavor_name}}"
8 image:
9 name: "__IMAGE__"
10 force_delete: false
11 actions:
12 -
13 hard_reboot: 1
14 -
15 soft_reboot: 1
16 -
17 stop_start: 1
18 -
19 rescue_unrescue: 1
20 runner:
21 type: "constant"
22 times: 10
23 concurrency: 2
24 context:
25 users:
26 tenants: 3
27 users_per_tenant: 2
028
=== added file 'templates/rally/boot-from-volume-and-delete.yaml'
--- templates/rally/boot-from-volume-and-delete.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/boot-from-volume-and-delete.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,19 @@
1{% set flavor_name = flavor_name or "m1.tiny" %}
2---
3 NovaServers.boot_server_from_volume_and_delete:
4 -
5 args:
6 flavor:
7 name: "{{flavor_name}}"
8 image:
9 name: "__IMAGE__"
10 volume_size: 10
11 force_delete: false
12 runner:
13 type: "constant"
14 times: 10
15 concurrency: 2
16 context:
17 users:
18 tenants: 3
19 users_per_tenant: 2
020
=== added file 'templates/rally/boot-from-volume-and-resize.yaml'
--- templates/rally/boot-from-volume-and-resize.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/boot-from-volume-and-resize.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,25 @@
1{% set flavor_name = flavor_name or "m1.tiny" %}
2---
3 NovaServers.boot_server_from_volume_and_resize:
4 -
5 args:
6 flavor:
7 name: "{{flavor_name}}"
8 image:
9 name: "__IMAGE__"
10 to_flavor:
11 name: "m1.small"
12 confirm: true
13 volume_size: 1
14 force_delete: false
15 do_delete: true
16 boot_server_kwargs: {}
17 create_volume_kwargs: {}
18 runner:
19 type: "constant"
20 times: 10
21 concurrency: 2
22 context:
23 users:
24 tenants: 3
25 users_per_tenant: 2
026
=== added file 'templates/rally/boot-from-volume.yaml'
--- templates/rally/boot-from-volume.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/boot-from-volume.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,18 @@
1{% set flavor_name = flavor_name or "m1.tiny" %}
2---
3 NovaServers.boot_server_from_volume:
4 -
5 args:
6 flavor:
7 name: "{{flavor_name}}"
8 image:
9 name: "__IMAGE__"
10 volume_size: 10
11 runner:
12 type: "constant"
13 times: 10
14 concurrency: 2
15 context:
16 users:
17 tenants: 3
18 users_per_tenant: 2
019
=== added file 'templates/rally/boot-lock-unlock-and-delete.yaml'
--- templates/rally/boot-lock-unlock-and-delete.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/boot-lock-unlock-and-delete.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,17 @@
1{% set flavor_name = flavor_name or "m1.tiny" %}
2---
3 NovaServers.boot_lock_unlock_and_delete:
4 -
5 args:
6 flavor:
7 name: "{{flavor_name}}"
8 image:
9 name: "__IMAGE__"
10 runner:
11 type: "constant"
12 times: 10
13 concurrency: 2
14 context:
15 users:
16 tenants: 1
17 users_per_tenant: 1
018
=== added file 'templates/rally/boot-server-attach-created-volume-and-live-migrate.yaml'
--- templates/rally/boot-server-attach-created-volume-and-live-migrate.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/boot-server-attach-created-volume-and-live-migrate.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,20 @@
1{% set flavor_name = flavor_name or "m1.tiny" %}
2---
3NovaServers.boot_server_attach_created_volume_and_live_migrate:
4- args:
5 flavor:
6 name: "{{flavor_name}}"
7 image:
8 name: "__IMAGE__"
9 size: 10
10 block_migration: false
11 boot_server_kwargs: {}
12 create_volume_kwargs: {}
13 runner:
14 type: "constant"
15 times: 5
16 concurrency: 1
17 context:
18 users:
19 tenants: 2
20 users_per_tenant: 2
021
=== added file 'templates/rally/boot-server-attach-created-volume-and-resize.yaml'
--- templates/rally/boot-server-attach-created-volume-and-resize.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/boot-server-attach-created-volume-and-resize.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,25 @@
1{% set flavor_name = flavor_name or "m1.tiny" %}
2---
3 NovaServers.boot_server_attach_created_volume_and_resize:
4 -
5 args:
6 flavor:
7 name: "{{flavor_name}}"
8 image:
9 name: "__IMAGE__"
10 to_flavor:
11 name: "m1.small"
12 confirm: true
13 volume_size: 1
14 force_delete: false
15 do_delete: true
16 boot_server_kwargs: {}
17 create_volume_kwargs: {}
18 runner:
19 type: "constant"
20 times: 10
21 concurrency: 2
22 context:
23 users:
24 tenants: 3
25 users_per_tenant: 2
026
=== added file 'templates/rally/boot-server-from-volume-and-live-migrate.yaml'
--- templates/rally/boot-server-from-volume-and-live-migrate.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/boot-server-from-volume-and-live-migrate.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,19 @@
1{% set flavor_name = flavor_name or "m1.tiny" %}
2---
3NovaServers.boot_server_from_volume_and_live_migrate:
4- args:
5 flavor:
6 name: "{{flavor_name}}"
7 image:
8 name: "__IMAGE__"
9 block_migration: false
10 volume_size: 10
11 force_delete: false
12 runner:
13 type: "constant"
14 times: 10
15 concurrency: 2
16 context:
17 users:
18 tenants: 1
19 users_per_tenant: 1
020
=== added file 'templates/rally/boot-snapshot-boot-delete.yaml'
--- templates/rally/boot-snapshot-boot-delete.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/boot-snapshot-boot-delete.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,18 @@
1{% set flavor_name = flavor_name or "m1.tiny" %}
2---
3 NovaServers.snapshot_server:
4 -
5 args:
6 flavor:
7 name: "{{flavor_name}}"
8 image:
9 name: "__IMAGE__"
10 force_delete: false
11 runner:
12 type: "constant"
13 times: 10
14 concurrency: 2
15 context:
16 users:
17 tenants: 3
18 users_per_tenant: 2
019
=== added file 'templates/rally/boot.yaml'
--- templates/rally/boot.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/boot.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,17 @@
1{% set flavor_name = flavor_name or "m1.tiny" %}
2---
3 NovaServers.boot_server:
4 -
5 args:
6 flavor:
7 name: "{{flavor_name}}"
8 image:
9 name: "__IMAGE__"
10 runner:
11 type: "constant"
12 times: 10
13 concurrency: 2
14 context:
15 users:
16 tenants: 3
17 users_per_tenant: 2
018
=== added file 'templates/rally/create-and-delete-floating-ips-bulk.yaml'
--- templates/rally/create-and-delete-floating-ips-bulk.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/create-and-delete-floating-ips-bulk.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,13 @@
1---
2 NovaFloatingIpsBulk.create_and_delete_floating_ips_bulk:
3 -
4 args:
5 start_cidr: "10.2.0.0/24"
6 runner:
7 type: "constant"
8 times: 5
9 concurrency: 2
10 context:
11 users:
12 tenants: 3
13 users_per_tenant: 2
014
=== added file 'templates/rally/create-and-delete-keypair.yaml'
--- templates/rally/create-and-delete-keypair.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/create-and-delete-keypair.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,11 @@
1---
2 NovaKeypair.create_and_delete_keypair:
3 -
4 runner:
5 type: "constant"
6 times: 10
7 concurrency: 2
8 context:
9 users:
10 tenants: 3
11 users_per_tenant: 2
012
=== added file 'templates/rally/create-and-delete-network.yaml'
--- templates/rally/create-and-delete-network.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/create-and-delete-network.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,13 @@
1---
2 NovaNetworks.create_and_delete_network:
3 -
4 args:
5 start_cidr: "10.10.0.0/24"
6 runner:
7 type: "constant"
8 times: 5
9 concurrency: 2
10 context:
11 users:
12 tenants: 3
13 users_per_tenant: 2
0\ No newline at end of file14\ No newline at end of file
115
=== added file 'templates/rally/create-and-delete-secgroups.yaml'
--- templates/rally/create-and-delete-secgroups.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/create-and-delete-secgroups.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,14 @@
1---
2 NovaSecGroup.create_and_delete_secgroups:
3 -
4 args:
5 security_group_count: 10
6 rules_per_security_group: 10
7 runner:
8 type: "constant"
9 times: 10
10 concurrency: 2
11 context:
12 users:
13 tenants: 3
14 users_per_tenant: 2
015
=== added file 'templates/rally/create-and-list-floating-ips-bulk.yaml'
--- templates/rally/create-and-list-floating-ips-bulk.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/create-and-list-floating-ips-bulk.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,14 @@
1---
2 NovaFloatingIpsBulk.create_and_list_floating_ips_bulk:
3 -
4 args:
5 start_cidr: "10.2.0.0/24"
6 runner:
7 type: "constant"
8 times: 5
9 concurrency: 2
10 context:
11 users:
12 tenants: 3
13 users_per_tenant: 2
14
015
=== added file 'templates/rally/create-and-list-keypairs.yaml'
--- templates/rally/create-and-list-keypairs.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/create-and-list-keypairs.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,11 @@
1---
2 NovaKeypair.create_and_list_keypairs:
3 -
4 runner:
5 type: "constant"
6 times: 10
7 concurrency: 2
8 context:
9 users:
10 tenants: 3
11 users_per_tenant: 2
012
=== added file 'templates/rally/create-and-list-networks.yaml'
--- templates/rally/create-and-list-networks.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/create-and-list-networks.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,13 @@
1---
2 NovaNetworks.create_and_list_networks:
3 -
4 args:
5 start_cidr: "10.10.0.0/24"
6 runner:
7 type: "constant"
8 times: 5
9 concurrency: 2
10 context:
11 users:
12 tenants: 3
13 users_per_tenant: 2
0\ No newline at end of file14\ No newline at end of file
115
=== added file 'templates/rally/create-and-list-secgroups.yaml'
--- templates/rally/create-and-list-secgroups.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/create-and-list-secgroups.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,14 @@
1---
2 NovaSecGroup.create_and_list_secgroups:
3 -
4 args:
5 security_group_count: 10
6 rules_per_security_group: 10
7 runner:
8 type: "constant"
9 times: 10
10 concurrency: 2
11 context:
12 users:
13 tenants: 3
14 users_per_tenant: 2
015
=== added file 'templates/rally/create-and-update-secgroups.yaml'
--- templates/rally/create-and-update-secgroups.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/create-and-update-secgroups.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,13 @@
1---
2 NovaSecGroup.create_and_update_secgroups:
3 -
4 args:
5 security_group_count: 10
6 runner:
7 type: "constant"
8 times: 10
9 concurrency: 2
10 context:
11 users:
12 tenants: 3
13 users_per_tenant: 2
014
=== added file 'templates/rally/list-agents.yaml'
--- templates/rally/list-agents.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/list-agents.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,7 @@
1---
2 NovaAgents.list_agents:
3 -
4 runner:
5 type: "constant"
6 concurrency: 2
7 times: 10
08
=== added file 'templates/rally/list-aggregates.yaml'
--- templates/rally/list-aggregates.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/list-aggregates.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,7 @@
1---
2 NovaAggregates.list_aggregates:
3 -
4 runner:
5 type: "constant"
6 concurrency: 2
7 times : 10
08
=== added file 'templates/rally/list-availability-zones.yaml'
--- templates/rally/list-availability-zones.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/list-availability-zones.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,9 @@
1---
2 NovaAvailabilityZones.list_availability_zones:
3 -
4 args:
5 detailed: true
6 runner:
7 type: "constant"
8 concurrency: 2
9 times: 10
010
=== added file 'templates/rally/list-flavors.yaml'
--- templates/rally/list-flavors.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/list-flavors.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,13 @@
1---
2 NovaFlavors.list_flavors:
3 -
4 args:
5 detailed: True
6 runner:
7 type: "constant"
8 times: 10
9 concurrency: 2
10 context:
11 users:
12 tenants: 3
13 users_per_tenant: 2
014
=== added file 'templates/rally/list-hosts.yaml'
--- templates/rally/list-hosts.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/list-hosts.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,7 @@
1---
2 NovaHosts.list_hosts:
3 -
4 runner:
5 type: "constant"
6 concurrency: 2
7 times: 10
08
=== added file 'templates/rally/list-hypervisors.yaml'
--- templates/rally/list-hypervisors.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/list-hypervisors.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,9 @@
1---
2 NovaHypervisors.list_hypervisors:
3 -
4 args:
5 detailed: True
6 runner:
7 type: "constant"
8 times: 10
9 concurrency: 2
010
=== added file 'templates/rally/list-images.yaml'
--- templates/rally/list-images.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/list-images.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,13 @@
1---
2 NovaImages.list_images:
3 -
4 args:
5 detailed: True
6 runner:
7 type: "constant"
8 times: 10
9 concurrency: 2
10 context:
11 users:
12 tenants: 3
13 users_per_tenant: 2
014
=== added file 'templates/rally/list-servers.yaml'
--- templates/rally/list-servers.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/list-servers.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,20 @@
1{% set flavor_name = flavor_name or "m1.tiny" %}
2---
3 NovaServers.list_servers:
4 -
5 args:
6 detailed: True
7 runner:
8 type: "constant"
9 times: 1
10 concurrency: 1
11 context:
12 users:
13 tenants: 1
14 users_per_tenant: 1
15 servers:
16 flavor:
17 name: "{{flavor_name}}"
18 image:
19 name: "__IMAGE__"
20 servers_per_tenant: 2
021
=== added file 'templates/rally/list-services.yaml'
--- templates/rally/list-services.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/list-services.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,7 @@
1---
2 NovaServices.list_services:
3 -
4 runner:
5 type: "constant"
6 times: 10
7 concurrency: 2
08
=== added file 'templates/rally/pause-and-unpause.yaml'
--- templates/rally/pause-and-unpause.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/pause-and-unpause.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,18 @@
1{% set flavor_name = flavor_name or "m1.tiny" %}
2---
3 NovaServers.pause_and_unpause_server:
4 -
5 args:
6 flavor:
7 name: "{{flavor_name}}"
8 image:
9 name: "__IMAGE__"
10 force_delete: false
11 runner:
12 type: "constant"
13 times: 10
14 concurrency: 2
15 context:
16 users:
17 tenants: 3
18 users_per_tenant: 2
019
=== added file 'templates/rally/resize-server.yaml'
--- templates/rally/resize-server.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/resize-server.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,21 @@
1{% set flavor_name = flavor_name or "m1.tiny" %}
2---
3 NovaServers.resize_server:
4 -
5 args:
6 flavor:
7 name: "{{flavor_name}}"
8 image:
9 name: "__IMAGE__"
10 to_flavor:
11 name: "m1.small"
12 confirm: true
13 force_delete: false
14 runner:
15 type: "constant"
16 times: 10
17 concurrency: 5
18 context:
19 users:
20 tenants: 1
21 users_per_tenant: 1
022
=== added file 'templates/rally/shelve-and-unshelve.yaml'
--- templates/rally/shelve-and-unshelve.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/shelve-and-unshelve.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,18 @@
1{% set flavor_name = flavor_name or "m1.tiny" %}
2---
3 NovaServers.shelve_and_unshelve_server:
4 -
5 args:
6 flavor:
7 name: "{{flavor_name}}"
8 image:
9 name: "__IMAGE__"
10 force_delete: false
11 runner:
12 type: "constant"
13 times: 10
14 concurrency: 2
15 context:
16 users:
17 tenants: 3
18 users_per_tenant: 2
019
=== added file 'templates/rally/suspend-and-resume.yaml'
--- templates/rally/suspend-and-resume.yaml 1970-01-01 00:00:00 +0000
+++ templates/rally/suspend-and-resume.yaml 2016-04-05 14:12:01 +0000
@@ -0,0 +1,18 @@
1{% set flavor_name = flavor_name or "m1.tiny" %}
2---
3 NovaServers.suspend_and_resume_server:
4 -
5 args:
6 flavor:
7 name: "{{flavor_name}}"
8 image:
9 name: "__IMAGE__"
10 force_delete: false
11 runner:
12 type: "constant"
13 times: 10
14 concurrency: 2
15 context:
16 users:
17 tenants: 3
18 users_per_tenant: 2
019
=== added file 'tools/install_rally.sh'
--- tools/install_rally.sh 1970-01-01 00:00:00 +0000
+++ tools/install_rally.sh 2016-04-05 14:12:01 +0000
@@ -0,0 +1,45 @@
1#!/bin/bash
2# Install and configure rally
3
4#set -ex
5
6if [ -z $1 ]; then
7 image="cirros"
8else
9 image=$1
10fi
11
12source novarc admin admin
13# Gather vars for tempest template
14image_name=$(glance image-list | grep $image | awk '{ print $4 }')
15
16# Git rally, place the rendered rally template
17[ -d rally ] || git clone https://github.com/openstack/rally
18[ -d rally_scenarios ] || mkdir -p rally_scenarios
19
20# Install rally
21rally/install_rally.sh -y -d ~/rally
22
23# Insert the image to use
24for i in templates/rally/*.yaml; do
25 file=`echo $i | sed s:^templates/rally/::`
26 sed -e s:__IMAGE__:$image_name:g $i > rally_scenarios/$file
27done
28
29# Installing rally database
30source ~/rally/bin/activate
31rally-manage db recreate
32
33# Creating environment
34rally deployment create --fromenv --name=existing
35
36
37echo
38echo "Finished installing rally"
39echo
40echo "To run a task run the following command (for example): "
41echo "source ~/rally/bin/activate"
42echo "rally task start rally_scenarios/boot.yaml"
43
44
45

Subscribers

People subscribed via source and target branches

to status/vote changes: