Openstack &引用;找不到资源类型。”;在使用模板合成时

Openstack &引用;找不到资源类型。”;在使用模板合成时,openstack,openstack-heat,Openstack,Openstack Heat,我正在尝试使用OpenStack加热 我已经创建了一个极简模板我的自定义资源。yml: heat_template_version: 2016-04-08 description: My Custom Resource resources: dummy: type: OS::Heat::None resource_registry: My::Custom::Resource: my-custom-resource.yml heat_template_version: 2016

我正在尝试使用OpenStack加热

我已经创建了一个极简模板
我的自定义资源。yml

heat_template_version: 2016-04-08
description: My Custom Resource
resources:
  dummy:
    type: OS::Heat::None
resource_registry:
  My::Custom::Resource: my-custom-resource.yml
heat_template_version: 2016-04-08
description: My Stack
resources:
  test:
    type: My::Custom::Resource
此模板与我的环境文件
environment.yml
中的名称
My::Custom::Resource
关联:

heat_template_version: 2016-04-08
description: My Custom Resource
resources:
  dummy:
    type: OS::Heat::None
resource_registry:
  My::Custom::Resource: my-custom-resource.yml
heat_template_version: 2016-04-08
description: My Stack
resources:
  test:
    type: My::Custom::Resource
我在测试模板
stack.yml
中使用它:

heat_template_version: 2016-04-08
description: My Custom Resource
resources:
  dummy:
    type: OS::Heat::None
resource_registry:
  My::Custom::Resource: my-custom-resource.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.
我检查了每个文件名和路径,一切看起来都很好。

事实上,上面说:

模板文件扩展名必须是
.yaml
.template
,否则它将不会 将被视为自定义模板资源

因此,有人可以说这是理想的行为

我真的不明白为什么会存在这种限制,为什么
.yml
扩展也不受支持

此外,错误消息可能更明确