【发布时间】:2018-04-03 13:02:07
【问题描述】:
我正在尝试将 template composition 与 OpenStack Heat 一起使用。
我创建了一个极简模板my-custom-resource.yml:
heat_template_version: 2016-04-08
description: My Custom Resource
resources:
dummy:
type: OS::Heat::None
此模板与我的环境文件environment.yml 中的名称My::Custom::Resource 相关联:
resource_registry:
My::Custom::Resource: my-custom-resource.yml
我在测试模板中使用它stack.yml:
heat_template_version: 2016-04-08
description: My Stack
resources:
test:
type: My::Custom::Resource
最后,我从命令行创建堆栈:
openstack stack create -t stack.yml -e environment.yml my-stack
我收到以下错误:
ERROR: The Resource Type (My::Custom::Resource) could not be found.
我检查了每个文件名和路径,一切看起来都不错。
【问题讨论】: