Properties are not inherited from super- to sub-node types
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Heat Translator |
In Progress
|
Undecided
|
Vahid Hashemian |
Bug Description
Example:
The node type "SoftwareComponent" has a "component_version" property.
The custom type "Collectd" (as used in tosca_elk.yaml) inherits from "SoftwareComponent" node type.
So, one would expect to be able to use the "component_version" property for "Collectd" node type.
However, this would lead to UnknownFieldError exception by parser:
Properties of template app_collectd contain(s) unknown field: "component version", refer ...
This is the template used:
-------
tosca_definitio
description: testing inheritance
imports:
- custom_
dsl_definitions:
host_
disk_size: 10 GB
num_cpus: { get_input: my_cpus }
mem_size: 4096 MB
os_
architecture: x86_64
type: Linux
distribution: Ubuntu
version: 14.04
topology_template:
node_templates:
app_collectd:
type: tosca.nodes.
properties:
requirements:
- host: app_server
app_server:
type: tosca.nodes.Compute
capabilities:
host:
os:
-------
Changed in heat-translator: | |
assignee: | nobody → Vahid Hashemian (vahidhashemian) |
Fix proposed to branch: master /review. openstack. org/215356
Review: https:/