Node template does not inherit node type interfaces directly

Bug #1593267 reported by Denis Makogon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
TOSCA Parser
New
Undecided
Denis Makogon

Bug Description

Node templates are not inheriting node type interfaces, but include include node type definition

Example:

###### Node type

  tosca.openstack.authorization_form:
    derived_from: tosca.openstack.node
    properties:
      username:
        type: string
        required: true
      password:
        type: string
        required: true
      tenant_name:
        type: string
        required: true
      auth_url:
        type: string
        required: true
      region:
        type: string
        required: true
    attributes:
      auth_token:
        type: string
    interfaces:
      Standard:
        type: tosca.interfaces.node.lifecycle.Standard
        create:
          implementation: openstack_plugin.keystone.authorize
          inputs:
            args:
              type: list
            kwargs:
              type: map

######## Node template

    authorization_form:
      type: tosca.openstack.authorization_form
      properties:
        username: { get_input: keystone_username }
        password: { get_input: keystone_password }
        tenant_name: { get_input: keystone_tenant_name }
        auth_url: { get_input: keystone_url }
        region: { get_input: openstack_region }

So, when parser will return number of nodes through TOSCA graph node template interfaces will have an empty list, but its node type has explicitly defined interfaces. Inheritance is broken.

Revision history for this message
Denis Makogon (lildee1991) wrote :

Even more.

If i would define a generic type and then will create a new type by deriving for generic type, new type will have its own set interfaces, so, inheritance is also broken between types, but not only between type and its template.

Changed in tosca-parser:
assignee: nobody → Denis Makogon (lildee1991)
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.