Translation of an interface-less node results in a HOT resource with "type: null"

Bug #1453263 reported by Vahid Hashemian
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Heat Translator
New
Medium
Mathieu Velten

Bug Description

When a node like (as currently exists in tosca_elk.yaml)

    mongo_db:
      type: tosca.nodes.Database
      requirements:
        - host:
            node: mongo_dbms

that does not have any interfaces is translated into HOT it results in a resource like this

  mongo_db:
    type: null
    depends_on:
      - mongo_dbms_start_deploy

which is not a valid HOT resource due to "type: null".

A mechanism should be in place in situations like this so the mongo_db resource is bypassed in the HOT output, but at the same time the implied dependencies are preserved.

Changed in heat-translator:
assignee: nobody → Vahid Hashemian (vahidhashemian)
Revision history for this message
Sahdev Zala (spzala) wrote :

I believe the example is not valid anymore but we should provide fix for any similar cases.

Changed in heat-translator:
importance: Undecided → Medium
Sahdev Zala (spzala)
Changed in heat-translator:
assignee: Vahid Hashemian (vahidhashemian) → Mathieu Velten (matmaul)
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.