From c5261e1fd0aacd6c2a0cc9f13e36e5b68a01368f Mon Sep 17 00:00:00 2001 From: Asma Syed Hameed Date: Thu, 18 Aug 2022 19:38:37 +0530 Subject: [PATCH] Add swift Scenarios - create-container-and-object-then-delete-all - create-container-and-object-then-list-objects - list-objects-in-containers Change-Id: Ib0acf997f55504515f0de37056afc0d724ada58e --- browbeat-config.yaml | 26 +++++++++++++++++++ ...-container-and-object-then-delete-all.yaml | 24 +++++++++++++++++ ...ontainer-and-object-then-list-objects.yaml | 24 +++++++++++++++++ rally/swift/list-objects-in-containers.yaml | 25 ++++++++++++++++++ 4 files changed, 99 insertions(+) create mode 100644 rally/swift/create-container-and-object-then-delete-all.yaml create mode 100644 rally/swift/create-container-and-object-then-list-objects.yaml create mode 100644 rally/swift/list-objects-in-containers.yaml diff --git a/browbeat-config.yaml b/browbeat-config.yaml index b9ba687c7..c3729c0fb 100644 --- a/browbeat-config.yaml +++ b/browbeat-config.yaml @@ -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 diff --git a/rally/swift/create-container-and-object-then-delete-all.yaml b/rally/swift/create-container-and-object-then-delete-all.yaml new file mode 100644 index 000000000..6ffe4a68d --- /dev/null +++ b/rally/swift/create-container-and-object-then-delete-all.yaml @@ -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 }} diff --git a/rally/swift/create-container-and-object-then-list-objects.yaml b/rally/swift/create-container-and-object-then-list-objects.yaml new file mode 100644 index 000000000..8c0516871 --- /dev/null +++ b/rally/swift/create-container-and-object-then-list-objects.yaml @@ -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 }} diff --git a/rally/swift/list-objects-in-containers.yaml b/rally/swift/list-objects-in-containers.yaml new file mode 100644 index 000000000..e20726e5f --- /dev/null +++ b/rally/swift/list-objects-in-containers.yaml @@ -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 }}