Scaling with static ip should be handled properly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tacker |
In Progress
|
Undecided
|
Govindaiah M |
Bug Description
1. Create a vnfd with following template file.
tosca_definitio
description: VNF TOSCA template with input parameters
metadata:
template_name: sample-tosca-vnfd
topology_template:
inputs:
image_name:
type: string
description: Image Name
flavor:
type: string
description: Flavor Information
zone:
type: string
description: Zone Information
network:
type: string
description: mgmt network
management:
type: string
description: management network
ip_ad:
type: string
description: Ip address
pkt_in_network:
type: string
description: In network
pkt_
type: string
description: Out network
vendor:
type: string
description: Vendor information
incr:
type: string
description: increment number
cool_down:
type: string
description: cool down seconds
min_inst:
type: string
description: minimum instances
max_inst:
type: string
description: maximum instances
node_templates:
VDU1:
type: tosca.nodes.
properties:
image: { get_input: image_name}
flavor: {get_input: flavor}
config: |
param0: key1
param1: key2
CP1:
type: tosca.nodes.
properties:
management: { get_input: management }
ip_address: { get_input: ip_ad}
requirements:
- virtualLink:
node: VL1
- virtualBinding:
node: VDU1
CP2:
type: tosca.nodes.
properties:
requirements:
- virtualLink:
node: VL2
- virtualBinding:
node: VDU1
CP3:
type: tosca.nodes.
properties:
requirements:
- virtualLink:
node: VL3
- virtualBinding:
node: VDU1
VL1:
type: tosca.nodes.nfv.VL
properties:
vendor: {get_input: vendor}
VL2:
type: tosca.nodes.nfv.VL
properties:
vendor: {get_input: vendor}
VL3:
type: tosca.nodes.nfv.VL
properties:
vendor: {get_input: vendor}
policies:
- SP2:
type: tosca.policy.
properties:
cooldown: 60
targets: [VDU1]
2. Create a vnfd with above template and below param file.
{
image_name: 'cirros-
flavor: 'm1.tiny',
zone: 'nova',
network: 'net_mgmt',
management: 'true',
pkt_in_network: 'net0',
pkt_out_network: 'net1',
vendor: 'tacker',
incr: '1',
cool_down: '60',
min_inst: '1',
max_inst: '3',
ip_ad: '192.168.120.225'
3. When we scale out, scaling should not be allowed or handled properly and VDU1 should not get none ip.
Logs:
vyatta@
vyatta@
+------
| id | name | description | mgmt_url | status | vim_id | placement_attr | error_reason |
+------
| 4e41310f-2f39-4875 | vnf2 | VNF TOSCA template | {"VDU1": | ACTIVE | 1acba1d4-
| -a54e-1f49a099f545 | | with input parameters | ["192.168.
+------
vyatta@
vyatta@
vyatta@
+------
| id | name | description | mgmt_url | status | vim_id | placement_attr | error_reason |
+------
| 4e41310f-2f39-4875 | vnf2 | VNF TOSCA template | {"VDU1": ["192.168 | PENDING_SCALE_OUT | 1acba1d4-69c7-406b | {u'vim_name': u'VIM0'} | |
| -a54e-1f49a099f545 | | with input | .120.225"]} | | -8809-0f60f197bbc5 | | |
| | | parameters | | | | | |
+------
vyatta@
+------
| id | name | description | mgmt_url | status | vim_id | placement_attr | error_reason |
+------
| 4e41310f-2f39-4875 | vnf2 | VNF TOSCA template | {"VDU1": [null, | ACTIVE | 1acba1d4-
| -a54e-1f49a099f545 | | with input parameters | "192.168.120.225"]} | | 09-0f60f197bbc5 | | |
+------
vyatta@
vyatta@
}
Changed in tacker: | |
assignee: | nobody → Govindaiah M (govindaiah-m) |
status: | New → In Progress |