vnf package upload failed with CSAR without policies

Bug #1847745 reported by Niraj Singh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
Fix Released
Undecided
Niraj Singh

Bug Description

vnf package upload failed with error "InvalidCSAR: 'NoneType' object is not iterable" if csar file does not contain policies.

Steps to reproduce:

1) create a csar file without policies. It should only contain VDU's information

2) create one vnf package using below command:

openstack vnf package create

3) upload vnf package using file with below command:

openstack vnf package upload <package_uuid> --path <csar file path>

Expected result:

vnf package upload successfully

Actual result:

InvalidCSAR: 'NoneType' object is not iterable

Niraj Singh (nirajsingh)
description: updated
Changed in tacker:
assignee: nobody → Niraj Singh (nirajsingh)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tacker (master)

Fix proposed to branch: master
Review: https://review.opendev.org/693289

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.opendev.org/693289
Committed: https://git.openstack.org/cgit/openstack/tacker/commit/?id=83bc8468b664ef9be400d3a684f18311f25efd75
Submitter: Zuul
Branch: master

commit 83bc8468b664ef9be400d3a684f18311f25efd75
Author: nirajsingh <email address hidden>
Date: Fri Oct 11 10:41:13 2019 +0000

    Allow VNF package upload without policies

    If you upload a vnf package without policies, currently
    it fails with an error message:
     "InvalidCSAR: 'NoneType' object is not iterable".

    This patch fixes this issue.

    Closes-Bug: #1847745

    Change-Id: I4d6907b4da639e62294f07cbc767a176af04337c

Changed in tacker:
status: In Progress → Fix Released
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.