Add manila workload scenarios

- create-share-network-and-list
- create-share-network-and-delete
- create-share-and-shrink
- create-share-and-extend

Change-Id: I9e3ec0ed0bd8a5a7f8801f29a80c97ad77d0991a
This commit is contained in:
Asma Syed Hameed 2021-12-24 16:34:02 +05:30
parent 675396a930
commit 4e99f1d424
5 changed files with 129 additions and 0 deletions

View File

@ -641,3 +641,28 @@ workloads:
num_stop_start_vms: 5
workloads: all
file: rally/rally-plugins/dynamic-workloads/dynamic_workload_min.yml
- name: manila
enabled: false
type: rally
rally_deployment: overcloud
concurrency:
- 1
times: 1
scenarios:
- name: create-share-network-and-list
enabled: true
file: rally/manila/create-share-network-and-list.yaml
- name: create-share-network-and-delete
enabled: true
file: rally/manila/create-share-network-and-delete.yaml
- name: create-share-and-shrink
enabled: true
share_type: default
share_proto: "nfs"
file: rally/manila/create-share-and-shrink.yaml
- name: create-share-and-extend
enabled: true
share_type: default
share_proto: "nfs"
file: rally/manila/create-share-and-extend.yaml

View File

@ -0,0 +1,28 @@
{% set sla_max_avg_duration = sla_max_avg_duration or 60 %}
{% set sla_max_failure = sla_max_failure or 0 %}
{% set sla_max_seconds = sla_max_seconds or 60 %}
---
ManilaShares.create_and_extend_share:
-
args:
share_type: {{share_type}}
share_proto: "{{ share_proto }}"
size: 1
new_size: 2
runner:
type: "constant"
times: {{ times }}
concurrency: {{ concurrency }}
context:
quotas:
manila:
shares: -1
gigabytes: -1
users:
tenants: 2
users_per_tenant: 1
sla:
max_avg_duration: {{ sla_max_avg_duration }}
max_seconds_per_iteration: {{ sla_max_seconds }}
failure_rate:
max: {{ sla_max_failure }}

View File

@ -0,0 +1,28 @@
{% set sla_max_avg_duration = sla_max_avg_duration or 60 %}
{% set sla_max_failure = sla_max_failure or 0 %}
{% set sla_max_seconds = sla_max_seconds or 60 %}
---
ManilaShares.create_and_shrink_share:
-
args:
share_type: {{share_type}}
share_proto: "{{ share_proto }}"
size: 2
new_size: 1
runner:
type: "constant"
times: {{ times }}
concurrency: {{ concurrency }}
context:
quotas:
manila:
shares: -1
gigabytes: -1
users:
tenants: 2
users_per_tenant: 1
sla:
max_avg_duration: {{ sla_max_avg_duration }}
max_seconds_per_iteration: {{ sla_max_seconds }}
failure_rate:
max: {{ sla_max_failure }}

View File

@ -0,0 +1,22 @@
{% set sla_max_avg_duration = sla_max_avg_duration or 60 %}
{% set sla_max_failure = sla_max_failure or 0 %}
{% set sla_max_seconds = sla_max_seconds or 60 %}
---
ManilaShares.create_share_network_and_delete:
-
runner:
type: "constant"
times: {{ times }}
concurrency: {{ concurrency }}
context:
quotas:
manila:
share_networks: -1
users:
tenants: 2
users_per_tenant: 1
sla:
max_avg_duration: {{ sla_max_avg_duration }}
max_seconds_per_iteration: {{ sla_max_seconds }}
failure_rate:
max: {{ sla_max_failure }}

View File

@ -0,0 +1,26 @@
{% set sla_max_avg_duration = sla_max_avg_duration or 60 %}
{% set sla_max_failure = sla_max_failure or 0 %}
{% set sla_max_seconds = sla_max_seconds or 60 %}
---
ManilaShares.create_share_network_and_list:
-
args:
detailed: True
search_opts:
name: "rally"
runner:
type: "constant"
times: {{ times }}
concurrency: {{ concurrency }}
context:
quotas:
manila:
share_networks: -1
users:
tenants: 2
users_per_tenant: 1
sla:
max_avg_duration: {{ sla_max_avg_duration }}
max_seconds_per_iteration: {{ sla_max_seconds }}
failure_rate:
max: {{ sla_max_failure }}