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
This commit is contained in:
Boris Pavlovic 2015-02-06 21:27:25 +03:00
parent e4dd81a2c2
commit 568dd2cebb
6 changed files with 103 additions and 0 deletions

29
rally-jobs/README.rst Normal file
View File

@ -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

View File

@ -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/*

View File

@ -0,0 +1,13 @@
---
version: "2.0"
name: wb
workflows:
wf1:
type: direct
tasks:
hello:
action: std.echo output="Hello"
publish:
result: $

View File

@ -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.

View File

View File

@ -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