3951 Commits

Author SHA1 Message Date
Andrey Kurilin
c385fe2544 launch tests in parallel
Change-Id: Ia1a228672e33c997baf3c234c1bc3c1f9a336d31
2016-07-27 17:24:46 +03:00
Jenkins
1bdf4314ca Merge "Make our docker-image more user-friendly" 2016-07-26 15:29:02 +00:00
Andrey Kurilin
2c34f34ac4 Make our docker-image more user-friendly
- move from ubuntu:14.04 base image to ubuntu:16.04 .
  Ubuntu 16.04 is current/latest LTS release. Let's use it.

- pre-install vim
  It is a "feaute request". Users like to experiment and modify samples
  inside container.

- pre-install bash-completion
  Rally provides bash-completion script, but uit doesn't work without
  installed `bash-completion` package.

- remove '-e' from execution of `echo`.
  This flag is not required, even more it is redundant.

- add sudo rights to rally user
  Rally is a pluggable framework. External plugins can require installation
  of additional python or system packages.

Change-Id: I9540343adbb48fded5531bd3c819396cdb7328df
2016-07-26 16:28:18 +03:00
Roman Vasilets
35c149c1a2 Refactor osclients
Now keystoneclient are separeted into 2 parts: working with resources
and authorization part. Secand part was moved into keystoneauth1 repo.

That patch is intended to drop depraceted usage of keystoneclient for
authorization in favor of keystoneauth1. Furthermore, in the next patch
we are going to use keystoneauth1 session for initialization of clients
where its possible.

Also :
  * Remove deprecated register decorator from osclient
  * Use _get_endpoint() in proper places
  * Refactor create_client in Keystone
  * Refactor unit tests in test_osclients

Change-Id: If67dffcd27f9bc3e7484d02eac62035c82415c3a
2016-07-25 12:49:45 +03:00
Jenkins
f8a86b4489 Merge "Add default role name to rally config" 2016-07-25 09:35:36 +00:00
Jenkins
482c8a49ce Merge "Fix test name to help to reveal its intend" 2016-07-24 10:39:08 +00:00
Jenkins
0caff66c49 Merge "Add the unit-test of add_and_remove_user_role" 2016-07-24 10:38:22 +00:00
LIU Yulong
a3244da2ee Add default role name to rally config
If the OpenStack env does not have a 'member' role, the
rally task will get a WARNING: Unable to set member role
to created user. And then task will stop due to the 401
Unauthorized error.

This patch adds default role to rally config. So for each,
test, rally will create the test user with the set
keystone_default_role.

Closes-Bug: #1595081

Change-Id: Ic97ce50f40d3a3e7f9e8fc6ef142c5465ab41a51
2016-07-23 08:49:33 +08:00
Jenkins
ec7995d870 Merge "Added auto-configure for node group" 2016-07-22 13:18:31 +00:00
Jenkins
976d1be504 Merge "Disable 'rally-manage db downgrade'" 2016-07-22 09:46:46 +00:00
Danny Choi
c13ca75e6d Fix simple typo mistake
Change-Id: I0cd4752beecf16a920367a085acf4701fdc8d998
2016-07-21 16:38:31 -04:00
Illia Khudoshyn
77ad20a768 Disable 'rally-manage db downgrade'
Change-Id: I54e74c6c2bebbaf3468c0fa4768840f4ebbca3bb
2016-07-21 20:27:04 +00:00
Jenkins
14ed333a36 Merge "Sync requirements" 2016-07-21 14:12:20 +00:00
Jenkins
0b8dfdaea6 Merge "Add cover-master to gitignore list" 2016-07-21 12:16:33 +00:00
Jenkins
7677eccc2b Merge "Fix output of small floats in results" 2016-07-21 10:54:53 +00:00
yanyanhu
815cbdbfa4 Add cover-master to gitignore list
Both cover and cover-master directories will be created
during coverage test. This patch add cover-master to
gitignore file to avoid including coverage test result
into commit.

Change-Id: I3e330630454ce19c7aa3d41993f976c6082726eb
2016-07-21 06:16:42 -04:00
Andrey Kurilin
27f8a25ec4 Sync requirements
new rally version was released, so we can remove upper limits for requirements

Change-Id: I31b2779a48edb3ff456652e9cc31f23639561880
2016-07-21 13:11:30 +03:00
Jenkins
41b26f4ab5 Merge "[Verify] Improvements in rally verify installplugin cmd" 2016-07-21 10:00:36 +00:00
chenhb-zte
569b11bc84 Add the unit-test of add_and_remove_user_role
Add a unit-test case test_add_and_remove_user_role
for add_and_remove_user_role.

