3.3. 手动配置 Integration Test Suite
discover-tempest-config 命令会自动生成 tempest.conf 文件。但是,您必须确保 tempest.conf 文件与环境的配置对应。
3.3.1. 手动配置 Integration Test Suite 扩展列表 复制链接链接已复制到粘贴板!
默认 tempest.conf 文件包含每个组件的扩展列表。检查 tempest.conf 文件中每个组件的 api_extensions 属性,并验证扩展列表是否与您的部署对应。
如果您的部署中提供的扩展与 tempest.conf 文件的 api_extensions 属性中的扩展列表不匹配,则组件会失败。要防止此失败,您必须识别部署中可用的扩展,并将其包含在 api_extensions 参数中。要获取部署中的网络、计算、卷或身份扩展列表,请运行以下命令:
流程
要在部署中检索网络、计算、卷或身份扩展列表,请输入以下命令:
openstack extension list [--network] [--compute] [--volume] [--identity]
$ openstack extension list [--network] [--compute] [--volume] [--identity]Copy to Clipboard Copied! Toggle word wrap Toggle overflow
3.3.2. 手动配置 heat_plugin 复制链接链接已复制到粘贴板!
您可以在 tempest.conf 文件中手动配置 heat_plugin。
流程
使用以下示例配置
heat_plugin:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
使用 openstack network list 命令识别 fixed_network_name、network_for_ssh 和 floating_network_name 参数的网络。
您必须在 tempest.conf 文件的 [service_available] 部分中将 heat 设置为 True,[heat_plugin] 部分的 username 属性中的用户必须具有角色 成员。例如,输入以下命令将 member 角色添加到 demo 用户:
openstack role add --user demo --project demo member
$ openstack role add --user demo --project demo member