636 Commits

Author SHA1 Message Date
Jenkins
86f391965b Merge "Add designate support with domain scenarios" 2014-08-23 21:52:15 +00:00
Endre Karlson
e8d8099d4d Add designate support with domain scenarios
*) Add designate client
*) Add designate cleanup 
*) Add domain benchmarks 

Change-Id: I4d791411487788ba157f60c3f99aa48bf237b10b
2014-08-23 20:26:50 +00:00
Boris Pavlovic
6e560df126 Fix test_rps.test__worker_process test
Removing wrong check of amount of calls of isAlive
from this test

Change-Id: I241176ade79be236897e5d45b06dcc2f1cefba1a
Closes-Bug: #1360465
2014-08-23 14:46:07 +04:00
Jenkins
d091b3bfc8 Merge "Refactoring rps runner unit tests" 2014-08-22 15:22:16 +00:00
Boris Pavlovic
6ad67148ec Fix failing tests in gates
This tests actually were wrong since begging. Cause __lt__ and __gt__
stuff works only in case of instance of classes.
So I really don't know why this worked at all

Add any_order=True to some of assert_has_calls

Closes-Bug: #1358744

Change-Id: Ia699611c14e25b4a1d4592304192c444ba26f853
2014-08-21 23:12:09 +04:00
Jenkins
bd009a5c1c Merge "Add new benchmark type VolumeType" 2014-08-20 11:35:03 +00:00
Anusha Kadambala
04f8753934 Add new benchmark type VolumeType
This adds new resource type that allows to convert VolumeType
name to id before creating load

Remove useless tests as well

Change-Id: I429e261227cf48b5c744836204bbeb972bfdab6a
2014-08-20 03:56:01 +04:00
Jenkins
c0874b2667 Merge "Add "rally info" command" 2014-08-19 20:26:26 +00:00
Oleh Anufriiev
612bb23ce2 Refactoring rps runner unit tests
Function worker_thread is moved out of worker_process cause difficult to
  test it when it's nested.

Change-Id: I36d4fa91cfc96769087011f56a848e5987bdba24
2014-08-19 16:25:25 +03:00
Mikhail Dubov
6f1a895e24 Add "rally info" command
Here we add a new "rally info" command, which, based on the input,
prints descriptions for different entities in Rally (in this patch -
benchmark scenarios & scenario groups, more entities are to follow
(deployment engines etc.)). This command makes use of docstrings by
parsing them and printing them in CLI in human-readable form.

The command should be called as "rally info find <query>" (or, in case
of an explicit parameter setting, "rally info find --query=<query>").

Samples:

    $ rally info find create_meter_and_get_stats
    CeilometerStats.create_meter_and_get_stats (benchmark scenario).

    Test creating a meter and fetching its statistics.

    Meter is first created and then statistics is fetched for the same
    using GET /v2/meters/(meter_name)/statistics.

    Parameters:
        - name_length: length of generated (random) part of meter name
        - kwargs: contains optional arguments to create a meter

    $ rally info find Authenticate
    Authenticate (benchmark scenario group).

    This class should contain authentication mechanism.

    For different types of clients like Keystone.

Change-Id: Icf3545c0666d99ab7fd0eaabce8bbe572834e485
2014-08-18 12:08:30 -04:00
Jenkins
991563de70 Merge "Adding http_requests scenario" 2014-08-18 11:21:21 +00:00
Kumar Rishabh
d4cda5b18a Adding http_requests scenario
This patch adds http_requests scenario which takes a url and an
optional response code and returns the response code of the url
comparing it with expected response

bp http-based-benchmarking

Change-Id: I35373616a266f6bb6410df8afdb23a9229643812
2014-08-18 03:17:54 +00:00
Tzanetos Balitsaris
ee03e48bc6 Fix semantic validation of context images
In the semantic validation of the images context it was assumed that the
parameter users is a dictionary that contains the key endpoint, whereas
users is a list of Clients objects. This was leading to a validation
error and any benchmark scenario that had in its configuration file this
context was failing.

Closes-Bug: 1356336
Change-Id: I6452a47975cd3adcd31ec7b7c4ca0159aec8776f
2014-08-17 23:27:38 +03:00
Rafi Khardalian
103d7cc346 Do not assume networks should be assigned
There are several places within the Nova benchark scenarios where we
are assuming networks should be assigned. This breaks a variety of
different deployments. Instead of always assigning a network, do so
based on whether a new scenario argument of auto_assign_nic=True.

