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
Copy to Clipboard Toggle word wrap

此配置包含用于在节点上启用 CephExternalCephClient 服务的参数,设置用于不同 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

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat