9.2. 在自定义环境文件中更新可组合服务
如果您有任何带有 resource_registry
部分的自定义环境文件,请检查 resource_registry
部分中的可组合服务模板映射的更改。Red Hat OpenStack Platform 16.1 的可组合服务文件位于 /usr/share/openstack-tripleo-heat-templates/
中的新位置:
Red Hat OpenStack Platform 13 | Red Hat OpenStack Platform 16.1 |
---|---|
|
|
部署
目录包含一组用于分组可组合服务的子目录。例如,keystone
子目录包含 OpenStack Identity (keystone)的可组合服务模板。
要在自定义环境文件中重新映射可组合服务,请检查当前服务映射的模板位置,并编辑到新位置的映射。此流程使用 ceph-mgr.yaml
作为示例。
这个过程仅作为重新映射可组合服务的指导。如果您不确定任何映射,请联系红帽并请求 有关正确映射的建议。
流程
搜索使用可组合服务的自定义环境文件。您通常将自定义环境文件存储在
/home/stack/templates
目录中:$ cd ~/templates/ $ grep "OS::TripleO::Services" *
在这种情况下,其中一个文件显示过时的映射:
OS::TripleO::Services::CephMgr: /usr/share/openstack-tripleo-heat-templates/docker/services/ceph-ansible/ceph-mgr.yaml
识别
/usr/share/openstack-tripleo-heat-templates/
中的新的ceph-mgr.yaml
位置。此文件现在位于 'deployment/ceph-ansible' 目录中:$ find /usr/share/openstack-tripleo-heat-templates/ -name ceph-mgr.yaml /usr/share/openstack-tripleo-heat-templates/deployment/ceph-ansible/ceph-mgr.yaml
在自定义环境文件中编辑服务:
resource_registry: OS::TripleO::Services::CephMgr: /usr/share/openstack-tripleo-heat-templates/deployment/ceph-ansible/ceph-mgr.yaml
保存该文件。