Creating vnf with VDU attached volume is faild.
use vnfd ```` tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0 description: Demo example
metadata: template_name: sample-tosca-vnfd
topology_template: node_templates: VDU1: type: tosca.nodes.nfv.VDU.Tacker capabilities: nfv_compute: properties: num_cpus: 1 mem_size: 512 MB disk_size: 1 GB properties: image: cirros-0.4.0-x86_64-disk availability_zone: nova mgmt_driver: noop config: | param0: key1 param1: key2
CP1: type: tosca.nodes.nfv.CP.Tacker properties: management: true order: 0 anti_spoofing_protection: false requirements: - virtualLink: node: VL1 - virtualBinding: node: VDU1
VB1: type: tosca.nodes.BlockStorage.Tacker properties: size: 1 GB
CB1: type: tosca.nodes.BlockStorageAttachment properties: location: /dev/vdb requirements: - virtualBinding: node: VDU1 - virtualAttachment: node: VB1
VL1: type: tosca.nodes.nfv.VL properties: network_name: net_mgmt vendor: Tacker policies: - SP1: type: tosca.policies.tacker.Scaling targets: [VDU1] properties: increment: 1 cooldown: 120 min_instances: 1 max_instances: 3 default_instances: 1 ````
Error log
```
2019-06-27 02:35:39.660 ERROR tacker.api.v1.resource [req-7b90d396-53d3-4f89-9806-b86ac55076b3 admin admin] create failed: No details.: HeatClientException: ERROR: The specified reference "VDU1" (in CB1.Properties.instance_uuid) is incorrect. 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource Traceback (most recent call last): 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource File "/opt/stack/tacker/tacker/api/v1/resource.py", line 77, in resource 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource result = method(request=request, **args) 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource File "/opt/stack/tacker/tacker/api/v1/base.py", line 393, in create 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource obj = obj_creator(request.context, **kwargs) 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource File "/opt/stack/tacker/tacker/vnfm/plugin.py", line 425, in create_vnf 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource vnf_dict = self._create_vnf(context, vnf_info, vim_auth, infra_driver) 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource File "/opt/stack/tacker/tacker/vnfm/plugin.py", line 378, in _create_vnf 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource self.delete_vnf(context, vnf_id) 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource self.force_reraise() 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource six.reraise(self.type_, self.value, self.tb) 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource File "/opt/stack/tacker/tacker/vnfm/plugin.py", line 372, in _create_vnf 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource context=context, vnf=vnf_dict, auth_attr=vim_auth) 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource File "/opt/stack/tacker/tacker/common/driver_manager.py", line 70, in invoke 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource return getattr(driver, method_name)(**kwargs) 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource File "/opt/stack/tacker/tacker/common/log.py", line 35, in wrapper 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource return method(*args, **kwargs) 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource File "/opt/stack/tacker/tacker/vnfm/infra_drivers/openstack/openstack.py", line 106, in create 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource stack = self._create_stack(heatclient, tth.vnf, tth.fields) 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource File "/opt/stack/tacker/tacker/common/log.py", line 35, in wrapper 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource return method(*args, **kwargs) 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource File "/opt/stack/tacker/tacker/vnfm/infra_drivers/openstack/openstack.py", line 122, in _create_stack 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource stack = heatclient.create(fields) 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource File "/opt/stack/tacker/tacker/vnfm/infra_drivers/openstack/heat_client.py", line 44, in create 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource raise vnfm.HeatClientException(msg=value) 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource HeatClientException: ERROR: The specified reference "VDU1" (in CB1.Properties.instance_uuid) is incorrect. 2019-06-27 02:35:39.660 11654 ERROR tacker.api.v1.resource
Creating vnf with VDU attached volume is faild.
use vnfd ns_version: tosca_simple_ profile_ for_nfv_ 1_0_0
````
tosca_definitio
description: Demo example
metadata:
template_name: sample-tosca-vnfd
topology_template: nfv.VDU. Tacker
nfv_compute:
properties:
num_ cpus: 1
mem_ size: 512 MB
disk_ size: 1 GB 0.4.0-x86_ 64-disk
availability_ zone: nova
mgmt_driver: noop
node_templates:
VDU1:
type: tosca.nodes.
capabilities:
properties:
image: cirros-
config: |
param0: key1
param1: key2
CP1: nfv.CP. Tacker
anti_spoofing_ protection: false
type: tosca.nodes.
properties:
management: true
order: 0
requirements:
- virtualLink:
node: VL1
- virtualBinding:
node: VDU1
VB1: BlockStorage. Tacker
type: tosca.nodes.
properties:
size: 1 GB
CB1: BlockStorageAtt achment
type: tosca.nodes.
properties:
location: /dev/vdb
requirements:
- virtualBinding:
node: VDU1
- virtualAttachment:
node: VB1
VL1:
network_ name: net_mgmt tacker. Scaling
increment: 1
min_ instances: 1
max_ instances: 3
default_ instances: 1
type: tosca.nodes.nfv.VL
properties:
vendor: Tacker
policies:
- SP1:
type: tosca.policies.
targets: [VDU1]
properties:
cooldown: 120
````
Error log
```
2019-06-27 02:35:39.660 ERROR tacker. api.v1. resource [req-7b90d396- 53d3-4f89- 9806-b86ac55076 b3 admin admin] create failed: No details.: HeatClientExcep tion: ERROR: The specified reference "VDU1" (in CB1.Properties. instance_ uuid) is incorrect. api.v1. resource Traceback (most recent call last): api.v1. resource File "/opt/stack/ tacker/ tacker/ api/v1/ resource. py", line 77, in resource api.v1. resource result = method( request= request, **args) api.v1. resource File "/opt/stack/ tacker/ tacker/ api/v1/ base.py" , line 393, in create api.v1. resource obj = obj_creator( request. context, **kwargs) api.v1. resource File "/opt/stack/ tacker/ tacker/ vnfm/plugin. py", line 425, in create_vnf api.v1. resource vnf_dict = self._create_ vnf(context, vnf_info, vim_auth, infra_driver) api.v1. resource File "/opt/stack/ tacker/ tacker/ vnfm/plugin. py", line 378, in _create_vnf api.v1. resource self.delete_ vnf(context, vnf_id) api.v1. resource File "/usr/local/ lib/python2. 7/dist- packages/ oslo_utils/ excutils. py", line 220, in __exit__ api.v1. resource self.force_ reraise( ) api.v1. resource File "/usr/local/ lib/python2. 7/dist- packages/ oslo_utils/ excutils. py", line 196, in force_reraise api.v1. resource six.reraise( self.type_ , self.value, self.tb) api.v1. resource File "/opt/stack/ tacker/ tacker/ vnfm/plugin. py", line 372, in _create_vnf api.v1. resource context=context, vnf=vnf_dict, auth_attr=vim_auth) api.v1. resource File "/opt/stack/ tacker/ tacker/ common/ driver_ manager. py", line 70, in invoke api.v1. resource return getattr(driver, method_ name)(* *kwargs) api.v1. resource File "/opt/stack/ tacker/ tacker/ common/ log.py" , line 35, in wrapper api.v1. resource return method(*args, **kwargs) api.v1. resource File "/opt/stack/ tacker/ tacker/ vnfm/infra_ drivers/ openstack/ openstack. py", line 106, in create api.v1. resource stack = self._create_ stack(heatclien t, tth.vnf, tth.fields) api.v1. resource File "/opt/stack/ tacker/ tacker/ common/ log.py" , line 35, in wrapper api.v1. resource return method(*args, **kwargs) api.v1. resource File "/opt/stack/ tacker/ tacker/ vnfm/infra_ drivers/ openstack/ openstack. py", line 122, in _create_stack api.v1. resource stack = heatclient. create( fields) api.v1. resource File "/opt/stack/ tacker/ tacker/ vnfm/infra_ drivers/ openstack/ heat_client. py", line 44, in create api.v1. resource raise vnfm.HeatClient Exception( msg=value) api.v1. resource HeatClientExcep tion: ERROR: The specified reference "VDU1" (in CB1.Properties. instance_ uuid) is incorrect. api.v1. resource
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
2019-06-27 02:35:39.660 11654 ERROR tacker.
```