Tacker VNF create TypeError

Asked by Tuna on 2016-11-18

  Hello,

  I installed tacker on my controller node manually. I succeeded to start it, deploy a vnfd which were a sample on Tacker's Manual Installation page. (OpenWRT)

  When i try to create vnf, it stucks in ERROR status :

(tacker.log ERROR)
ERROR tacker.vnfm.plugin [-] VNF Create failed for vnf_id 47be08ca-b1ae-417b-9165-07cdf5ad12db

(heat.log)

ERROR heat.engine.resource Traceback (most recent call last):
ERROR heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 753, in _action_recorder
ERROR heat.engine.resource yield
ERROR heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 855, in _do_action
ERROR heat.engine.resource yield self.action_handler_task(action, args=handler_args)
ERROR heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/scheduler.py", line 336, in wrapper
ERROR heat.engine.resource step = next(subtask)
ERROR heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 800, in action_handler_task
ERROR heat.engine.resource handler_data = handler(*args)
ERROR heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/resources/openstack/nova/server.py", line 842, in handle_create
ERROR heat.engine.resource self._create_transport_credentials(self.properties)
ERROR heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/resources/openstack/nova/server.py", line 769, in _create_transport_credentials
ERROR heat.engine.resource self._create_keypair()
ERROR heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/resources/stack_user.py", line 133, in _create_keypair
ERROR heat.engine.resource user_id=user_id, project_id=self.stack.stack_user_project_id)
ERROR heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/clients/os/keystone/heat_keystoneclient.py", line 497, in create_stack_domain_user_keypair
ERROR heat.engine.resource project=project_id)
ERROR heat.engine.resource File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner
ERROR heat.engine.resource return wrapped(*args, **kwargs)
ERROR heat.engine.resource TypeError: create() takes at least 4 arguments (4 given)
INFO heat.engine.stack [req-c60d91bc-5d91-4bfc-9128-33a9619c04f7 37b9ad02cd884f9497ab3ed413375c51 3588415531b04f1cb69ef26016bca538 - - -] Stack CREATE FAILED (tacker.vnfm.infra_drivers.openstack.openstack_OpenStack-f76b4e3e-9543-49ec-a27c-f0a6024f1a60): Resource CREATE failed: TypeError: resources.VDU1: create() takes at least 4 arguments (4 given)

my template:

tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0

description: OpenWRT with services

metadata:
  template_name: OpenWRT

topology_template:
  node_templates:
    VDU1:
      type: tosca.nodes.nfv.VDU
      capabilities:
        nfv_compute:
          properties:
            num_cpus: 1
            mem_size: 512
            disk_size: 1
      properties:
        image: f9071398-2afc-4300-9538-51354e5261d6
        config:
          firewall: |
            package firewall

            config defaults
                option syn_flood '1'
                option input 'ACCEPT'
                option output 'ACCEPT'
                option forward 'REJECT'

            config zone
                option name 'lan'
                list network 'lan'
                option input 'ACCEPT'
                option output 'ACCEPT'
                option forward 'ACCEPT'

            config zone
                option name 'wan'
                list network 'wan'
                list network 'wan6'
                option input 'REJECT'
                option output 'ACCEPT'
                option forward 'REJECT'
                option masq '1'
                option mtu_fix '1'

            config forwarding
                option src 'lan'
                option dest 'wan'

            config rule
                option name 'Allow-DHCP-Renew'
                option src 'wan'
                option proto 'udp'
                option dest_port '68'
                option target 'ACCEPT'
                option family 'ipv4'

            config rule
                option name 'Allow-Ping'
                option src 'wan'
                option proto 'icmp'
                option icmp_type 'echo-request'
                option family 'ipv4'
                option target 'ACCEPT'
        mgmt_driver: openwrt
        monitoring_policy:
          name: ping
          parameters:
            count: 3
            interval: 10
          actions:
            failure: respawn

    CP1:
      type: tosca.nodes.nfv.CP.Tacker
      properties:
        management: true
        anti_spoofing_protection: false
      requirements:
        - virtualLink:
            node: VL1
        - virtualBinding:
            node: VDU1

    VL1:
      type: tosca.nodes.nfv.VL
      properties:
        network_name: provider
        vendor: Tacker

I can share if there is any other neccessary information. Thanks a lot.

Question information

Language:
English Edit question
Status:
Answered
For:
tacker Edit question
Assignee:
No assignee Edit question
Last query:
2016-11-29
Last reply:
2017-02-28
Tuna (hardrush) said : #1

Hello,

Bug " https://bugs.launchpad.net/bugs/1642926 " is mine too and it's not
resolved yet. I'm waiting for any kind of help. Thanks.

Best regards.

2016-11-29 13:43 GMT+03:00 Ukesh <email address hidden>:

> Your question #404191 on tacker changed:
> https://answers.launchpad.net/tacker/+question/404191
>
> Linked to bug: #1642926
> https://bugs.launchpad.net/bugs/1642926
> "Tacker VNF create TypeError"
>
> --
> You received this question notification because you asked the question.
>

Launchpad Janitor (janitor) said : #2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Ashish (ashish235) said : #3

Same issue here. . can someone help on this?

Damir Besic (dbesic) said : #4

Any update on this please?

Hit the same, can't remember where I saw this workaround but it was a matter of adding this property in the VDU definition:
"user_data_format: RAW"

Example:

topology_template:
  node_templates:
    VDU1:
      type: tosca.nodes.nfv.VDU.Tacker
      properties:
        user_data_format: RAW
         ....

Sridhar Ramaswamy (srics-r) said : #6

Re-opening as this issue is reported by multiple users.

jiangxing (jiangxing) said : #7

Same issue, and add "user_data_format:RAW" to VDU definition can resolve it.

Can you help with this problem?

Provide an answer of your own, or ask Tuna for more information if necessary.

To post a message you must log in.