2253 Commits

Author SHA1 Message Date
Roman Vasilets
e02d83ca41 Fix random fail on rally-ci cli tests
To see what we will get randomly on any patch please go to
http://r-ci.tk/logs/zXqaxKhryL/rally-dsvm-pg-py34-cli/console.log

Change-Id: If03cc65770e4aaddb04210a35ae8f17c825657fb
2016-05-11 17:35:25 +03:00
Arata Notsu
9f1725b2df Add import_opt for CONF.benchmark.glance_image_delete_*
As of I83b46e223e85306b0e54f1d19cbbc7f21489e759,
glance_image_delete_timeout and glance_image_delete_poll_interval
have been moved from rally.plugins.openstack.wrappers.glance to
rally.plugins.openstack.scenarios.glance.utils. So, if a module
using the options doesn't import the glance.utils module, we should
add import_opt for the options. Otherwise NoSuchOptError might be
raised when the options are being used.

Closes-Bug: 1579855
Change-Id: Ia05be0997680e2c91dc5d19bc6e36d70c6b07690
2016-05-10 03:21:21 +09:00
Yaroslav Lobankov
3832199890 [Verify] Add 'version' arg to install/reinstall cmd
For now Rally always installs Tempest from the master branch. It is not
very convenient because Tempest may be broken in the master branch and
it would be very useful to use some commit or tag for Tempest.
So this commit adds a possibility to checkout the specified commit or
tag before Tempest installation.

Change-Id: Icfbb4221005466139c14d3f4aae34bbb3e013982
2016-05-07 10:51:34 +00:00
Jenkins
d4185281ac Merge "[Context] Fix side effect changes of context config" 2016-05-06 15:27:42 +00:00
Jenkins
3926b958b9 Merge "[Common] Add class rally.common.utils.LockedDict" 2016-05-06 15:23:19 +00:00
Jenkins
aa5a7b49e3 Merge "fix bug on booting server from volume" 2016-05-06 14:09:59 +00:00
chenhb-zte
fbe7bf1923 fix bug on booting server from volume
The arg of image must be None,when booting server from volume.
Otherwise still boot server from image

Change-Id: I348c5971f2375f8de08b9fd8f021ea09906ff844
Closes-Bug: #1578556
2016-05-06 13:59:59 -04:00
Alexander Maretskiy
dcc81a6fb7 [Context] Fix side effect changes of context config
Since context configuration passed to Context.__init__() is
a mutable type (dict or list), sometimes we have unexpected
changes done by unpredictable code (for example, in wrappers).

This patch uses types `common.utils.LockedDict' and `tuple'
for locking this data from further changes.

Also there was missing unit test for Context.__init__()
with DEFAULT_CONFIG set - this unit test is added.

Change-Id: Ic1f11281fcf95b35d9fbb3ee82cb1d67f1d8abd7
Closes-Bug: #1570328
2016-05-06 12:45:07 +03:00
Jenkins
2557b657bc Merge "Remove unused requirements" 2016-05-04 16:02:05 +00:00
Andrey Kurilin
81fc220c96 Remove unused requirements
Change-Id: If2f936d116f8f7c44a63c5a118326026be9ecfcd
2016-05-04 17:14:03 +03:00
Jenkins
7ec6dedc9c Merge "Fix load duration calulation in case of 0 iterations were run" 2016-05-04 02:40:43 +00:00
Jenkins
2dd57ae830 Merge "[Common] Move code from utils.percentile to PercentileComputation" 2016-05-04 01:09:28 +00:00
Jenkins
2be01f6c97 Merge "[Verify] Don't install Tempest when rally verify start" 2016-05-03 17:48:00 +00:00
Jenkins
55770b7be0 Merge "Fix randomly fail keystone roles tests" 2016-05-03 14:01:19 +00:00
Jenkins
80a19cb60b Merge "Use glance wrapper where appropriate" 2016-05-02 16:39:24 +00:00
Roman Vasilets
0213e03b5e Fix randomly fail keystone roles tests
Add any_order=True where the order can be differ from run to run,
in case of usage broker.

Change-Id: I34f2d8cc530cf5f9707942fb0ba3e1c2bfbe433e
2016-05-02 09:14:55 +03:00
Jenkins
4d74c48143 Merge "Fix keystone unit tests" 2016-04-27 21:24:56 +00:00
Roman Vasilets
5b59e0548e Fix keystone unit tests
If you run `tox -e py27` you'll see redundant output to user:
  * Failed to consume a task from the queue:
It was printed multiple times. To found the place where it was
occured you may run exact unit test.
Fix the test by mock proper logging.

Change-Id: I6fa99e93c0fe680fc7decf62c701032ad92bf32a
2016-04-27 18:08:39 +03:00
Jenkins
2f83b69a47 Merge "Fix randomly failed unit test" 2016-04-27 14:38:14 +00:00
Jenkins
72c0107586 Merge "Add basic support for Senlin service" 2016-04-27 14:36:16 +00:00
Jenkins
13513e8640 Merge "Fix randomly failed unit test" 2016-04-27 14:08:15 +00:00
Jenkins
cf80371073 Merge "Add configs to MapR plugin" 2016-04-27 14:08:07 +00:00
Sergey Skripnick
44c5bd28bb Fix randomly failed unit test
This test is calling cleanup method that uses publish/consume approach.
Threads created by this method may be completed in any order and test is
failing because of wrong order of calls.

Fixed by ignoring order of calls.

Change-Id: Id7344d1a52c0757184bf1793510fe60cc5a78ce2
2016-04-27 15:12:48 +02:00
Mikhail Lelyakin
197e4674ed Add configs to MapR plugin
Added MapR configs to rally.

