RFE: Tacker Automatic Image Creation doesn't work on parameterized imagesource
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tacker |
Fix Released
|
High
|
Cong Phuoc Hoang |
Bug Description
Template:
description: Demo example with auto image creation
metadata: {template_name: sample-
topology_template:
inputs:
imagesource:
type: string
description: Disk Size.
cpus:
type: integer
description: Number of CPUs for the server.
mempagesize:
type: integer
description: Memory page size.
disksz:
type: string
description: Disk Size.
memsz:
type: string
description: RAM Memory.
availability
type: string
description: The controller availability zone.
instancename:
type: string
description: The name of the instance.
net1cidr:
type: string
description: Net 1 network address and mask.
net1ipversion:
type: integer
description: Net 1 ip version.
net1name:
type: string
description: Name of the network 1.
net1type:
type: string
description: Type of the network 1.
net1physnet:
type: string
description: Type of the network 1.
net1vlanid:
type: integer
description: Net 1 vlan ID.
net2cidr:
type: string
description: Net 2 network address and mask.
net2ipversion:
type: integer
description: Net 2 ip version.
net2name:
type: string
description: Name of the network 2.
net2type:
type: string
description: Type of the network 2.
net2physnet:
type: string
description: Type of the network 2.
net2vlanid:
type: integer
description: Net 2 vlan ID.
net3cidr:
type: string
description: Net 3 network address and mask.
net3ipversion:
type: integer
description: Net 3 ip version.
net3name:
type: string
description: Name of the network 3.
net3type:
type: string
description: Type of the network 3.
net3physnet:
type: string
description: Type of the network 3.
net3vlanid:
type: integer
description: Net 3 vlan ID.
node_templates:
CP1:
requirements:
- virtualLink: {node: VL1}
- virtualBinding: {node: VDU}
type: tosca.nodes.
CP2:
requirements:
- virtualLink: {node: VL2}
- virtualBinding: {node: VDU}
type: tosca.nodes.
CP3:
requirements:
- virtualLink: {node: VL3}
- virtualBinding: {node: VDU}
type: tosca.nodes.
VDU:
artifacts: { VNF1: {file: { get_input: imagesource}, type: tosca.artifacts
capabilities:
properties: {availability_zone: { get_input: availabilityzone }, name: { get_input instancename} }
type: tosca.nodes.
VL1:
properties: {cidr: { get_input: net1cidr }, ip_version: { get_input: net1ipversion }, network_name: { get_input: net1name }, network_type: { get_input: net1type }, physical_network: { get_input: net1physnet }, segmentation_id: { get_input: net1vlanid }, vendor: Tacker}
type: tosca.nodes.nfv.VL
VL2:
properties: {cidr: { get_input: net2cidr }, ip_version: { get_input: net2ipversion }, network_name: { get_input: net2name }, network_type: { get_input: net2type }, physical_network: { get_input: net2physnet }, segmentation_id: { get_input: net2vlanid }, vendor: Tacker}
type: tosca.nodes.nfv.VL
VL3:
properties: {cidr: { get_input: net3cidr }, ip_version: { get_input: net3ipversion }, network_name: { get_input: net3name }, network_type: { get_input: net3type }, physical_network: { get_input: net3physnet }, segmentation_id: { get_input: net3vlanid }, vendor: Tacker}
type: tosca.nodes.nfv.VL
tosca_definitio
Parameter's file:
imagesource: 'http://
instancename: "Brocade"
availabilityzone: "nova"
cpus: 2
mempagesize: 1024
memsz: "2048 MB"
disksz: "20 GB"
mempagesize: 1024
disksz: "20 GB"
memsz: "2048 MB"
net1cidr: "10.3.0.0/16"
net1ipversion: 4
net1name: "net1test"
net1type: "vlan"
net1physnet: "physnet1"
net1vlanid: 10
net2cidr: "20.0.0.0/24"
net2ipversion: 4
net2name: "net2test"
net2type: "vlan"
net2physnet: "physnet1"
net2vlanid: 20
net3cidr: "30.0.0.0/24"
net3ipversion: 4
net3name: "net3test"
net3type: "vlan"
net3physnet: "physnet1"
net3vlanid: 30
Error returned:
Error: Failed to create VNF: ERROR: Property error: : resources.
Changed in tacker: | |
importance: | Undecided → High |
milestone: | none → stein-3 |
Changed in tacker: | |
assignee: | Cong Phuoc Hoang (hoangphuoc) → dharmendra (dharmendra-kushwaha) |
I see your vnfd template, it should be like that: https:/ /github. com/openstack/ tacker/ blob/master/ samples/ tosca-templates /vnfd/tosca- vnfd-image. yaml#L24- L27