openstack tempest测试步骤

1.安装依赖

yum install -y gcc python-virtualenv libffi-devel python-devel openssl-devel

2.git clone tempest代码

3.根据版本下载对应的tempest.conf文件

4.根据测试环境配置tempest.conf中的以下参数:

image_ref (openstack image list获取)
image_ref_alt (可以跟image_ref相同)
public_network_id (进入neutron数据库表networks获取)
public_router_id (进入neutron数据库表route获取)
floating_ip_range (可不配)
uri_v3 (从openrc文件中获取OS_AUTH_URL,版本换成V3)
admin_password(从openrc文件中获取)

5.进入tempest目录,执行如下命令

virtualenv .env
source .env/bin/activate
pip install pip -U
pip install setuptools -U
pip install pbr
pip install -r requirements.txt

猜你喜欢

转载自blog.csdn.net/dengxiafubi/article/details/79291446