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:
parent
e4dd81a2c2
commit
568dd2cebb
29
rally-jobs/README.rst
Normal file
29
rally-jobs/README.rst
Normal 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
|
||||||
|
|
5
rally-jobs/extra/README.rst
Normal file
5
rally-jobs/extra/README.rst
Normal 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/*
|
13
rally-jobs/extra/mistral_wb.yaml
Normal file
13
rally-jobs/extra/mistral_wb.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
version: "2.0"
|
||||||
|
|
||||||
|
name: wb
|
||||||
|
|
||||||
|
workflows:
|
||||||
|
wf1:
|
||||||
|
type: direct
|
||||||
|
tasks:
|
||||||
|
hello:
|
||||||
|
action: std.echo output="Hello"
|
||||||
|
publish:
|
||||||
|
result: $
|
9
rally-jobs/plugins/README.rst
Normal file
9
rally-jobs/plugins/README.rst
Normal 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.
|
0
rally-jobs/plugins/__init__.py
Normal file
0
rally-jobs/plugins/__init__.py
Normal file
47
rally-jobs/task-mistral.yaml
Normal file
47
rally-jobs/task-mistral.yaml
Normal 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user