Zed 系列发布说明

18.0.0.0b1-315

新特性

  • os_tempest 角色现在可以通过将 tempest_install_method 设置为 distro 从发行版包安装。

  • 引入了新的变量 tempest_workspace 以设置 tempest 工作区的路径。

  • 默认 tempest 配置文件的位置现在是 /etc/tempest/tempest.conf,而不是以前的默认位置 $HOME/.tempest/etc

  • 添加了新的参数 tempest_services,用于自动设置 tempest_service_available_{service_name} 变量。

  • 在 tempest_test_blacklist ansible 变量中添加了 launchpad 和 bugzilla 密钥。开发人员必须能够追踪为什么测试被插入到 skiplist 中,其中一种方法是通过 bug。此功能在 os_tempest 的跳过测试列表中添加了有关此信息。

  • 添加了对两种凭证提供机制(动态凭证和预置凭证)的支持。

  • Python-tempestconf 是一种基于 openstack 安装的凭据生成 tempest.conf 文件的工具。它使用 openstack 的可发现 api 来检查服务、功能等。

    添加了使用 python-tempestconf 工具生成 tempest.conf 文件,而不是使用角色模板的可能性。

  • 实现了变量 tempest_public_net_createtempest_private_net_createtempest_router_createtempest_images_createtempest_flavors_createtempest_projects_create,这些变量允许跳过创建特定资源。

  • Keystone 中 tempest 的服务设置现在将通过委托到 tempest_service_setup_host 执行,默认情况下为 localhost(部署主机)。部署者可以选择将其更改为实用程序容器,方法是在 user_variables.yml 中实现以下覆盖。

    tempest_service_setup_host: "{{ groups['utility_all'][0] }}"
    
  • 不再使用硬编码的项目和用户集,现在可以使用变量 tempest_projectstempest_users 配置 tempest 的自定义列表。

  • 现在可以使用 tempest_test_blacklist 列表变量指定 tempest 在执行时要黑名单的测试列表。

  • 添加了新的变量 tempest_tempestconf_profile_extras,它允许在无需覆盖所有现有键的情况下扩展 tempest_tempestconf_profile 字典。 tempest_tempestconf_profile_extras 具有比 tempest_tempestconf_profile 更高的优先级。 例如,它可以用于定义额外的镜像或其格式。

升级说明

  • 删除 CONF.scenario.img_dir 选项,因为它在 ~4 年的弃用期后正在从 Tempest 中删除。 CONF.scenario.img_file 选项需要包含上传到 glance 的图像的完整路径。

  • 已更新 tempest_test_blacklist 的数据结构,以添加与正在跳过的测试关联的 launchpad 和/或 bugzilla 链接。

  • 删除了变量 tempest_image_dir_owner,转而使用默认 ansible 用户来创建镜像目录。

  • 更改了 tempest_projects 变量的默认值。现在此列表仅包含一个元素“tempest”。之前是“demo”和“alt_demo”,这有点令人困惑。

弃用说明

  • 变量 tempest_service_available_congresstempest_service_available_nova_lxd 已被移除,并且不再有任何作用,因为相应的服务不再受支持。

  • 以下 tempest 相关变量已被弃用,并且不再有任何作用

    • tempest_compute_ssh_user

    • tempest_compute_console_output_enabled

    • tempest_compute_resize_enabled

    • tempest_compute_snapshot_enabled

    • tempest_compute_change_password

    • tempest_image_api_v1_enabled

    • tempest_image_api_v2_enabled

    • tempest_swift_container_sync

    • tempest_swift_object_versioning

    • tempest_swift_discoverable_apis

    • tempest_volume_backup_enabled

    • tempest_volume_multi_backend_enabled

    • tempest_enable_instance_password

    • tempest_volume_backend_names

  • 变量 tempest_public_net_physical_type 将在 Train 版本中被移除,转而使用 tempest_public_net_physical_name

  • 变量 tempest_network_tenant_network_cidr 已被弃用

  • 变量 tempest_network_tenant_network_mask_bits 已被弃用

  • 变量 tempest_fatal_deprecations 已被弃用

  • tempest_test_whitelist 重命名为 tempest_test_includelist,将 tempest_test_blacklist 重命名为 tempest_test_excludelist。依赖项目应更新以使用新的变量。

  • 变量 tempest_requires_pip_packages 已不再需要,因此已被移除。

  • 变量 tempest_image_downloader 已被移除。镜像下载现在使用与 tempest_service_setup_host 变量指定的镜像设置主机相同的宿主机进行下载。

错误修复

  • 在使用 tempest_tempest_conf_overrides 时,它可能有 2 种不同的格式:一种用于 config_template,另一种用于 tempestconf.profile。现在,对于 tempestconf.profile 覆盖,应使用 tempest_tempestconf_profile_overrides 变量。

其他说明

  • 添加了新变量 tempest_endpoint_type 以避免在 tempest.conf 中硬编码端点类型

  • 实现了 tempest_extra_plugins 变量,该变量允许定义额外的 tempest 插件,而无需覆盖整个 tempest_plugins 列表。

