nsd-create failed abnormally if no import sesction in template

Bug #1814855 reported by dharmendra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
Fix Released
Medium
dharmendra

Bug Description

While creating ns descriptor with a template which don't have import section, create command failed abnormally with error message: internal server error while processing your request.

2019-02-06 08:18:41.355 3820 ERROR tacker.api.v1.resource obj = obj_creator(request.context, **kwargs)
2019-02-06 08:18:41.355 3820 ERROR tacker.api.v1.resource File "/opt/stack/tacker/tacker/common/log.py", line 35, in wrapper
2019-02-06 08:18:41.355 3820 ERROR tacker.api.v1.resource return method(*args, **kwargs)
2019-02-06 08:18:41.355 3820 ERROR tacker.api.v1.resource File "/opt/stack/tacker/tacker/nfvo/nfvo_plugin.py", line 614, in create_nsd
2019-02-06 08:18:41.355 3820 ERROR tacker.api.v1.resource self._parse_template_input(context, nsd)
2019-02-06 08:18:41.355 3820 ERROR tacker.api.v1.resource File "/opt/stack/tacker/tacker/nfvo/nfvo_plugin.py", line 626, in _parse_template_input
2019-02-06 08:18:41.355 3820 ERROR tacker.api.v1.resource vnfd_imports = inner_nsd_dict['imports']
2019-02-06 08:18:41.355 3820 ERROR tacker.api.v1.resource KeyError: 'imports'

Changed in tacker:
assignee: nobody → dharmendra (dharmendra-kushwaha)
importance: Undecided → Medium
milestone: none → stein-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tacker (master)

Fix proposed to branch: master
Review: https://review.openstack.org/635473

Changed in tacker:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tacker (master)

Reviewed: https://review.openstack.org/635473
Committed: https://git.openstack.org/cgit/openstack/tacker/commit/?id=af30f95205e31c59f589f48dc6ccac8c86e1ed1c
Submitter: Zuul
Branch: master

commit af30f95205e31c59f589f48dc6ccac8c86e1ed1c
Author: ubuntu <email address hidden>
Date: Thu Feb 7 10:23:48 2019 +0000

    nsd-create failed abnormally if import sesction missing in template

    While creating ns descriptor with a template which missing import section,
    create command failed abnormally with error message: internal server error.
    This patch will fix the issue and will raise TOSCA parser error.

    Change-Id: I0c4a07b4fe1e6c87dc17e24c22f34e34fa6fd71e
    Closes-bug: #1814855

Changed in tacker:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tacker 1.0.0.0rc1

This issue was fixed in the openstack/tacker 1.0.0.0rc1 release candidate.

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.