Run Openstack rally

1) Build devstack

2) Get rally and install

git clone https://github.com/openstack/rally.git

[stack@localhost rally]$ ./install_rally.sh

3) Register which openstack setup needs to be benchmark

./openrc admin admin

stack@localhost rally]$ rally deployment create –fromenv –name=existing
+————————————–+—————————-+———-+——————+——–+
| uuid | created_at | name | status | active |
+————————————–+—————————-+———-+——————+——–+
| 364f0c5d-40cc-4fbe-8788-ef7c3268912e | 2015-05-26 05:19:30.396097 | existing | deploy->finished | |
+————————————–+—————————-+———-+——————+——–+
Using deployment: 364f0c5d-40cc-4fbe-8788-ef7c3268912e
~/.rally/openrc was updated

HINTS:
* To get your cloud resources, run:
rally show [flavors|images|keypairs|networks|secgroups]

* To use standard OpenStack clients, set up your env by running:
source ~/.rally/openrc
OpenStack clients are now configured, e.g run:
glance image-list
[stack@localhost rally]$ rally deployment check
keystone endpoints are valid and following services are available:
+———-+————+———–+
| services | type | status |
+———-+————+———–+
| cinder | volume | Available |
| cinderv2 | volumev2 | Available |
| ec2 | ec2 | Available |
| glance | image | Available |
| keystone | identity | Available |
| nova | compute | Available |
| novav21 | computev21 | Available |
+———-+————+———–+
[stack@localhost rally]$

4) Run tests

[stack@localhost rally]$ rally task start samples/tasks/scenarios/nova/boot-and-delete.json
——————————————————————————–
Preparing input task
——————————————————————————–

Input task is:
{
“NovaServers.boot_and_delete_server”: [
{
“args”: {
“flavor”: {
“name”: “m1.tiny”
},
“image”: {
“name”: “^cirros.*uec$”
},
“force_delete”: false
},
“runner”: {
“type”: “constant”,
“times”: 10,
“concurrency”: 2
},
“context”: {
“users”: {
“tenants”: 3,
“users_per_tenant”: 2
}
}
}
]
}

——————————————————————————–
Task 7c19d223-e107-4454-9640-7d1f3af89eb8: started
——————————————————————————–

Benchmarking… This can take a while…

To track task status use:

rally task status
or
rally task detailed

Using task: 7c19d223-e107-4454-9640-7d1f3af89eb8

——————————————————————————–
Task 7c19d223-e107-4454-9640-7d1f3af89eb8: finished
——————————————————————————–

test scenario NovaServers.boot_and_delete_server
args position 0
args values:
{
“runner”: {
“type”: “constant”,
“concurrency”: 2,
“times”: 10
},
“args”: {
“force_delete”: false,
“flavor”: {
“name”: “m1.tiny”
},
“image”: {
“name”: “^cirros.*uec$”
}
},
“context”: {
“users”: {
“project_domain”: “default”,
“users_per_tenant”: 2,
“tenants”: 3,
“resource_management_workers”: 30,
“user_domain”: “default”
}
}
}
+——————————————————————————————–+
| Response Times (sec) |
+——————–+——–+——–+——–+——–+——–+——–+———+——-+
| action | min | median | 90%ile | 95%ile | max | avg | success | count |
+——————–+——–+——–+——–+——–+——–+——–+———+——-+
| nova.boot_server | 17.498 | 19.333 | 31.515 | 35.744 | 39.974 | 22.305 | 100.0% | 10 |
| nova.delete_server | 2.221 | 2.248 | 2.276 | 2.278 | 2.28 | 2.249 | 100.0% | 10 |
| total | 19.742 | 21.589 | 33.785 | 37.99 | 42.195 | 24.554 | 100.0% | 10 |
+——————–+——–+——–+——–+——–+——–+——–+———+——-+
Load duration: 127.890596867
Full duration: 134.465722084

HINTS:
* To plot HTML graphics with this data, run:
rally task report 7c19d223-e107-4454-9640-7d1f3af89eb8 –out output.html

* To get raw JSON output of task results, run:
rally task results 7c19d223-e107-4454-9640-7d1f3af89eb8

[stack@localhost rally]$

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s