17.0.0.0b2

新特性

  • 已向 os_tempest 角色添加了一个新变量 tempest_roles,允许用户定义在 tempest 测试期间使用的 keystone 角色。

  • os_tempest 角色中 tempest_images 数据结构现在期望每个图像的值包括 name(可选)和 format(磁盘格式)。 此外,可选变量 checksum 可用于设置文件的预期校验和,格式为 <algorithm>:<checksum>

  • tempest_image_dir 变量在 os_tempest 角色中设置的图像下载的默认位置现在已更改为 /opt/cache/files,以便与 nodepool 中的默认位置匹配。 这提高了 OpenStack CI 中 CI 测试的可靠性,因为它将找到已经缓存的文件。

  • 已在 os_tempest 角色中引入了一个新变量,名为 tempest_image_downloader。 当设置为 deployment-host(默认值)时,它使用部署主机来处理要用于 tempest 测试的图像的下载。 然后将图像上传到目标主机以上传到 Glance。

弃用说明

  • 为了简化 os_tempest 角色,已移除以下变量。它们已被通过数据结构 tempest_images 替换,该结构现在具有每个镜像的等效变量。- cirros_version - tempest_img_url - tempest_image_file - tempest_img_disk_format - tempest_img_name - tempest_images.sha256 (被 checksum 替换)

错误修复

  • os_tempest tempest 角色正在下载两次镜像 - 一次是任意下载,一次是用于测试。这已被合并到一个一致位置的单个下载中。

16.0.0.0b1

新特性

  • 添加了新的变量 tempest_volume_backend_names 并更新了 templates/tempest.conf.j2,以将 backend_names 指向此变量

升级说明

  • 已删除 openstack_tempest_gate.sh 脚本,因为它需要使用已被 Tempest 弃用的 run_tempest.sh 脚本。为了促进切换,变量 tempest_run 的默认值设置为 yes,强制角色默认执行 tempest。可以通过将值覆盖为 no 来更改此默认值。可以通过列表变量 tempest_test_whitelist 设置测试白名单。

弃用说明

  • 由于 backend1_namebackend2_name 已从 tempest 的提交 27905cc (合并于 2016/04/26) 中移除,因此移除了 tempest_volume_backend1_nametempest_volume_backend1_name

15.0.0.0b1

新特性

  • 已向 os_tempest 角色添加了一个新变量 tempest_flavors,允许用户定义在 tempest 测试期间使用的 nova flavor。

升级说明

  • 变量 tempest_requirements_git_repotempest_requirements_git_install_branch 已被移除,转而使用变量 pip_install_upper_constraints 使用上约束文件的 URL/路径。

14.0.0.0b3

新特性

  • 已添加新参数 `cirros_img_disk_format 以支持其他磁盘格式,而不仅仅是 qcow2。

  • 添加了新的变量 tempest_img_name

  • 添加了新的变量 tempest_img_url。此变量取代了 cirros_tgz_urlcirros_img_url

  • 添加了新的变量 tempest_image_file。此变量取代了 tempest.conf.j2 中 img_file 设置的硬编码值。这将允许用户指定 cirros 以外的镜像。

  • 添加了新的变量 tempest_img_disk_format。此变量取代了 cirros_img_disk_format

弃用说明

  • 移除了 cirros_tgz_url,并在大多数地方用 tempest_img_url 替换。

  • 移除了 cirros_img_url,并在大多数地方用 tempest_img_url 替换。

  • 移除了已弃用的变量 tempest_compute_image_alt_ssh_user

  • 移除了已弃用的变量 tempest_compute_image_ssh_password

  • 移除了已弃用的变量 tempest_compute_image_alt_ssh_password

  • cirros_img_disk_format 重命名为 tempest_img_disk_format

  • 移除了下载和解压缩 .tar.gz 的功能。相关的 tempest 选项 ami_img_fileaki_img_fileari_img_file 已从 tempest.conf.j2 中移除。

  • tempest.conf.j2 的 [boto] 部分已移除。这些测试已从 tempest 中移除很长时间。

错误修复

  • 此角色假定存在名为“public|private”的网络和名为“public|private-subnet”的子网。通过添加两组变量使这些名称可配置;tempest_public_net_nametempest_public_subnet_name 用于公共网络,以及 tempest_private_net_nametempest_private_subnet_name 用于私有网络。这解决了 bug 1588818

  • 已从 tempest.conf.j2 中移除各种已弃用/不再支持的功能。一些变量已移动到配置中的新部分。

14.0.0.0b1

新特性

  • 部署者现在可以通过设置以下变量来配置 tempest 公共和专用网络,‘tempest_private_net_provider_type’ 设置为 vxlan 或 vlan,‘tempest_public_net_provider_type’ 设置为 flat 或 vlan。根据部署者设置这些变量,他们可能还需要相应地更新其他变量,这主要涉及 ‘tempest_public_net_physical_type’ 和 ‘tempest_public_net_seg_id’。请参阅 https://docs.openstack.org/2025.2/networking-guide/intro-basic-networking.html 以获取更多 neutron 网络信息。