6.3. 在容器外部运行 Containerized Tempest
容器生成或检索 tempest.conf
文件并运行测试。您可以从容器外部执行这些操作:
如果要针对 overcloud 运行tempest,请 source
overcloudrc
文件。如果您想针对 undercloud 运行 tempest,则 sourcestackrc
文件:# source /home/stack/container_tempest/overcloudrc
运行
tempest init
以创建温度工作区。使用共享目录,以便主机也可以访问这些文件:# tempest init /home/stack/tempest_workspace
生成
tempest.conf
文件:# discover-tempest-config \ --out /home/stack/tempest_workspace/tempest.conf \ --deployer-input /home/stack/container_tempest/tempest-deployer-input-conf \ --debug \ --create \ object-storage.reseller_admin ResellerAdmin
有关您可以在
discover-tempest-config
命令中包含的选项的更多信息,请运行discover-tempest-config --help
。执行温度测试。例如,运行以下命令使用您在上一步中创建的别名执行 tempest 烟雾测试:
# docker-tempest -c "tempest run --smoke"
-
检查
.stestr
目录,以了解有关测试结果的信息。 如果要重新运行 tempest 测试,您必须首先删除并重新创建 tempest 工作区:
$ sudo rm -rf /home/stack/tempest_workspace $ mkdir /home/stack/tempest_workspace