Change-Id: I170bbab7581bbeb431e0fc1451288e1deff74538
2016-07-21 08:14:45 +08:00
Andrey Kurilin
117952cbbd add release notes for 0.5.0
Change-Id: I0a13d2cd213a14ae6da2b42853501b16b18479c3
2016-07-20 17:59:09 +03:00
Andrey Kurilin
dcadf32a63 Modify rally requirements while preparing to release
Sync requirements with OpenStack global-requirements and set maximum
supported versions.

Change-Id: Ibf3c2c8c474f5d183f4483c04fe7811a5f629e4c
2016-07-20 17:59:08 +03:00
Andrey Kurilin
0a6dac5cec [requirements] Add helper for managing requirements
While we are not depend on OpenStack global-requirements, we need to be synced
with it to be sure that Rally compatible with all OpenStack related stuff.

This patch provides new helper script, which checks versions from g-r, correct
license and latest version from pypi.

The usage is simple:

   # sync rally requirements with g-r
   tox -e requirements

   # just format rally requirements
   tox -e requirements -- --format

    # sync rally requirements with g-r & add upper limits for all packages
   tox -e requirements -- --add-uppers

Also, this patch formats Rally requirements in unified form, puts right
licenses to requirements and adds rally licenses in correct way in setup.cfg

Change-Id: Ia50694f636d9f80f08d90cc8133ebac8bb3f8671
2016-07-20 17:58:55 +03:00
Yaroslav Lobankov
e1124a376c [Verify] Improvements in rally verify installplugin cmd
1. Help messages and doc strings for 'install plugin' related methods
   were edited for a better understanding what they are intended for.
2. 'Permission denied' and dependencies issues were fixed when calling
   `rally verify installplugin` wirh --system-wide argument.
3. Now Tempest and plugins directory are located in the same directory
   (for-deployment-<deployment-UUID>), which is convenient for changing
   code.

Change-Id: I81664aff446542ce230a067d3d09449598d907e6
2016-07-20 17:42:05 +03:00
Roman Vasilets
ff58044892 Fix output of small floats in results
For now we have output of small floats in scientific notation:
3.79085540771e-05
Fix that to 0.000037. Also floats in fixed place will output as:
  0.0000001 -> 0.0
  0.000000 -> 0.0
  37 -> 37.0
  1.0000001 -> 1.0
  1.0000011 -> 1.000001
  1.0000019 -> 1.000002

This can be made in different ways like:
  "%f" % float(decimal.Decimal(num).normalize())
or in more weird way but I choose that one (see in the patch) like
the most flat, simple and explicit.

Change-Id: I4b9cdbb01f3f8e2eeaedc9d33e1203247ea79f89
2016-07-19 18:54:25 +03:00
Jenkins
1f9abd092f Merge "Add support for watcher osclient and watcher related types" 2016-07-18 23:28:38 +00:00
Jenkins
ff83b72976 Merge "[spec] Add performance degradation SLA plugin" 2016-07-18 22:47:48 +00:00
Jenkins
31ae064982 Merge "Replace deprecated LOG.warn with warning" 2016-07-18 13:42:20 +00:00
Alexander Chadin
cfb9e6b5b0 Add support for watcher osclient and watcher related types
This patch set registers Watcher as Service for Rally and
adds Watcher Goal and Strategy Types with related unit tests.

Also it adds *.DS_Store type to gitignore and python-watcherclient
to the requirements.txt to support Watcher in future.

Change-Id: I0ed4154bdb497d76b768c0eace74940f8811a8e8
2016-07-18 16:22:02 +03:00
Jenkins
c1947930f0 Merge "Use flavor name for checking flavor existence" 2016-07-18 12:28:40 +00:00
Srinivas Sakhamuri
eb7377a94a Use flavor name for checking flavor existence
Flavor existence check with ID returns the flavor even though
that flavor is deleted. Using flavor name is more consistent
with deleted flavors and works across openstack releases
reliably

Change-Id: I563fab6eeb849405bc520c1cae425a1ff0d56ff2
2016-07-15 09:40:57 -06:00
Jenkins
fc5f0a4a9a Merge "Add id_attr to use in wait_for_status method" 2016-07-15 12:50:56 +00:00
Alina Nesterova
ca57de8f47 Added auto-configure for node group
Added autoconfig param for creating node group template