Change-Id: I4e2dd58629f3c07b9928a95879056a79382fcf8b
Closes-Bug: #1353622
2014-08-13 12:22:24 -07:00
Swapnil Kulkarni
70a90e01c9 Update the scenario_base to base in benchmarks
Keep the scenario_base only on places where required.
Rest keep it as base instead of scenario_base

Change-Id: Ib7887c0a0b65d67a814222e0786fc228cd5bd2ca
2014-08-13 16:13:02 +00:00
Jenkins
72e2cf1566 Merge "Added Sahara Clusters scenario" 2014-08-13 15:20:56 +00:00
Jenkins
619e77fe9f Merge "Refactor benchmark/context/quota.py" 2014-08-13 11:07:27 +00:00
Swapnil Kulkarni
39a7857e6b Refactor benchmark/context/quota.py
Created new  directory context/quotas/
Moved to this directory quota.py module
Saperated NovaQuotas, CinderQuotas, NeutronQuotas
in separated files

Similar process done for tests refactoring

https://trello.com/c/ycDv6GD3

Change-Id: I322313d2817a071ab02a386b0fe0d397e3e3cdf0
2014-08-12 17:33:11 +00:00
Nikita Konovalov
e2a3e1c941 Added Sahara Clusters scenario
The scenario creates and deletes a Hadoop cluster.

Change-Id: I1280f5f3f4cd7415788a3e474dd1852c68a3c35c
2014-08-12 15:12:12 +04:00
Boris Pavlovic
40cb090df6 Remove magic() method from context manager
This magic methods brings a lot of issues:
*) Unclear code

*) Recursion and with construction that makes it hard
to understand traces & as well to have a proper workflow

*) Uncontrollable process of creation and deletion of context:
E.g. it's super hard to "abort" creation of context in the middle

*) create() & cleanup() are inseparable => which makes it impossible
to create "persistance context", that have to run separately
setup() & cleanup()

Change-Id: I071c53900441121767ac3550c5ee5790a358ae73
2014-08-12 01:35:23 +00:00
Jenkins
24218d9ff8 Merge "Extend sla output result" 2014-08-11 21:15:29 +00:00
Tzanetos Balitsaris
54d793fb25 Add required_contexts validator
Add a validator that checks if a benchmark scenario has defined in its
configuration file the context(s) that it requires to run first.

Example:
@validation.required_contexts("context1", "context2")
def benchmark_scenario():
  pass

Change-Id: Id83a6ff93acde2abbb29ec8351210e38d725ce48
2014-08-11 16:41:43 +04:00
Tzanetos Balitsaris
54dbf08b86 Modify config semantic validation of benchmark engine
Pass to validation the full benchmark configuration instead of
extracting parts of it (ex. passing only args).

Change-Id: I8f4cf3e2e8a0392612a0d0828a9c3bd6ab3da90f
2014-08-10 15:48:36 +03:00
Aswad Rangnekar
2fb4ba41d5 Split user and admin cleanup to 2 separate classes
Partially implements: blueprint benchmark-context-cleanup-refactor
Change-Id: I3ba0deeb5a2793b8c45f6160fe0eda22250a1ece
2014-08-08 18:04:19 +03:00
Jenkins
b1ceff67bf Merge "Adds --json,--pprint flags to cmd" 2014-08-08 14:31:18 +00:00
Rohan Kanade
61842b86e0 Adds --json,--pprint flags to cmd
* Add flags to output cmd results in json(--json)
  and pretty print(--pprint) format

Change-Id: Id4331761e4f9c4bb6735745ed8461eaa671d0945
Closes-Bug: #1341501
2014-08-08 13:30:11 +02:00
Oleh Anufriiev
7a3ed21049 All scenario runs time measurement
Partially implements: blueprint collect-runtime-duration

Change-Id: I2708a5f915d5b13948f50dfad26b2463b9d5249b
2014-08-08 12:25:54 +03:00
Jenkins
3609d51a14 Merge "Refactor Move atomic actions from benchmark scenarios" 2014-08-07 12:47:11 +00:00
liyingjun
334ccadef6 Extend sla output result
Add details to sla result output.

Change-Id: I550135b9742bc3f5f44c63bb123db387f599e0e0
2014-08-07 01:38:46 +08:00
Swapnil Kulkarni
132722a76d Refactor Move atomic actions from benchmark scenarios
- Move atomic actions from benchmark/scenario/utils.py
to benchamrk/scenario/base.py
- Removed the scenario_utils imports
- Updated the scenario_base imports and related changes in
all rally files.

