From 6a79971d7b62ba26b3be8999a826c81a55e6c371 Mon Sep 17 00:00:00 2001 From: Yuriy Nesenenko Date: Tue, 24 Mar 2015 13:12:23 +0200 Subject: [PATCH] Add Cinder create_backup volume scenario Implemented create_backup volume scenario for Cinder Change-Id: I126f214d6161eb1f3e8eda5bc074f74ef26dcd3a --- rally-jobs/rally-neutron.yaml | 36 +++++++++++++++++++ .../cinder/create-volume-backup.json | 22 ++++++++++++ .../cinder/create-volume-backup.yaml | 16 +++++++++ 3 files changed, 74 insertions(+) create mode 100644 samples/tasks/scenarios/cinder/create-volume-backup.json create mode 100644 samples/tasks/scenarios/cinder/create-volume-backup.yaml diff --git a/rally-jobs/rally-neutron.yaml b/rally-jobs/rally-neutron.yaml index 612a4da3..58a782ff 100644 --- a/rally-jobs/rally-neutron.yaml +++ b/rally-jobs/rally-neutron.yaml @@ -820,6 +820,42 @@ failure_rate: max: 0 + CinderVolumes.create_volume_backup: + - + args: + size: 1 + do_delete: True + runner: + type: "constant" + times: 2 + concurrency: 2 + context: + users: + tenants: 1 + users_per_tenant: 1 + roles: + - "Member" + sla: + failure_rate: + max: 0 + - + args: + size: 1 + do_delete: False + runner: + type: "constant" + times: 2 + concurrency: 2 + context: + users: + tenants: 1 + users_per_tenant: 1 + roles: + - "Member" + sla: + failure_rate: + max: 0 + VMTasks.boot_runcommand_delete: - args: diff --git a/samples/tasks/scenarios/cinder/create-volume-backup.json b/samples/tasks/scenarios/cinder/create-volume-backup.json new file mode 100644 index 00000000..ca031e7a --- /dev/null +++ b/samples/tasks/scenarios/cinder/create-volume-backup.json @@ -0,0 +1,22 @@ +{ + "CinderVolumes.create_volume_backup": [ + { + "args": { + "size": 1, + "do_delete": true + }, + "runner": { + "type": "constant", + "times": 2, + "concurrency": 1 + }, + "context": { + "users": { + "tenants": 1, + "users_per_tenant": 1 + }, + "roles": ["Member"] + } + } + ] +} diff --git a/samples/tasks/scenarios/cinder/create-volume-backup.yaml b/samples/tasks/scenarios/cinder/create-volume-backup.yaml new file mode 100644 index 00000000..3d92e401 --- /dev/null +++ b/samples/tasks/scenarios/cinder/create-volume-backup.yaml @@ -0,0 +1,16 @@ +--- + CinderVolumes.create_volume_backup: + - + args: + size: 1 + do_delete: True + runner: + type: "constant" + times: 2 + concurrency: 1 + context: + users: + tenants: 1 + users_per_tenant: 1 + roles: + - "Member"