From 568dd2cebb701f76f5bb9baa3dfc9dfe0031f453 Mon Sep 17 00:00:00 2001 From: Boris Pavlovic Date: Fri, 6 Feb 2015 21:27:25 +0300 Subject: [PATCH] Add Rally jobs related files to Mistral To make Rally job work properly this patch adds all required files As well it adds README that explains how it works Change-Id: Ia196f1437c14f28fff3d66540d0591629e18bd5c --- rally-jobs/README.rst | 29 ++++++++++++++++++++ rally-jobs/extra/README.rst | 5 ++++ rally-jobs/extra/mistral_wb.yaml | 13 +++++++++ rally-jobs/plugins/README.rst | 9 ++++++ rally-jobs/plugins/__init__.py | 0 rally-jobs/task-mistral.yaml | 47 ++++++++++++++++++++++++++++++++ 6 files changed, 103 insertions(+) create mode 100644 rally-jobs/README.rst create mode 100644 rally-jobs/extra/README.rst create mode 100644 rally-jobs/extra/mistral_wb.yaml create mode 100644 rally-jobs/plugins/README.rst create mode 100644 rally-jobs/plugins/__init__.py create mode 100644 rally-jobs/task-mistral.yaml diff --git a/rally-jobs/README.rst b/rally-jobs/README.rst new file mode 100644 index 00000000..ef281a85 --- /dev/null +++ b/rally-jobs/README.rst @@ -0,0 +1,29 @@ +Rally job related files +======================= + +This directory contains rally tasks and plugins that are run by OpenStack CI. + +Structure +--------- + +* task-mistral.yaml is a task that will be run in gates against OpenStack deployed + by DevStack with installed Rally & Mistral. + +* plugins - directory where you can add rally plugins. Almost everything in + Rally is plugin. Benchmark context, Benchmark scenario, SLA checks, Generic + cleanup resources, .... + +* extra - all files from this directory will be copy pasted to gates, so you + are able to use absolute path in rally tasks. + Files will be in ~/.rally/extra/* + + +Useful links +------------ + +* More about rally: https://rally.readthedocs.org/en/latest/ + +* How to add rally-gates: https://rally.readthedocs.org/en/latest/gates.html + +* About plugins: https://rally.readthedocs.org/en/latest/plugins.html + diff --git a/rally-jobs/extra/README.rst b/rally-jobs/extra/README.rst new file mode 100644 index 00000000..836f35a0 --- /dev/null +++ b/rally-jobs/extra/README.rst @@ -0,0 +1,5 @@ +Extra files +=========== + +All files from this directory will be copy pasted to gates, so you are able to +use absolute path in rally tasks. Files will be in ~/.rally/extra/* diff --git a/rally-jobs/extra/mistral_wb.yaml b/rally-jobs/extra/mistral_wb.yaml new file mode 100644 index 00000000..ab20f7f1 --- /dev/null +++ b/rally-jobs/extra/mistral_wb.yaml @@ -0,0 +1,13 @@ +--- +version: "2.0" + +name: wb + +workflows: + wf1: + type: direct + tasks: + hello: + action: std.echo output="Hello" + publish: + result: $ diff --git a/rally-jobs/plugins/README.rst b/rally-jobs/plugins/README.rst new file mode 100644 index 00000000..33bec0d2 --- /dev/null +++ b/rally-jobs/plugins/README.rst @@ -0,0 +1,9 @@ +Rally plugins +============= + +All *.py modules from this directory will be auto-loaded by Rally and all +plugins will be discoverable. There is no need of any extra configuration +and there is no difference between writing them here and in rally code base. + +Note that it is better to push all interesting and useful benchmarks to Rally +code base, this simplifies administration for Operators. diff --git a/rally-jobs/plugins/__init__.py b/rally-jobs/plugins/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/rally-jobs/task-mistral.yaml b/rally-jobs/task-mistral.yaml new file mode 100644 index 00000000..ed5ba78b --- /dev/null +++ b/rally-jobs/task-mistral.yaml @@ -0,0 +1,47 @@ +--- + MistralWorkbooks.list_workbooks: + - + runner: + type: "constant" + times: 50 + concurrency: 10 + context: + users: + tenants: 1 + users_per_tenant: 1 + sla: + failure_rate: + max: 0 + + MistralWorkbooks.create_workbook: + - + args: + definition: "/home/jenkins/.rally/extra/mistral_wb.yaml" + runner: + type: "constant" + times: 50 + concurrency: 10 + context: + users: + tenants: 1 + users_per_tenant: 1 + sla: + failure_rate: + max: 0 + + - + args: + definition: "/home/jenkins/.rally/extra/mistral_wb.yaml" + do_delete: true + runner: + type: "constant" + times: 50 + concurrency: 10 + context: + users: + tenants: 1 + users_per_tenant: 1 + sla: + failure_rate: + max: 0 +