Closes-Bug:#1353464
Change-Id: I7f4d3e4b1d3650d97af08e5aca38fa80cc9f6fac
2014-08-06 15:44:20 +00:00
Jenkins
df170ccc06 Merge "Mock open to prevent file creation" 2014-08-06 08:57:08 +00:00
Swapnil Kulkarni
d9c466c08e Update rally neutronclient ca_cert option
Recently the neutronclient constructor cacert parameter
has been changed to ca_cert causing rally gate failures.
Fixed it.

Neutron-client Change Id: I9d0395d405b9fbe4db08ad3727f9413be7b82811
Change-Id: Id616d0f315f247d4f89ee779c4424bc93cc208db
Closes-Bug:#1353268
2014-08-06 06:29:02 +00:00
Sergey Skripnick
2d210ffc3c Mock open to prevent file creation
Some unit tests does create files in root of project

Change-Id: I9b9907177ad1d25142d85538a727a5e8eab99df0
2014-08-05 13:50:49 +03:00
shiyanchdev
c2453d294b Adds deleting scenarios for Neutron:
- NeutronNetwork.create_and_delete_networks

- NeutronNetwork.create_and_delete_subnets

- NeutronNetwork.create_and_delete_ports

blueprint benchmark-scenarios-for-neutron

Change-Id: I585b76935644712c019a9d5502637fbad6d4d2f0
2014-08-04 09:19:41 +00:00
Jenkins
048a4c4d3f Merge "Added Sahara Image context" 2014-08-01 17:29:03 +00:00
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
Nikita Konovalov
9c1338dd9d Added Sahara Image context
This context will be responsable for uploading and tagging an image for
Sahara clusters' benchmarks.

Change-Id: I9b89805e35f48212ac49ec94aa02ffc14d3ab535
2014-07-31 13:51:26 +00:00
Jenkins
d3b93b8e1f Merge "Added Sahara Node Group Templates scenarios" 2014-07-31 12:15:16 +00:00
Nikita Konovalov
f166abd61f Added Sahara Node Group Templates scenarios
One scenraio creates two types of node group templates and executes a
list operation.

The other creates and deletes popular types of node group templates.

Change-Id: Ie37151bb1ff195e6e0a67d85e693333da68f96e9
2014-07-31 14:28:30 +04:00
Jenkins
3a00d43ead Merge "Adds html result generator for tempest runs" 2014-07-28 16:27:03 +00:00
Jenkins
36f710af91 Merge "Add resize-server for nova benchmark" 2014-07-28 10:57:31 +00:00
Jenkins
b7ac22c47b Merge "Periodic runner refactoring" 2014-07-28 10:49:32 +00:00
Li Tianqing
2fa77bf92c Add resize-server for nova benchmark
Add resize-server for nova benchmark.

bp benchmark-scenarios-for-nova

Change-Id: I38373e8dab01ab3f9701ad9f85594fd4a183c950
2014-07-28 08:55:48 +00:00
Anton Frolov
ed571ece7a Add support for Keystone API v3
bp keystone-v3-support
Change-Id: Iffdff6ee2e79b7052f7a58af933e398090879224
2014-07-28 11:26:44 +04:00
Jenkins
d139166104 Merge "Reduce number of points in generated charts" 2014-07-25 23:29:10 +00:00
Rohan Kanade
a14cb12fad Adds html result generator for tempest runs
* Adds "rally verify results --html --output-file output_to_html_file" flag to generate html result from
  tempest runs
* json2html generates html report similar to subunit2html using raw json
  from rally database
* Use mako templates for html generation

Change-Id: Ib390fa02aba4696bacaa4e4ec8b8c2481a54b0d2
Implements: blueprint tempest-subunit-to-json
2014-07-25 12:10:30 +02:00
Jenkins
648f6813bf Merge "Updated _boot_server() to handle floating ip/external networks" 2014-07-25 01:29:01 +00:00
Jenkins
7501233c50 Merge "Fix cleaning up neutron resources" 2014-07-24 16:31:04 +00:00
Oleh Anufriiev
65d882c2b3 Periodic runner refactoring
'preiodic' runner renamed to rps (runs per second).
  Extensible pool of multiprocessing.Process was implemented instead
  of using constant length multiprocessing.Pool. That should decrease memory
  usage on large iterations and related errors.

Change-Id: I6e367ea30d89d5d0e7ba212ed22e8658421ac9bd
2014-07-24 18:58:59 +03:00
Jenkins
b1692a0716 Merge "Refactored test_images.py and images.py" 2014-07-24 13:41:49 +00:00