Add swift Scenarios

- create-container-and-object-then-delete-all
- create-container-and-object-then-list-objects
- list-objects-in-containers

Change-Id: Ib0acf997f55504515f0de37056afc0d724ada58e
This commit is contained in:
Asma Syed Hameed 2022-08-18 19:38:37 +05:30
parent 96ce2c8686
commit c5261e1fd0
4 changed files with 99 additions and 0 deletions

View File

@ -514,6 +514,32 @@ workloads:
iface_mac: "3c:fd:fe:c1:8c:70"
file: rally/rally-plugins/netcreate-boot/provider_netcreate_nova_boot_ping.yml
- name: swift
enabled: false
type: rally
rally_deployment: overcloud
concurrency:
- 1
times: 1
scenarios:
# object_size: size of created swift objects in byte
- name: create-container-and-object-then-delete-all
enabled: false
objects_per_container: 10
object_size: 1024
file: rally/swift/create-container-and-object-then-delete-all.yaml
- name: create-container-and-object-then-list-objects
enabled: false
objects_per_container: 10
object_size: 1024
file: rally/swift/create-container-and-object-then-list-objects.yaml
- name: list-objects-in-containers
enabled: true
objects_per_container: 10
object_size: 1024
containers_per_tenant: 1
file: rally/swift/list-objects-in-containers.yaml
- name: plugin-workloads
enabled: false
type: rally

View File

@ -0,0 +1,24 @@
{% 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 %}
---
SwiftObjects.create_container_and_object_then_delete_all:
-
args:
objects_per_container: {{ objects_per_container }}
object_size: {{ object_size }}
runner:
type: "constant"
times: {{ times }}
concurrency: {{ concurrency }}
context:
users:
tenants: 1
users_per_tenant: 1
roles:
- "admin"
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,24 @@
{% 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 %}
---
SwiftObjects.create_container_and_object_then_list_objects:
-
args:
objects_per_container: {{ objects_per_container }}
object_size: {{ object_size }}
runner:
type: "constant"
times: {{ times }}
concurrency: {{ concurrency }}
context:
users:
tenants: 1
users_per_tenant: 1
roles:
- "admin"
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,25 @@
{% 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 %}
---
SwiftObjects.list_objects_in_containers:
-
runner:
type: "constant"
times: {{ times }}
concurrency: {{ concurrency }}
context:
users:
tenants: 1
users_per_tenant: 1
roles:
- "admin"
swift_objects:
containers_per_tenant: {{ containers_per_tenant }}
objects_per_container: {{ objects_per_container }}
object_size: {{ object_size }}
sla:
max_avg_duration: {{ sla_max_avg_duration }}
max_seconds_per_iteration: {{ sla_max_seconds }}
failure_rate:
max: {{ sla_max_failure }}