10.3. 在 control plane 中启用 PCI 设备跟踪


要启用 PCI 设备跟踪,您必须更新 OpenStackControlPlane CR 文件中的服务配置,openstack_control_plane.yaml,并将更新应用到 control plane。

先决条件

  • oc 命令行工具已安装在您的工作站上。
  • 以具有 cluster-admin 权限的用户身份登录 Red Hat OpenStack Services on OpenShift (RHOSO)。

流程

  1. 在工作站上打开 OpenStackControlPlane 自定义资源(CR)文件 openstack_control_plane.yaml

    . Add the following `[filter_scheduler] pci_in_placement` configuration to the `nova` service configuration:
     nova:
        template:
          apiServiceTemplate:
            customServiceConfig: |
              [filter_scheduler]
              pci_in_placement = true
          cellTemplates:
            cell0:
              conductorServiceTemplate:
                customServiceConfig: |
                  [filter_scheduler]
                  pci_in_placement = true
            cell1:
              conductorServiceTemplate:
                customServiceConfig: |
                  [filter_scheduler]
                  pci_in_placement = true
          schedulerServiceTemplate:
            customServiceConfig: |
              [filter_scheduler]
              pci_in_placement = true
    注意

    如果有多个单元,您必须将 [filter_scheduler] pci_in_placement 配置应用到每个单元。

  2. 更新 control plane:

    $ oc apply -f openstack_control_plane.yaml -n openstack
  3. 等待 RHOCP 创建与 OpenStackControlPlane CR 相关的资源。运行以下命令来检查状态:

    $ oc get openstackcontrolplane -n openstack

    当状态为 "Setup complete" 时,会创建 OpenStackControlPlane 资源。

    提示

    -w 选项附加到 get 命令的末尾,以跟踪部署进度。

  4. 可选:通过查看 openstack 命名空间中的 pod 来查看每个单元,确认部署了 control plane:

    $ oc get pods -n openstack

    当所有 pod 都已完成或运行时,会部署 control plane。

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

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

让开源更具包容性

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

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部