使用rally测试opentack并输出测试报告
2021-01-14 本文已影响0人
Dreams_13
1. 源码安装
pip install rally-openstack
2. 数据库初始化
rally db recreate
3. 注册openstack环境
source /etc/kolla/admin-openrc.sh
vi existing.json
{
"openstack": {
"auth_url": "http://192.168.184.2:5000/v3/",
"region_name": "RegionOne",
"endpoint_type": "public",
"admin": {
"username": "admin",
"password": "admin",
"tenant_name": "admin"
},
"https_insecure": false,
"https_cacert": ""
}
}
rally deployment create --file=existing.json --name=test-rally
4. 检查环境
rally deployment check
5. 测试
rally task start case.yaml
6. 导出测试结果
rally task report 5aa22019-5397-4d21-9df6-d4d12f5e540a --out case.html
7.自定义插件放置路径
/opt/rally/plugins