- 本地环境,需要配置pypi 源
]# mkdir /root/.pip
]# vi /root/.pip/pip.conf
[global]
index-url = http://10.58.56.10/pypi/simple
trusted-host = 10.58.56.10
[easy_install]
index-url = http://10.58.56.10/pypi/simple
[search]
index = http://10.58.56.10/pypi/simple/
]# vi /root/.pydistutils.cfg
[easy_install]
index_url = http://10.58.56.10/pypi/simple
- 安装rally
]# git clone
https://github.com/openstack/rally.git
]# cd rally
]# chmod u+x install_rally.sh
]# ./install_rally.sh
- 新建deployment
]# cp /usr/share/rally/samples/deployments/existing.json /root/existing.json
]# vi /root/existin.json
{
"type": "ExistingCloud",
"auth_url": "http://10.126.72.35:5000/v2.0/", #keystone 服务地址
"region_name": "regionOne",
"endpoint_type": "public",
"admin": {
"username": "admin",
"password": "admin",
"tenant_name": "admin"
},
"https_insecure": false,
"https_cacert": ""
}
]# rally deployment create --filename existing.json --name other_deployment
- 安装tempest
]# git clone
https://github.com/openstack/tempest.git
]# rally verify install --source /root/tempest
- 场景性能测试
场景json 目录: /usr/share/rally/samples/tasks/scenarios
]# rally task start /usr/share/rally/samples/tasks/scenarios/keystone/create-tenan.json
测试结果转出html 格式:
]#
rally task report e940da9c-d2c5-499a-bad3-c744c211e78a --out output.html
5.tempest测试
]# rally verify start
单独测试某个模块命令:
]# rally verify start --set compute