rally-openstack/samples/tasks/scenarios/cinder/create-and-attach-volume.json
zhangzhang f61b5bf221 Add sla section to samples
Add missing sla section and proper check
This work is originally porposed by Roman[1]

[1] https://review.openstack.org/#/c/348395/3

Change-Id: I4507aa82080b41cac4b87aa810865da9ffe015e6
Closes-bug: #1554857
2017-08-03 04:31:30 -04:00

70 lines
1.8 KiB
JSON

{% set flavor_name = flavor_name or "m1.tiny" %}
{% set availability_zone = availability_zone or "nova" %}
{
"CinderVolumes.create_and_attach_volume": [
{
"args": {
"size": 10,
"image": {
"name": "^cirros.*-disk$"
},
"flavor": {
"name": "{{flavor_name}}"
},
"create_volume_params": {
"availability_zone": "{{availability_zone}}"
}
},
"runner": {
"type": "constant",
"times": 5,
"concurrency": 1
},
"context": {
"users": {
"tenants": 2,
"users_per_tenant": 2
}
},
"sla": {
"failure_rate": {
"max": 0
}
}
},
{
"args": {
"size": {
"min": 1,
"max": 5
},
"flavor": {
"name": "{{flavor_name}}"
},
"image": {
"name": "^cirros.*-disk$"
},
"create_volume_params": {
"availability_zone": "{{availability_zone}}"
}
},
"runner": {
"type": "constant",
"times": 5,
"concurrency": 1
},
"context": {
"users": {
"tenants": 2,
"users_per_tenant": 2
}
},
"sla": {
"failure_rate": {
"max": 0
}
}
}
]
}