get_operation_output fails validation when relationship template specifies

Bug #1901051 reported by Валерия Валерьевна Швецова
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
TOSCA Parser
New
Undecided
Unassigned

Bug Description

When validating template tosca-parser fails with error "KeyError: 'Node template "server_kube_master_server_fixed_ips" was not found."

tosca_definitions_version: tosca_simple_yaml_1_0
topology_template:
  node_templates:
    server_kube_master_instance:
      type: amazon.nodes.Instance
      attributes:
        name: server_kube_master
        network:
          interface:
            properties:
              assign_public_ip: true
              private_ip_address: 192.168.12.25
      properties:
        instance_type:
          get_operation_output:
            - server_kube_master_server_instance_type
            - Target
            - choose_ec2_instance_type_facts
            - apiname
  relationship_templates:
    server_kube_master_server_instance_type:
      type: amazon.relationships.DependsOn
      interfaces:
        Target:
          choose_ec2_instance_type_facts:
            implementation: contains.yaml

Expected result: "Successful validation"

Revision history for this message
Валерия Валерьевна Швецова (versus-vv) wrote :

From http://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.0/os/TOSCA-Simple-Profile-YAML-v1.0-os.html#_Toc471725222 point 3.7.3.1: keyname "interfaces" is of type "list of interfaces definitions", so new interfaces and operations can be assigned in Node Template and Relationship Template

summary: get_operation_output fails validation when relationship template
- specifiedas
+ specifies
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tosca-parser 2.4.0

This issue was fixed in the openstack/tosca-parser 2.4.0 release.

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.