Change-Id: Ie5785cf3f2e2c1a4aefd70a99dc5b21e12c95775
2016-04-27 11:35:46 +03:00
Jenkins
12b87c5d4d Merge "[Verify] Removing '--tempest-config' arg from 'reinstall' command" 2016-04-26 16:24:28 +00:00
Jenkins
5b4b9a5ab5 Merge "Store iteration number in context obj" 2016-04-26 13:45:59 +00:00
Jenkins
cadd4e118f Merge "Fix Keystone wrapper argument order" 2016-04-26 09:18:13 +00:00
Chris St. Pierre
b4762cfdb1 Fix Keystone wrapper argument order
V2 and V3 accepted arguments to (add,remove)_role in different
orders. Seriously.

Change-Id: Ie45b81fe21e28648200d0dc5112a615940975285
2016-04-25 08:07:34 -05:00
Jenkins
a950f64ee4 Merge "disable urllib3 warnings only if the library provide them" 2016-04-23 11:35:33 +00:00
Jenkins
c1f1d59353 Merge "Add the comment about cyclic reference" 2016-04-23 10:48:41 +00:00
Jenkins
388f91c224 Merge "[DB][TaskResults] Save durations stats in task results" 2016-04-22 14:04:31 +00:00
Jenkins
24b1411384 Merge "[Scenario] Remove unnecessary cleanup" 2016-04-21 15:46:18 +00:00
Jenkins
0b33783020 Merge "Transform DB layer to return dicts, not SQLAlchemy models" 2016-04-21 15:17:24 +00:00
Chris St. Pierre
2414edca21 Use glance wrapper where appropriate
This makes several places (Nova, Cinder, verify) use the glance
wrapper while accessing glance, which fixes various Glance v2
bugs.

Change-Id: I83b46e223e85306b0e54f1d19cbbc7f21489e759
Co-Authored-By: Srinivas Sakhamuri <srini.openstack@gmail.com>
Co-Authored-By: Yaroslav Lobankov <ylobankov@mirantis.com>
2016-04-21 13:53:49 +03:00
Alexander Maretskiy
ed7728db78 [Scenario] Remove unnecessary cleanup
NovaFlavors.list_flavors does not create any resources
so "nova" cleanup is not required.

Change-Id: I680c3210f8aebba27fed30fc6a4f72479b18d05f
2016-04-20 17:25:07 +03:00
Jenkins
58ab7a79f5 Merge "[Docs] use openstack theme outside rtd" 2016-04-20 13:29:09 +00:00
Andrey Kurilin
0a777912d0 [Docs] use openstack theme outside rtd
Rally team posts documentation at two places:
- http://rally.readthedocs.org/en/latest/ (preferable place)
- http://docs.openstack.org/developer/rally/

Most projects post docs at docs.o.o with oslosphinx theme. Since default
theme of sphinx is not so good, let's use official openstack theme instead.

Theme from oslosphinx has several issues:
- it is hard to find the link to home page of project documentation
- there is no sidebar with global content

Based on these two issues let's extend oslosphinx theme a bit.

Change-Id: Ifc75b430b7335c6a87a9102810ec33a5a913c43a
2016-04-20 16:03:13 +03:00
Jenkins
abb69a285f Merge "Fix empty config error message" 2016-04-20 11:17:56 +00:00
Jenkins
84e500d65d Merge "Use Broker Pattern for Keystone roles context" 2016-04-20 09:46:00 +00:00
Jenkins
2ca9970737 Merge "De-duplicate consume() for delete in users context" 2016-04-20 09:14:47 +00:00
Doug Hellmann
7ddae0f1f4 fix up the formatting of the readme for the announce script
The release announce script looks for links using a regex. Update the
link block section of the README to match that regex.

Change-Id: Ie76ab2d3a95a4921823c39f04579791862c2dc06
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-04-19 15:18:34 -04:00
Chris St. Pierre
2f780080cc Fix empty config error message
Broken by bc819cb, which merged shortly before 8c2b6c1.

Change-Id: I5b95993ee69a2082b3290aafe93643855ff7f56a
2016-04-19 11:21:21 -05:00
Jenkins
b4ddf92ddf Merge "[spec] Rally Verification refactoring" 2016-04-19 16:21:01 +00:00
Andrey Kurilin
36c54b86ca Release notes for 0.4.0
Change-Id: I29f214772d538f242cc31f98c93428d6a242dce9
2016-04-18 12:20:42 +03:00
Jenkins
e598a569ee Merge "[Verify] Fixing issue with discovering images" 2016-04-18 09:04:10 +00:00
Jenkins
aab3f6cd46 Merge "[Verify] Fixing 'xfail' mechanism and whole test case failure issue" 2016-04-16 19:38:11 +00:00
Piyush Raman Srivastava
bc7cd3fb02 De-duplicate consume() for delete in users context
De-duplicate the consume() function in _delete_tenants()
and _delete_users() in users context

Change-Id: Ib74a6a25fc22aa48281dc1efc7e8aaed4bdf58e6
2016-04-15 22:58:00 +05:30
Jenkins
2211b509ad Merge "Updated from global requirements" 2016-04-15 10:49:00 +00:00
Jenkins
6313619b4a Merge "Isolate scenario args between iterations" 2016-04-15 10:41:22 +00:00
Piyush Raman Srivastava
b4344e9da2 Use Broker Pattern for Keystone roles context
Parallelize "role" allocation to users using
threads to reduce Rally role context execution
time.

Change-Id: I667dd508defbf7629178c351aa819ca59c0625ca
Closes-Bug: #1501928
2016-04-15 15:46:49 +05:30