Tacker VNF create TypeError

Bug #1642926 reported by Tuna
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
tacker
Confirmed
Undecided
Tuna

Bug Description

  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.

bulent (cenbb)
Changed in tacker:
status: New → Confirmed
Revision history for this message
Sridhar Ramaswamy (srics-r) wrote :

Can you share the version of Tacker & Heat ?

Revision history for this message
Tuna (hardrush) wrote :

Hello,

"httpd -v
Server version: Apache/2.4.6 (CentOS)
Server built: Jul 18 2016 15:30:14"

"heat --version
1.5.0"

"tacker --version
0.7.1"

Thanks a lot.

Revision history for this message
bulent (cenbb) wrote :

Hi
Did you have a chance to look at issue ? Having same problem

Revision history for this message
yong sheng gong (gongysh) wrote :

This is heat problem. please upgrade your heat.

Changed in tacker:
status: Confirmed → Invalid
Revision history for this message
futangw (futangw) wrote :

I had the same issue today with the same VNFD which could be used to create VNF successfully several days ago. don't know what happened and changed.

1944 2016-12-16 03:05:35.815 5955 ERROR heat.engine.resource File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner
          1945 2016-12-16 03:05:35.815 5955 ERROR heat.engine.resource return wrapped(*args, **kwargs)
          1946 2016-12-16 03:05:35.815 5955 ERROR heat.engine.resource TypeError: create() takes at least 4 arguments (4 given)
          1947 2016-12-16 03:05:35.815 5955 ERROR heat.engine.resource
          1948 2016-12-16 03:05:35.849 5955 INFO heat.engine.stack [req-863dc170-3ff0-4028-8522-589ec4ba4d5a 0338c68cf5254c6dadb128ee5607303a 54ad5f573f2346a1bfb83834895e10fe - - -] S tack CREATE FAILED (tacker.vnfm.infra_drivers.openstack.openstack_OpenStack-e1953d4e-b8f3-47a3-b164-ab7c13ab6a44): Resource CREATE failed: TypeError: resources.VDU1: cr eate() takes at least 4 arguments (4 given)

It's running on Newton.

Revision history for this message
Ashish (ashish235) wrote :

Same issue here.

[root@localhost ~(keystone_admin)]# tacker --version
0.8.1
[root@localhost ~(keystone_admin)]# heat --version
1.7.0

2017-01-11 07:35:10.745 3080 ERROR heat.engine.resource TypeError: create() takes at least 4 arguments (4 given)
2017-01-11 07:35:10.745 3080 ERROR heat.engine.resource
2017-01-11 07:35:10.802 3080 INFO heat.engine.stack [req-b2229356-e1ba-4fda-b99f-716914c3e247 634425448579467aa9da89f5e6d49179 4240db08e8d5473080c713abf66807a1 - - -] Stack CREATE FAILED (tacker.vnfm.infra_drivers.openstack.openstack_OpenStack-5bdb525f-98b7-40ba-93ab-01fd0de75966): Resource CREATE failed: TypeError: resources.VDU1: create() takes at least 4 arguments (4 given)

Changed in tacker:
status: Invalid → New
Revision history for this message
Tuna (hardrush) wrote :

Control your /etc/heat/policy.json file. Tacker's manual installation guide is a little confusing, problem is about "resource_types:OS::Nova::Flavor": "rule:project_admin" line. Don't change that line, neccessary roles are configured as default so you don't need to change anything. This solved my issue. (I had been changed the rule to role or made some other configuration, so that was the problem.)

Changed in tacker:
assignee: nobody → Tuna (hardrush)
Revision history for this message
Ashish (ashish235) wrote :

I didn't change that line in policy.json and I was aware of that configuration. This is the 5-6th time I 've installed tacker and I 'm facing this issue for 1st time.

I still have "resource_types:OS::Nova::Flavor": "rule:project_admin",

Ashish (ashish235)
Changed in tacker:
status: New → Confirmed
Revision history for this message
Ashish (ashish235) wrote :

Hi Team,

This bug is a major blocker for me. I was working on tacker for a project which was supposed to be production ready in 2 weeks and now I 'm helpless.

Can anyone help with the fix or a workaround for this problem? Because it now seems that tacker can't be used at all.

I 've Tacker installed in two different setups and I 've tried from both the setups to control one VIM which I 've and facing the same issue in both the cases.

If someone needs any debug/additional info do let me know.

Thanks.

--Ashish

Revision history for this message
Gianpietro Lavado (gianpietro.lavado) wrote :

I had the same issue and added the 'user_data_format: RAW' line to resolve it:

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

Took the suggestion from here: https://answers.launchpad.net/ubuntu/+source/heat/+question/406804

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.