Manila: Add scenario to create share and and allow and deny access to it

Change-Id: Ie247bb419325761ff80c83cb7b85518dc71f0d13
This commit is contained in:
Asma Syed Hameed 2022-01-25 12:25:40 +05:30
parent 2ff59ef4c8
commit 972835d4e0
2 changed files with 36 additions and 0 deletions

View File

@ -666,3 +666,10 @@ workloads:
share_type: default
share_proto: "nfs"
file: rally/manila/create-share-and-extend.yaml
- name: create-share-allow-and-deny-access
enabled: true
share_type: default
share_proto: "nfs"
access: "127.0.0.1"
access_type: "ip"
file: rally/manila/create-share-allow-and-deny-access.yml

View File

@ -0,0 +1,29 @@
{% 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_then_allow_and_deny_access:
-
args:
share_proto: "{{ share_proto }}"
share_type: {{ share_type }}
size: 1
access: "{{ access }}"
access_type: "{{ access_type }}"
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 }}