Can't store multiple deployment flavours data in nested_tosca_templates_with_topology

Bug #1883220 reported by Ayumu Ueha
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
TOSCA Parser
Fix Released
Undecided
Ayumu Ueha

Bug Description

Bug Description:

When user tries to load CSAR file with multiple flavours (eg: simple, complex [attached zip file]) of VNFD, it only stores one object in nested_tosca_templates_with_topology.

Following is the format of CSAR file.

csar
  |
  Definitions
      |
     etsi_nfv_sol001_common_types.yaml
     etsi_nfv_sol001_vnfd_types.yaml
     helloworld3_df_complex.yaml
     helloworld3_df_simple.yaml
     helloworld3_top.vnfd.yaml
     helloworld3_types.yaml
  TOSCA-Metadata
      |
     TOSCA.meta

It should be multiple objects in nested_tosca_templates_with_topology if CSAR file with multiple deployment flavours.
(nested_tosca_tpls_with_topology has multiple objects.)

Observation:
The reason why tosca-parser adds only one nested tosca template is because of method ``_is_sub_mapped_node`` returns false as it finds sub_mapping_tosca_template is already set.

Revision history for this message
Ayumu Ueha (ueha) wrote :
Revision history for this message
Ayumu Ueha (ueha) wrote :

Hi tosca-parser teams!
I'm working with tacker project.

Original bug ticket is https://bugs.launchpad.net/tacker/+bug/1881219.
This problem seems to occur by tosca-parser's bug.

It seems to work fine if I remove `not nodetemplate.sub_mapping_tosca_template` from the if expression in method `_is_sub_mapped_node`.

So I will push a patch fix as above, and could you check this details and patch contents.
Thanks!

Changed in tosca-parser:
assignee: nobody → Ayumu Ueha (ueha)
status: New → In Progress
Revision history for this message
Itsuro Oda (oda-g) wrote :
Changed in tosca-parser:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tosca-parser 2.2.0

This issue was fixed in the openstack/tosca-parser 2.2.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.