From f90577d15d067ebb0275dec0bfff0af2dc8921f3 Mon Sep 17 00:00:00 2001 From: Gal Sagie Date: Wed, 9 Dec 2015 13:55:04 +0200 Subject: [PATCH] Add rally integration point This folder is used to define the rally tests scenarios run for Kuryr gate job. This also allow to create Kuryr specific rally plugins and use them in scenarios in the gate job. implements blueprint: rally-kuryr-testing Change-Id: I73078fffbf5707740a58be70902d5cb5a95fc074 --- rally-jobs/README.rst | 31 +++++++++++++++++++++++++++++++ rally-jobs/extra/README.rst | 6 ++++++ rally-jobs/kuryr.yaml | 17 +++++++++++++++++ rally-jobs/plugins/README.rst | 9 +++++++++ rally-jobs/plugins/__init__.py | 0 5 files changed, 63 insertions(+) create mode 100644 rally-jobs/README.rst create mode 100644 rally-jobs/extra/README.rst create mode 100644 rally-jobs/kuryr.yaml create mode 100644 rally-jobs/plugins/README.rst create mode 100644 rally-jobs/plugins/__init__.py diff --git a/rally-jobs/README.rst b/rally-jobs/README.rst new file mode 100644 index 00000000..b6f0a60b --- /dev/null +++ b/rally-jobs/README.rst @@ -0,0 +1,31 @@ +Rally job related files +======================= + +This directory contains rally tasks and plugins that are run by OpenStack CI. + +Structure +--------- + +* plugins - directory where you can add rally plugins. Almost everything in + Rally is a 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 paths in rally tasks. + Files will be located in ~/.rally/extra/* + +* kuryr.yaml is a task that is run in gates against OpenStack with + Kuryr and Neutron deployed + +Useful links +------------ + +* More about Rally: https://rally.readthedocs.org/en/latest/ + +* Rally release notes: https://rally.readthedocs.org/en/latest/release_notes.html + +* How to add rally-gates: https://rally.readthedocs.org/en/latest/gates.html + +* About plugins: https://rally.readthedocs.org/en/latest/plugins.html + +* Plugin samples: https://github.com/openstack/rally/tree/master/samples/plugins diff --git a/rally-jobs/extra/README.rst b/rally-jobs/extra/README.rst new file mode 100644 index 00000000..aab343c5 --- /dev/null +++ b/rally-jobs/extra/README.rst @@ -0,0 +1,6 @@ +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/kuryr.yaml b/rally-jobs/kuryr.yaml new file mode 100644 index 00000000..c4a764e5 --- /dev/null +++ b/rally-jobs/kuryr.yaml @@ -0,0 +1,17 @@ +--- + NeutronNetworks.create_and_list_networks: + - + runner: + type: "constant" + times: 40 + concurrency: 20 + context: + users: + tenants: 1 + users_per_tenant: 1 + quotas: + neutron: + network: -1 + sla: + failure_rate: + max: 0 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