From 653a66ce3eb69a3b0a339e08e8d59372570fac17 Mon Sep 17 00:00:00 2001 From: Ivan Kolodyazhny Date: Tue, 3 Feb 2015 22:29:58 +0200 Subject: [PATCH] Implement create_and_upload_volume_to_image scenario for Cinder The `create_and_upload_volume_to_image' sceanario can not be run on the DSVM gate with the default settings because it uses 1GB Swift backend for Glance image store. Change-Id: I41e1b391c560c7b9156e68c640531942cc8bf34c --- .../create-and-upload-volume-to-image.json | 24 +++++++++++++++++++ .../create-and-upload-volume-to-image.yaml | 17 +++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 samples/tasks/scenarios/cinder/create-and-upload-volume-to-image.json create mode 100644 samples/tasks/scenarios/cinder/create-and-upload-volume-to-image.yaml diff --git a/samples/tasks/scenarios/cinder/create-and-upload-volume-to-image.json b/samples/tasks/scenarios/cinder/create-and-upload-volume-to-image.json new file mode 100644 index 00000000..ee9344a9 --- /dev/null +++ b/samples/tasks/scenarios/cinder/create-and-upload-volume-to-image.json @@ -0,0 +1,24 @@ +{ + "CinderVolumes.create_and_upload_volume_to_image": [ + { + "args": { + "size": 1, + "force": false, + "container_format": "bare", + "disk_format": "raw", + "do_delete": true + }, + "runner": { + "type": "constant", + "times": 3, + "concurrency": 2 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 2 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/cinder/create-and-upload-volume-to-image.yaml b/samples/tasks/scenarios/cinder/create-and-upload-volume-to-image.yaml new file mode 100644 index 00000000..42f631e7 --- /dev/null +++ b/samples/tasks/scenarios/cinder/create-and-upload-volume-to-image.yaml @@ -0,0 +1,17 @@ +--- + CinderVolumes.create_and_upload_volume_to_image: + - + args: + size: 1 + force: false + container_format: "bare" + disk_format: "raw" + do_delete: true + runner: + type: "constant" + times: 3 + concurrency: 2 + context: + users: + tenants: 2 + users_per_tenant: 2