Wrong value set required when passing parameter to VNFD

Bug #1643576 reported by helander
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
In Progress
Medium
dharmendra

Bug Description

In a VNFD template where the template is parameterized according to:

inputs:
  connection-type:
    type string

and

CP2:
  type: {get_input : connection-type}

The same template without the parameter looks like:

CP2:
  type: sriov

However when deploying the VNF "sriov" is not allowed as a value for "connection-type" but the Heat binding.vnic_type values (direct,normal, ...) are suggested.

It seems like them mapping between the VNFD type values and the Heat type values are "bypassed".

Ukesh (ukeshkumar)
Changed in tacker:
assignee: nobody → Ukesh (ukeshkumar)
Revision history for this message
Ukesh (ukeshkumar) wrote :

could you please share the VNFD template ?

Revision history for this message
helander (lehswe) wrote :

VNFD attached.

Ukesh (ukeshkumar)
Changed in tacker:
importance: Undecided → Medium
Revision history for this message
Sridhar Ramaswamy (srics-r) wrote :

This seems to be a duplicate of https://bugs.launchpad.net/tacker/+bug/1648003.

Is this issue isolated to using CP type value "sriov" ?

Changed in tacker:
milestone: none → ocata-3
Revision history for this message
helander (lehswe) wrote :

No this is not a duplicate of https://bugs.launchpad.net/tacker/+bug/1648003.

The reported problem is related to when the value "sriov" is not explicit in the VNFD but transfered in a "parameter".

If this problem is isolated to just CP and further limited to the "sriov" value or if it is a more general problem with regards to how parameterised values are mapped, I do not know.

Revision history for this message
Ukesh (ukeshkumar) wrote :

No this is not a duplicate of https://bugs.launchpad.net/tacker/+bug/1648003.

The problem here is, when the value "sriov" is passed via parameter, the current code won't map it to "direct" in the heat template.

One solution of this bug can be, we have to check for "sriov" string in the type and if it is a parameter, then we have to check its value for "sriov", if it is then instead of the parameter, we have to give directly the value "direct" for type of CP.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tacker (master)

Fix proposed to branch: master
Review: https://review.openstack.org/417752

Changed in tacker:
status: New → In Progress
Changed in tacker:
assignee: Ukesh (ukeshkumar) → dharmendra (dharmendra-kushwaha)
Revision history for this message
Sridhar Ramaswamy (srics-r) wrote :

Out of time for Ocata, moving to Pike.

Changed in tacker:
milestone: ocata-3 → pike-1
Changed in tacker:
milestone: pike-1 → pike-2
Changed in tacker:
milestone: pike-2 → pike-3
Changed in tacker:
milestone: pike-3 → none
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.