Git: https://github.com/openstack/rally Doc: https://rally.readthedocs.io/en/latest/install_and_upgrade/install.html // download the install script wget https://raw.githubusercontent.com/openstack/rally/master/install_rally.sh // run it as root sudo bash install_rally.sh // create the db sudo rally db recreate // search for the template json to show Rally the OpenStack cloud cd ~/rally.git/samples/deployments // copy the template to home cp existing.json ~ // search for the default openrc file for DevStack cd /opt/stack/devstack // see the connect informations cat userrc_early # Use this for debugging issues before files in accrc are created # Set up password auth credentials now that Keystone is bootstrapped export OS_IDENTITY_API_VERSION=3 export OS_AUTH_URL=http://10.6.12.94/identity export OS_USERNAME=admin export OS_USER_DOMAIN_ID=default export OS_PASSWORD=secret export OS_PROJECT_NAME=admin export OS_PROJECT_DOMAIN_ID=default export OS_REGION_NAME=RegionOne // go home cd ~ // edit the json file nano existing.json cat existing.json { "openstack": { "auth_url": "http://10.6.12.94/identity", "region_name": "RegionOne", "endpoint_type": "public", "admin": { "username": "admin", "password": "secret", "tenant_name": "admin" }, "https_insecure": true, "https_cacert": "" } } // show the OpenStack cloud to Rally based on the json file sudo rally deployment create --file=existing.json --name=existing // check the services sudo rally deployment check // copy a task sample config file cp samples/tasks/scenarios/nova/boot-and-delete.json ~ cd ~ // edit it (fewer runs) nano boot-and-delete.json cat boot-and-delete.json { "NovaServers.boot_and_delete_server": [ { "args": { "flavor": { "name": "m1.tiny" }, "image": { "name": "^cirros.*-disk$" }, "force_delete": false }, "runner": { "type": "constant", "times": 2, "concurrency": 1 }, "context": { "users": { "tenants": 3, "users_per_tenant": 2 } } } ] } // run the task sudo rally task start boot-and-delete.json // generate html report sudo rally task report --out=report1.html --open // search for the python implementation cd rally.git/rally/plugins/openstack/scenarios/nova cat servers.py