Difference between revisions of "OpenStack:Rally"
Jump to navigation
Jump to search
(Created page with "== Using containerised Rally client == Rally needs OpenStack admin credentials, so from a machine storing the admin openrc file, run the following commands: <nowiki> # docke...") |
(No difference)
|
Revision as of 11:56, 2 April 2020
Using containerised Rally client
Rally needs OpenStack admin credentials, so from a machine storing the admin openrc file, run the following commands:
# docker run --rm -it -h rally-testing --entrypoint /bin/bash -v <your-admin-openrc-file>:/openrc:ro registry.vscaler.com:5000/rally-openstack:latest $ source /openrc $ rally deployment create --fromenv --name=<arbitrary-name-for-deployment>
Then, look into /home/rally/source/samples/tasks/scenarios/ for sample scenarios or write your own scenario. For example:
$ cat ~/test_boot_and_delete_instance.json
{
"NovaServers.boot_and_delete_server": [
{
"args": {
"flavor": {
"name": "m1.small"
},
"image": {
"name": "centos7-1907"
},
"force_delete": false
},
"runner": {
"type": "constant",
"times": 10,
"concurrency": 2
},
"context": {
"users": {
"tenants": 3,
"users_per_tenant": 2
}
}
}
]
}
List available plugins and scenarios:
$ rally plugin list --platform openstack
Finally, run the test:
$ rally task start /path/to/your/scenario.json
Visualising test results
First off, you'll need the UUID of the task you want to export results from:
$ rally task list --deployment <your-deployment-name>
Export to a HTML file:
$ rally task report <task-uuid> --out output.html
Export to a JUnit XML (this file can then be used by Jenkins):
$ pip install junit-xml $ rally task export <task-uuid> --type junit-xml --to output.xml