an internal exeption is raised if nsd's vnfd does not exist

Bug #1709534 reported by yong sheng gong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
Won't Fix
Undecided
Unassigned

Bug Description

tacker nsd-create --nsd-file hello_nsd.yaml, which refer to an un-boarded vnfd:

2017-08-09 13:52:27.569 INFO tacker.db.db_base [req-b4d2ca32-c6f1-4a8a-8cd1-e4e314aeedd6 admin admin] No result found for hello-nsd-vnfd in <class 'tacker.db.vnfm.vnfm_db.VNFD'> table
2017-08-09 13:52:27.570 ERROR tacker.api.v1.resource [req-b4d2ca32-c6f1-4a8a-8cd1-e4e314aeedd6 admin admin] create failed: No details.: TypeError: 'NoneType' object has no attribute '__getitem__'
2017-08-09 13:52:27.570 TRACE tacker.api.v1.resource Traceback (most recent call last):
2017-08-09 13:52:27.570 TRACE tacker.api.v1.resource File "/opt/stack/tacker/tacker/api/v1/resource.py", line 77, in resource
2017-08-09 13:52:27.570 TRACE tacker.api.v1.resource result = method(request=request, **args)
2017-08-09 13:52:27.570 TRACE tacker.api.v1.resource File "/opt/stack/tacker/tacker/api/v1/base.py", line 393, in create
2017-08-09 13:52:27.570 TRACE tacker.api.v1.resource obj = obj_creator(request.context, **kwargs)
2017-08-09 13:52:27.570 TRACE tacker.api.v1.resource File "/opt/stack/tacker/tacker/common/log.py", line 35, in wrapper
2017-08-09 13:52:27.570 TRACE tacker.api.v1.resource return method(*args, **kwargs)
2017-08-09 13:52:27.570 TRACE tacker.api.v1.resource File "/opt/stack/tacker/tacker/nfvo/nfvo_plugin.py", line 531, in create_nsd
2017-08-09 13:52:27.570 TRACE tacker.api.v1.resource self._parse_template_input(context, nsd)
2017-08-09 13:52:27.570 TRACE tacker.api.v1.resource File "/opt/stack/tacker/tacker/nfvo/nfvo_plugin.py", line 547, in _parse_template_input
2017-08-09 13:52:27.570 TRACE tacker.api.v1.resource vnfd = vnfm_plugin.get_vnfd(context, vnfd_name)
2017-08-09 13:52:27.570 TRACE tacker.api.v1.resource File "/opt/stack/tacker/tacker/db/vnfm/vnfm_db.py", line 341, in get_vnfd
2017-08-09 13:52:27.570 TRACE tacker.api.v1.resource return self._make_vnfd_dict(vnfd_db)
2017-08-09 13:52:27.570 TRACE tacker.api.v1.resource File "/opt/stack/tacker/tacker/db/vnfm/vnfm_db.py", line 204, in _make_vnfd_dict
2017-08-09 13:52:27.570 TRACE tacker.api.v1.resource 'attributes': self._make_attributes_dict(vnfd['attributes']),
2017-08-09 13:52:27.570 TRACE tacker.api.v1.resource TypeError: 'NoneType' object has no attribute '__getitem__'
2017-08-09 13:52:27.570 TRACE tacker.api.v1.resource
2017-08-09 13:52:27.571 INFO tacker.wsgi [req-b4d2ca32-c6f1-4a8a-8cd1-e4e314aeedd6 admin admin] 192.168.252.140 - - [09/Aug/2017 13:52:27] "POST /v1.0/nsds.json HTTP/1.1" 500 367 0.030273

Yasufumi Ogawa (yasufum)
Changed in tacker:
status: New → Won't Fix
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.