Change-Id: I4060dad6a22ec318fd7c4748dd45b9c880c8f228
2016-07-15 13:35:26 +03:00
Jenkins
f7a4c9f14b Merge "Validate scenario arguments" 2016-07-14 11:01:33 +00:00
yuyafei
4afec3a1e3 Replace deprecated LOG.warn with warning
LOG.warn is deprecated. It still used in a few places. This updates
those one to use the non-deprecated LOG.warning instead.

Change-Id: Idb0f7ac1f8788ed0a119fb34b56f8ead32e2b85f
Partial-Bug:#1508442
2016-07-14 15:19:18 +08:00
Jenkins
daf9f7b220 Merge "[Verify] New command to install Tempest plugins" 2016-07-13 19:08:27 +00:00
Andrey Kurilin
07a21b99e3 Validate scenario arguments
We have a lot of validators for scenarios, but we do not check input
arguments. There are two cases:
1) user forget specify some argument;
2) user specify redundant argument

In both cases, we will get "TypeError" for each iteration.

This validator is not implemented like others, since it doesn't need
constructed clients and it looks like more syntax check.

Also, this patch fixes one of our samples:
    samples/tasks/scenarios/dummy/dummy-random-action.[json/yaml]

Change-Id: Id3aad571dfc93f8074c724595440979cfd435e2c
2016-07-13 17:23:11 +03:00
Marcela Bonell
f6a02afcda [Verify] New command to install Tempest plugins
This command allows us to install a Tempest plugin from a repository.

E.g.
  $ rally verify installplugin --source https://github.com/MBonell/hello-world-tempest-plugin
  $ rally verify installplugin --source /home/ubuntu/my-plugin

Implements Blueprint: install-tempest-plugins

Change-Id: I03ac6063b6b9d7f860379b99f3b524adedba6df9
2016-07-13 00:24:42 +03:00
Alexander Chadin
ea6a01c94a Add id_attr to use in wait_for_status method
This patch set adds id_attr to define name of id field
when resource is being updated.

Change-Id: Ia6644e02aecc38df76e8c1b1cf3de9f8358096ec
2016-07-12 19:36:59 +03:00
Jenkins
5e426e0766 Merge "Remove unused LOG to keep code clean" 2016-07-12 12:39:14 +00:00
Jenkins
8dba332c52 Merge "Use a shortcut to configure function" 2016-07-12 10:59:07 +00:00
Jenkins
31d738a125 Merge "Fix a typo in Rally UI File" 2016-07-11 22:28:08 +00:00
Yoshifumi Sumida
bac6286e3c Fix a typo in Rally UI File
I modified 'wrokload' to 'workload'.

Change-Id: I6d31466d1302cfcbfbc74db9ad1bcc4affad1c49
Closes-Bug: #1601829
2016-07-11 23:18:28 +09:00
Alexander Maretskiy
2a004f368a [Spec] Spec class-based-scenarios.rst is implemented
Change-Id: If50cc5a341029b72ff92eeac41b1fc4559c6974b
2016-07-11 13:28:28 +03:00
yuyafei
7da7968a4a Remove unused LOG to keep code clean
Remove redundant usage of rally.common.logging.

Change-Id: I344224e0e177bde7c41ac6e5e93b65be35bbdc01
2016-07-11 00:47:00 +00:00
zhanghao
7451182da1 Fix test name to help to reveal its intend
TrivialFix

Change-Id: I3be0d92c3ccbc327e19520617984e02640b16676
2016-07-10 11:09:02 +00:00
chenhb-zte
dada5174f2 Use a shortcut to configure function
Use a shortcut to configure function instead of
a redefined new function.

Change-Id: Ifa20565457b68f0ec2360185c51d7754cd4c241d
2016-07-09 14:04:26 -04:00
Jenkins
7777eebfdf Merge "Add dns_nameservers option to network context" 2016-07-08 10:54:18 +00:00
Jenkins
0b4c408a75 Merge "Add volume type argument in volume context" 2016-07-07 15:19:45 +00:00
Jenkins
21fde542a0 Merge "[Reports] Conditionally reformat atomic charts layout" 2016-07-06 19:05:14 +00:00
Alexander Maretskiy
b34b63362f [Reports] Conditionally reformat atomic charts layout
This resolves issue with Pie chart layout on tab
Details->Distribution in case if there are too many atomic
actions. Sometimes Pie chart becomes so small that it is
not possible to determine results.

This patch makes Details->Distribution charts (Pie+Histogram)
layout conditional. If there are 9 or more atomic actions,
then Pie chart takes 100% width and Histogram is shown
under Pie chart.

Change-Id: I67cbea5c60500b14ae3ae1a8f837d3a78ebf63e4
2016-07-06 17:05:28 +03:00