10.3. 在 control plane 中启用 PCI 设备跟踪
要启用 PCI 设备跟踪,您必须更新 OpenStackControlPlane CR 文件中的服务配置,openstack_control_plane.yaml,并将更新应用到 control plane。
先决条件
-
oc命令行工具已安装在您的工作站上。 -
以具有
cluster-admin权限的用户身份登录 Red Hat OpenStack Services on OpenShift (RHOSO)。
流程
在工作站上打开
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配置应用到每个单元。更新 control plane:
$ oc apply -f openstack_control_plane.yaml -n openstack等待 RHOCP 创建与
OpenStackControlPlaneCR 相关的资源。运行以下命令来检查状态:$ oc get openstackcontrolplane -n openstack当状态为 "Setup complete" 时,会创建
OpenStackControlPlane资源。提示将
-w选项附加到 get 命令的末尾,以跟踪部署进度。可选:通过查看 openstack 命名空间中的 pod 来查看每个单元,确认部署了 control plane:
$ oc get pods -n openstack当所有 pod 都已完成或运行时,会部署 control plane。