tosca-parser does not replace the input variables for the relationship templates as well as the interface variables.

Bug #1698089 reported by MANAS
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
TOSCA Parser
In Progress
Medium
MANAS

Bug Description

The parametric values for relationship templates and the interface are not replaced.

Revision history for this message
Bob Haddleton (bob-haddleton) wrote :

Hi Manas:

Can you please provide a sample template for this scenario so we can identify the issue?

Thanks

Bob Haddleton

Changed in tosca-parser:
status: New → Incomplete
Revision history for this message
MANAS (manaskrmal) wrote :

topology_template:

  inputs:
    VDU_IP:
      type: string
      default: 10.0.0.159
      description: IP for the VDU

node_templates:

 VDU3:
      type: tosca.nodes.nfv.VDU
      artifacts:
        image:
          type: tosca.artifacts.Deployment.Image.VM.Qcow2
          file: Alpine.qcow2

      capabilities:
        host:
          properties:
            disk_size: 10 GB
            num_cpus: 1
            mem_size: 512 MB

      requirements:
        - connection1:
             node: VDU4
             relationship:
                 type: tosca.relationships.DependsOn

      interfaces:
        Standard:
          create: ../Scripts/create.sh
          configure:
            implementation: ../Scripts/config.sh
            inputs:
              VDU_ip: { get_input: VDU_IP }
          start: ../Scripts/start.sh

Revision history for this message
MANAS (manaskrmal) wrote :

The Key value pair as in Interface for the VDU4 for the VDU_ip: { get_input: VDU_IP } is not replaced by the input file.

Revision history for this message
MANAS (manaskrmal) wrote :

Input file:

   {

    VDU_IP: 10.0.0.109,

 }

Revision history for this message
MANAS (manaskrmal) wrote :

I have the code fixed already, once you accept the bug then I can raise code review for this fix.

Revision history for this message
MANAS (manaskrmal) wrote :

Any review comments on the bug??

Changed in tosca-parser:
importance: Undecided → Medium
status: Incomplete → New
Revision history for this message
Sahdev Zala (spzala) wrote :

Thanks Manas! Yours now.

Changed in tosca-parser:
assignee: nobody → MANAS (manaskrmal)
Revision history for this message
MANAS (manaskrmal) wrote :
Changed in tosca-parser:
status: New → In Progress
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.