6.3. 在容器外部运行 Containerized Tempest


容器生成或检索 tempest.conf 文件并运行测试。您可以从容器外部执行这些操作:

  1. 如果要针对 overcloud 运行tempest,请 source overcloudrc 文件。如果您想针对 undercloud 运行 tempest,则 source stackrc 文件:

    # source /home/stack/container_tempest/overcloudrc
  2. 运行 tempest init 以创建温度工作区。使用共享目录,以便主机也可以访问这些文件:

    # tempest init /home/stack/tempest_workspace
  3. 生成 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

  4. 执行温度测试。例如,运行以下命令使用您在上一步中创建的别名执行 tempest 烟雾测试:

    # docker-tempest -c "tempest run --smoke"
  5. 检查 .stestr 目录,以了解有关测试结果的信息。
  6. 如果要重新运行 tempest 测试,您必须首先删除并重新创建 tempest 工作区:

    $ sudo rm -rf /home/stack/tempest_workspace
    $ mkdir /home/stack/tempest_workspace
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.