Properties are not inherited from super- to sub-node types

Bug #1483896 reported by Vahid Hashemian
6
This bug affects 1 person
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_definitions_version: tosca_simple_yaml_1_0

description: testing inheritance

imports:
  - custom_types/collectd.yaml

dsl_definitions:
    host_capabilities: &host_capabilities
      disk_size: 10 GB
      num_cpus: { get_input: my_cpus }
      mem_size: 4096 MB
    os_capabilities: &os_capabilities
      architecture: x86_64
      type: Linux
      distribution: Ubuntu
      version: 14.04

topology_template:
  node_templates:
    app_collectd:
      type: tosca.nodes.SoftwareComponent.Collectd
      properties:
        component_version: 1.0
      requirements:
        - host: app_server

    app_server:
      type: tosca.nodes.Compute
      capabilities:
        host:
          properties: *host_capabilities
        os:
          properties: *os_capabilities

----------------------------------------

Changed in heat-translator:
assignee: nobody → Vahid Hashemian (vahidhashemian)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat-translator (master)

Fix proposed to branch: master
Review: https://review.openstack.org/215356

Changed in heat-translator:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on heat-translator (master)

Change abandoned by Vahid Hashemian (<email address hidden>) on branch: master
Review: https://review.openstack.org/215356
Reason: Moved to tosca-parser project.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.