From 972835d4e03a81c5ee7e52c391e29eb27cb8b9b5 Mon Sep 17 00:00:00 2001 From: Asma Syed Hameed Date: Tue, 25 Jan 2022 12:25:40 +0530 Subject: [PATCH] Manila: Add scenario to create share and and allow and deny access to it Change-Id: Ie247bb419325761ff80c83cb7b85518dc71f0d13 --- browbeat-config.yaml | 7 +++++ .../create-share-allow-and-deny-access.yml | 29 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 rally/manila/create-share-allow-and-deny-access.yml diff --git a/browbeat-config.yaml b/browbeat-config.yaml index 3ea180612..5c3796f29 100644 --- a/browbeat-config.yaml +++ b/browbeat-config.yaml @@ -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 diff --git a/rally/manila/create-share-allow-and-deny-access.yml b/rally/manila/create-share-allow-and-deny-access.yml new file mode 100644 index 000000000..238cc95f5 --- /dev/null +++ b/rally/manila/create-share-allow-and-deny-access.yml @@ -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 }}