Jump to: navigation, search

Difference between revisions of "Rally/HowTo"

(Action!)
(Available Rally facilities)
 
(76 intermediate revisions by 17 users not shown)
Line 1: Line 1:
  
= Run It!  =
+
<big>'''Rally wiki documentation is obsolete.'''</big>
  
The easiest way to learn how Rally works is to use already existing '''OpenStack''' deployed by '''DevStack'''.
+
''Everything moved to https://rally.readthedocs.org''
So let assume that we have 2 VMs:
 
  
  Vm1 - 192.168.1.2 (with Rally & Zipkin)
+
Here is [https://rally.readthedocs.org/en/latest/tutorial.html Rally Step by Step Guide]
  Vm2 - 192.168.1.3 (with OpenStack deployed by DevStack)
 
 
 
== Preparing ==
 
 
 
1) Installing Rally & Zipkin on Vm1
 
To install Rally and Zipkin on Vm1 use this [[Rally/installation|instruction]]
 
 
 
2) Installing OpenStack using DevStack on Vm2
 
 
 
  ssh root@192.168.1.3
 
  git clone https://github.com/openstack-dev/devstack.git
 
  cd devstack && ./stack.sh
 
 
 
== Action! ==
 
 
 
Now we should properly configure task configuration:
 
'''base_task.json''':
 
<pre>
 
{
 
  "deploy": {
 
    "name": "FakeEngine",
 
    "cloud_config": {
 
      "identity": {
 
        "url": "http://192.168.1.3/",
 
        "uri": "http://192.168.1.3:5000/v2.0/",
 
        "admin_username": "admin",
 
        "admin_password": "admin_pass",
 
        "admin_tenant_name": "demo"
 
      },
 
      "compute": {
 
        "controller_nodes_name": "192.168.1.3",
 
        "controller_node_ssh_user": "root_user",
 
        "controller_node_ssh_password": "root_password",
 
        "path_to_private_key": "/local/path/to/the/private/key/of/node",
 
        "compute_nodes": "192.168.1.3"
 
      }
 
    }
 
  },
 
 
 
  "tests": {
 
    "verify": {
 
      "tests_to_run": ["sanity", "smoke"]
 
    },
 
    "benchmark": {
 
      "tests_to_run": {
 
        "NovaServers.boot_and_delete_server": [
 
          {"args": {"flavor_id": 5, "image_id": "38abef78-4527-402c-8de3-df097bff2be1"},
 
          "times": 1, "concurrent": 1},
 
          {"args": {"flavor_id": 4, "image_id": "bd892d13-b9bd-4a3c-953f-a759aa78da76"},
 
          "times": 100, "concurrent": 10}
 
        ]
 
      }
 
    }
 
  }
 
}
 
</pre>
 
 
 
DevStack deploys all OpenStack component on Vm2, actually in
 
* "identity" section you should specify IP address of Server where Keystone is run
 
* "compute" you should specify information about Server where works one of Nova Computes
 
 
 
Ok now we should run our rally with test configuration:
 
 
 
  openstack-rally task start --task base_task.json
 
 
 
''To be continued...''
 

Latest revision as of 00:44, 27 February 2015

Rally wiki documentation is obsolete.

Everything moved to https://rally.readthedocs.org

Here is Rally Step by Step Guide