Finish support of benchmarking with existing users

Now one can use Rally for benchmarking OpenStack clouds that are using
LDAP, AD or any other read only keystone backend where you are not able
to create any users.

To do this one can specify "users" section in ExistingCloud plugin
input file.

Rally will use these "users" to generate load instead of creating new.
As well if you specify both "users" section in deployment input file
and "users" context it will use temporary created by Rally users.

Restructurize samples/deployments directory:

  - Deploying OpenStack clouds with Rally is not popular functionallity
    so hide all samples deeper.
  - Some fixes in readme.rst
  - Add new sample for existing cloud with predefined users

Change-Id: If3d31960ee317e0770abceacc62b3acf0947d269
This commit is contained in:
Boris Pavlovic 2015-03-28 03:52:12 +03:00
parent 669311a995
commit 5379e2bd74
2 changed files with 45 additions and 34 deletions

View File

@ -1,12 +1,21 @@
Rally Deployments
=================
Before starting cluster benchmarking, its connection parameters
should be saved in Rally database (deployment record).
Rally needs to be configured to use an OpenStack Cloud deployment before it
can benchmark the deployment.
If there is no cluster, rally also can create it.
To configure Rally to use an OpenStack Cloud deployment, you need create a
deployment configuration by supplying the endpoint and credentials, as follows:
.. code-block::
rally deployment create --file <one_of_files_from_this_dir> --name my_cloud
If you don't have OpenStack deployments, Rally can deploy it for you.
For samples of various deployments take a look at samples from
**for_deploying_openstack_with_rally** directory.
There are examples of deployment configurations:
existing.json
-------------
@ -18,6 +27,15 @@ existing-keystone-v3.json
Register existing OpenStack cluster that uses Keystone v3.
existing-with-predefined-users.json
--------------------------------------
If you are using read-only backend in Keystone like LDAP, AD then
you need this sample. If you don't specify "users" rally will use already
existing users that you provide.
existing-with-given-endpoint.json
---------------------------------
@ -26,33 +44,3 @@ to explicitly set keystone management_url. Use this parameter if
keystone fails to setup management_url correctly.
For example, this parameter must be specified for FUEL cluster
and has value "http://<identity-public-url-ip>:35357/v2.0/"
devstack-in-existing-servers.json
---------------------------------
Register existing DevStack cluster.
devstack-in-lxc.json
--------------------
Deploy DevStack cluster on LXC and register it by Rally.
devstack-in-openstack.json
--------------------------
Deploy DevStack cluster on OpenStack and register it by Rally.
devstack-lxc-engine-in-existing-servers.json
--------------------------------------------
See *devstack-lxc-engine-in-existing-servers.rst* for details
fuel-ha.json
------------
Deploy High Availability FUEL cluster and register it by Rally.
fuel-multinode.json
-------------------
Deploy Multinode FUEL cluster and register it by Rally.

View File

@ -0,0 +1,23 @@
{
"type": "ExistingCloud",
"auth_url": "http://example.net:5000/v2.0/",
"region_name": "RegionOne",
"endpoint_type": "public",
"admin": {
"username": "admin",
"password": "pa55word",
"tenant_name": "demo"
},
"users": [
{
"username": "not_an_admin1",
"password": "password",
"tenant_name": "some_tenant"
},
{
"username": "not_an_admin2",
"password": "password2",
"tenant_name": "some_tenant2"
}
]
}