21 Commits

Author SHA1 Message Date
liyingjun
37e502bd77 Add db model and api for worker
The db model is called 'Worker', it's used to store the rally worker
service status. And the following db apis are added:
 * register_worker
 * get_worker
 * unregister_worker
 * update_worker

Change-Id: I38c792cc133dbace10eb7f2d4d202ca05ec7f9cc
2014-08-01 12:08:29 +08:00
Rohan Kanade
61306daa8e Remove use of random uuid from unit tests
Closes-Bug: #1340015
Change-Id: I07eb638fc2e11c136cbd124538a5dd7ea6120978
2014-07-21 14:25:13 +02:00
Sergey Skripnick
b0a2a14e47 Add scenarios directory for ci
This directoy contains scenarios to be run by jenkins.

Add script which runs specified scenario and plot graph.

Add abbility to specify cloud by --name in "rally use deployment"

Removed rally/exercises

Change-Id: I7803a6950ec5fce3be11277ae0e4d830f0cf6bad
Related: blueprint rally-gate-jobs
2014-04-23 20:45:52 +03:00
Andrey Kurilin
7b26c8dbdb Adds saver for results from rally verify
Better integration with tempest can be achieved by analyzing output
of testr. This patch provides parsing testr output and saves results
into database.

Blueprint tempest-verification
Closes-Bug: #1302475

Change-Id: I110bc115bd597df54499ac295d836a87411c4c80
2014-04-08 00:34:45 +03:00
Hugh Saunders
1046a985b7 Move rally.test to tests.test
This will separate totally tests/code base directories

Change-Id: I2089f13d9f7e864ee7bb03ebfd937049c7acb0a5
trello: https://trello.com/c/2pzdYz6Z
2014-01-06 16:24:00 +00:00
Hugh Saunders
77fd143395 Show results of last task without requring user to lookup UUID
Currently to view the results of the last task/benchmark a user must
list tasks, copy a UUID, then query for that UUID. This commit alows the
user to specify 'last' instead of a UUID to retrieve the results of the
last task.

Change-Id: I8ffe1bb8d925a6a114e4dd12be2f1af13e1bfced
2013-12-30 10:45:34 +00:00
Sergey Skripnick
53e5f8498b Add parent field to deploy object
This is necessary for engines which doing subdeploys.

blueprint multihost-deploy

Change-Id: Ibf2ea78863c36f7fddcde8d9bb46d2855482bb6d
2013-12-23 19:11:38 +02:00
Ilya Kharin
18aa88bca7 Separate deployments from tasks
The patch introduce deployments as independent operations. The command
line interface supports of creation, deletion and recreation of
deployments. The creation of the task requires the id of a deployment.

The patch also separate samples of configuration to two types: a
deployment and a task.

Change-Id: I5121532057909040e6ab6d6b2cbd6d06812975cb
Implements: blueprint independent-deploy
2013-12-11 18:15:30 +00:00
Ilya Kharin
57118703d9 Resource model with DB API
This patch involve necessary stuff for resource tracking in server
providers. There are Resource model and object with corresponding DB
API.

blueprint db-resource-track

Change-Id: I349bd8dba8f930edfed299a928e6bfc62f21dd17
2013-12-06 15:44:06 +04:00
Ilya Kharin
a94279e2e8 Make Deploy and Task objects similar
The objects have got a similar interface methods: __init__, get, delete,
delete_by_uuid. The API of DB was also changed.

Change-Id: I7c5962c14b2dd701b9c474d8c5cd8b5198621dd5
Implements: blueprint independent-deploy
2013-11-20 12:47:46 +04:00
Ilya Kharin
44e81c10d8 Move task and deploy modules in rally.objects
Change-Id: I144d02333b6f8cb42a6a13e38de5d58b755bc890
Implements: blueprint independent-deploy
2013-11-20 12:47:43 +04:00
Ilya Kharin
554a0993e6 Abstract out DB operations on deploys in db.deploy
The db.deploy module contains the Deployment class with an abstract
methods. Those methods provides high levels operations on the
deployments.

Change-Id: Ibca797832ebbc96247703cdfc8b0958d10a71ddd
Implements: blueprint independent-deploy
2013-11-15 13:23:39 +04:00
Ilya Kharin
c67e472541 Added Deployment model
This patch is the first step of the separation of deployments from
tasks. The Deployment model represents an installation of OpenStack.
This model is related with the Task model through a many-to-one
relation. Now the relattion is optional because Task.deployment_uuid can
be nullable. It will be fixed in next patches.

The db.api was extended by a deployment function. The functions provide
operations to create, get, update and delete deployments.

This patch also adds index for the field uuid of the Task model.

Change-Id: I41bef0ccebdc27cd97b1db663ff3d8a9f0a5509d
Implements: blueprint independent-deploy
2013-11-15 13:23:39 +04:00
Ilya Kharin
2ef1f31e49 Canonical form of the test_db_api.py filename
Change-Id: I03dd9ebb3c27899ef4ba5cdd9f4e5d3a250dd931
2013-11-15 13:23:39 +04:00
Ilya Kharin
edece060de Delete task by command
The task is removed together with related results. In addition to the
removal operation the change contains atomistic DB API method to
retrieve results of a task.

bp cli-task-improve

Change-Id: I58f10e28a8d12a63f903bb26b2ef464719ad8f0b
2013-11-06 15:23:08 +04:00
Ilya Kharin
df702334c3 Delete objects completely
The soft deletion of objects in data store is not suitable for the
benchmark. The testing results became irrelevant after removal.

The rally.db.api.task_list ceases to support the active parameter.

Implements: blueprint rally-hard-delete

Change-Id: Ia9477423cebd26499e968f923961ee0f29685d8a
2013-10-30 16:08:53 +04:00
Sergey Skripnick
5d43729530 Rename NoDBTestCase to TestCase
It is more clear to use TestCase for all tests, and DBTestCase for DB tests.
Also removed some strange code from rally/tests.py

Change-Id: Ib0ea34850c4dd5d6671b00114d570650190d09a4
2013-10-25 11:49:01 +03:00
Boris Pavlovic
1f4d6f3201 Cleanup db.TaskResource model
*) rename column `name` to `key`
*) change type of `key` column from plain text to json
*) remove convertion string to json and back from other parts

Change-Id: I960a5e06b031d024709906133b4bdb7387e07644
2013-10-14 06:15:31 +04:00
Boris Pavlovic
b0336c99ce Remove vim header
Do not use vim header

Change-Id: Idc06835b0a86c1e4a79b596318e8f73e861247bd
2013-10-13 16:49:37 +04:00
Boris Pavlovic
aa2d7a9cc6 Store test scenario results in DB
*) Add new table TaskResult to store results of each test scenario

*) Add 2 new methods to DB:
task_get_detailed - returns task with results
task_result_create - create result record for task

*) Add to CLI new method that shows detailed infromation about task.

*) Add new method to Task class to append results

*) Store results into DB

implement bp db-task-track

Change-Id: I52dc6c76d44230b0685773a77601700e3d0b4f91
2013-10-09 17:04:47 +04:00
Boris Pavlovic
4a28668542 Move tests to root dirrectory and fix tox
Move rally/rally/tests -> rally/tests

Use sqlite in memory to be able to run tests parallel
2013-08-28 19:08:07 +04:00