diff --git a/samples/tasks/scenarios/cinder/create-nested-snapshots-and-attach-volume.json b/samples/tasks/scenarios/cinder/create-nested-snapshots-and-attach-volume.json new file mode 100644 index 00000000..faf5a2be --- /dev/null +++ b/samples/tasks/scenarios/cinder/create-nested-snapshots-and-attach-volume.json @@ -0,0 +1,34 @@ +{% set flavor_name = flavor_name or "m1.tiny" %} +{ + "CinderVolumes.create_nested_snapshots_and_attach_volume": [ + { + "args": { + "size": { + "min": 1, + "max": 5 + }, + "nested_level": 5 + }, + "runner": { + "type": "constant", + "times": 1, + "concurrency": 1 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 1 + }, + "servers": { + "image": { + "name": "^cirros.*uec$" + }, + "flavor": { + "name": "{{flavor_name}}" + }, + "servers_per_tenant": 2 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/cinder/create-nested-snapshots-and-attach-volume.yaml b/samples/tasks/scenarios/cinder/create-nested-snapshots-and-attach-volume.yaml new file mode 100644 index 00000000..bb2184ef --- /dev/null +++ b/samples/tasks/scenarios/cinder/create-nested-snapshots-and-attach-volume.yaml @@ -0,0 +1,23 @@ +{% set flavor_name = flavor_name or "m1.tiny" %} +--- + CinderVolumes.create_nested_snapshots_and_attach_volume: + - + args: + size: + min: 1 + max: 5 + nested_level: 5 + runner: + type: "constant" + times: 1 + concurrency: 1 + context: + users: + tenants: 2 + users_per_tenant: 1 + servers: + image: + name: "^cirros.*uec$" + flavor: + name: "{{flavor_name}}" + servers_per_tenant: 2