8.11. 在 director Operator 中配置外部 Ceph Storage 用量的自定义环境文件
要与外部 Ceph Storage 集群集成,请包含一个环境文件,其参数和值与以下示例中所示类似。
resource_registry:
OS::TripleO::Services::CephExternal: deployment/ceph-ansible/ceph-external.yaml
parameter_defaults:
# needed for now because of the repo used to create tripleo-deploy image
CephAnsibleRepo: "rhelosp-ceph-4-tools"
CephAnsiblePlaybookVerbosity: 3
NovaEnableRbdBackend: true
GlanceBackend: rbd
CinderEnableRbdBackend: true
CinderBackupBackend: ceph
CinderEnableIscsiBackend: false
# Change the following values for your external ceph cluster
NovaRbdPoolName: vms
CinderRbdPoolName: volumes
CinderBackupRbdPoolName: backups
GlanceRbdPoolName: images
CephClientUserName: openstack
CephClientKey: AQDLOh1VgEp6FRAAFzT7Zw+Y9V6JJExQAsRnRQ==
CephClusterFSID: 4b5c8c0a-ff60-454b-a1b4-9747aa737d19
CephExternalMonHost: 172.16.1.7, 172.16.1.8, 172.16.1.9
# Change the ContainerImageRegistryCredentials to a registry service account
# OR remove ContainerImageRegistryCredentials and set ContainerCephDaemonImage
# to a local registry not requiring authentication.
ContainerCephDaemonImage: registry.redhat.io/rhceph/rhceph-4-rhel8:latest
ContainerImageRegistryCredentials:
registry.redhat.io:
my_username: my_password
此配置包含用于在节点上启用 CephExternal 和 CephClient 服务的参数,设置用于不同 RHOSP 服务的池,并将以下参数设置为与外部 Ceph Storage 集群集成:
- CephClientKey
- 外部 Ceph Storage 集群的 Ceph 客户端密钥。
- CephClusterFSID
- 外部 Ceph Storage 集群的文件系统 ID。
- CephExternalMonHost
- 外部 Ceph 存储集群中所有 MON 主机的 IP 地址的逗号分隔列表。
注意
您可以修改此配置以适应存储配置。
ceph-ansible 客户端角色需要 Ceph 容器来配置 Ceph 客户端。您必须设置 ContainerCephDaemonImage 参数。托管在 registry.redhat.io 的 Ceph 容器需要身份验证。有关 ContainerImageRegistryLogin 参数的更多信息,请参阅 过渡到 Containerized Services
要在部署中使用此模板,请将示例的内容复制到 workstation 上的 custom_environment_files 目录中的 ceph-ansible-external.yaml。