Support size range in Cinder create_volume and extend_volume

It is useful for some test cases to set up volume size from some
range, not only specific value. This change add such possibility
to create_volume and extend_volume.

Change-Id: Ic7cc9270eb8d31dcbe3d30acf6f24cf9c41a6fd1
This commit is contained in:
Anton Arefiev 2015-04-27 19:50:02 +03:00
parent 92cef8ebb8
commit 934d3eb98f
15 changed files with 337 additions and 0 deletions

View File

@ -560,6 +560,22 @@
sla:
failure_rate:
max: 0
-
args:
size:
min: 1
max: 3
runner:
type: "constant"
times: 3
concurrency: 3
context:
users:
tenants: 2
users_per_tenant: 2
sla:
failure_rate:
max: 0
CinderVolumes.create_and_list_volume:
-
@ -577,6 +593,23 @@
sla:
failure_rate:
max: 0
-
args:
size:
min: 1
max: 3
detailed: True
runner:
type: "constant"
times: 3
concurrency: 3
context:
users:
tenants: 1
users_per_tenant: 1
sla:
failure_rate:
max: 0
-
args:
size: 1
@ -629,6 +662,22 @@
sla:
failure_rate:
max: 0
-
args:
size:
min: 1
max: 3
runner:
type: "constant"
times: 2
concurrency: 2
context:
users:
tenants: 2
users_per_tenant: 2
sla:
failure_rate:
max: 0
-
args:
size: 1
@ -662,6 +711,25 @@
sla:
failure_rate:
max: 0
-
args:
size:
min: 1
max: 2
new_size:
min: 3
max: 4
runner:
type: "constant"
times: 2
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 1
sla:
failure_rate:
max: 0
CinderVolumes.create_from_volume_and_delete_volume:
-
@ -680,6 +748,24 @@
sla:
failure_rate:
max: 0
-
args:
size:
min: 1
max: 2
runner:
type: "constant"
times: 2
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 1
volumes:
size: 1
sla:
failure_rate:
max: 0
CinderVolumes.create_and_delete_snapshot:
-

View File

@ -21,6 +21,28 @@
"users_per_tenant": 2
}
}
},
{
"args": {
"size": {
"min": 1,
"max": 5
},
"flavor": {
"name": "m1.nano"
}
},
"runner": {
"type": "constant",
"times": 5,
"concurrency": 1
},
"context": {
"users": {
"tenants": 2,
"users_per_tenant": 2
}
}
}
]
}

View File

@ -15,3 +15,18 @@
users:
tenants: 2
users_per_tenant: 2
-
args:
size:
min: 1
max: 5
flavor:
name: "m1.nano"
runner:
type: "constant"
times: 5
concurrency: 1
context:
users:
tenants: 2
users_per_tenant: 2

View File

@ -15,6 +15,25 @@
"users_per_tenant": 2
}
}
},
{
"args": {
"size": {
"min": 1,
"max": 5
}
},
"runner": {
"type": "constant",
"times": 3,
"concurrency": 2
},
"context": {
"users": {
"tenants": 2,
"users_per_tenant": 2
}
}
}
]
}

View File

@ -11,3 +11,16 @@
users:
tenants: 2
users_per_tenant: 2
-
args:
size:
min: 1
max: 5
runner:
type: "constant"
times: 3
concurrency: 2
context:
users:
tenants: 2
users_per_tenant: 2

View File

@ -16,6 +16,29 @@
"users_per_tenant": 1
}
}
},
{
"args": {
"size": {
"min": 1,
"max": 5
},
"new_size": {
"min": 6,
"max": 10
}
},
"runner": {
"type": "constant",
"times": 2,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 1
}
}
}
]
}

View File

@ -12,3 +12,19 @@
users:
tenants: 1
users_per_tenant: 1
-
args:
size:
min: 1
max: 5
new_size:
min: 6
max: 10
runner:
type: "constant"
times: 2
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 1

View File

@ -16,6 +16,26 @@
"users_per_tenant": 1
}
}
},
{
"args": {
"size": {
"min": 1,
"max": 5
},
"detailed": true
},
"runner": {
"type": "constant",
"times": 3,
"concurrency": 1
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 1
}
}
}
]
}

View File

@ -12,3 +12,17 @@
users:
tenants: 1
users_per_tenant: 1
-
args:
size:
min: 1
max: 5
detailed: True
runner:
type: "constant"
times: 3
concurrency: 1
context:
users:
tenants: 1
users_per_tenant: 1

View File

@ -19,6 +19,29 @@
"users_per_tenant": 2
}
}
},
{
"args": {
"size": {
"min": 1,
"max": 5
},
"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
}
}
}
]
}

View File

@ -15,3 +15,20 @@
users:
tenants: 2
users_per_tenant: 2
-
args:
size:
min: 1
max: 5
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

View File

@ -18,6 +18,28 @@
"size": 1
}
}
},
{
"args": {
"size": {
"min": 1,
"max": 5
}
},
"runner": {
"type": "constant",
"times": 2,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 1
},
"volumes": {
"size": 1
}
}
}
]
}

View File

@ -7,6 +7,21 @@
type: "constant"
times: 2
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 1
volumes:
size: 1
-
args:
size:
min: 1
max: 5
runner:
type: "constant"
times: 2
concurrency: 2
context:
users:
tenants: 1

View File

@ -15,6 +15,25 @@
"users_per_tenant": 2
}
}
},
{
"args": {
"size": {
"min": 1,
"max": 5
}
},
"runner": {
"type": "constant",
"times": 3,
"concurrency": 2
},
"context": {
"users": {
"tenants": 2,
"users_per_tenant": 2
}
}
}
]
}

View File

@ -11,3 +11,16 @@
users:
tenants: 2
users_per_tenant: 2
-
args:
size:
min: 1
max: 5
runner:
type: "constant"
times: 3
concurrency: 2
context:
users:
tenants: 2
users_per_tenant: 2