creating VNF with VDU attatched volume and scaling policy is failed

Bug #1834402 reported by Hiroya Nakaya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
Confirmed
Low
Manpreet Kaur

Bug Description

Creating vnf with VDU attached volume and scaling policy 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

```

Hiroya Nakaya (nakkay)
summary: - creating VNF with VDU attatched volume is failed
+ creating VNF with VDU attatched volume and scaling policy is failed
description: updated
Changed in tacker:
assignee: nobody → Manpreet Kaur (manpreetk)
Changed in tacker:
status: New → Confirmed
Revision history for this message
Yasufumi Ogawa (yasufum) wrote :

Hi Manpreet,
Do you have any update?

Revision history for this message
Manpreet Kaur (manpreetk) wrote :

Hi,

Sorry, no update for now. Will be working upon the same in Y cycle.
Thanks.

Yasufumi Ogawa (yasufum)
Changed in tacker:
importance: Undecided → Low
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.