Red Hat Training

A Red Hat training course is available for Red Hat OpenStack Platform

19.5. 为镜像服务配置 cinder 后端

GlanceBackend 参数设置镜像服务用来存储镜像的后端。

重要

您可以为项目创建的默认最大数量为 10。

流程

  1. 要将 cinder 配置为镜像服务后端,请在环境文件中添加以下内容:

    parameter_defaults:
      GlanceBackend: cinder
  2. 如果启用了 cinder 后端,则默认设置以下参数和值:

    cinder_store_auth_address = http://172.17.1.19:5000/v3
    cinder_store_project_name = service
    cinder_store_user_name = glance
    cinder_store_password = ****secret****
  3. 要使用自定义用户名,或者 cinder_store_ 参数的任何自定义值,请将 ExtraConfig 设置添加到 parameter_defaults 中并传递自定义值:

    ExtraConfig:
        glance::config::api_config:
          glance_store/cinder_store_auth_address:
            value: "%{hiera('glance::api::authtoken::auth_url')}/v3"
          glance_store/cinder_store_user_name:
            value: <user-name>
          glance_store/cinder_store_password:
            value: "%{hiera('glance::api::authtoken::password')}"
          glance_store/cinder_store_project_name:
            value: "%{hiera('glance::api::authtoken::project_name')}"