Test fails due to some VNFDs have an invalid policy type

Bug #1909312 reported by Ayumu Ueha
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
Fix Released
Medium
LiangLu

Bug Description

Added the process to check the type of policies in tosca-parser. [1]
When using tosca-parser with this change, some VNFDs fail to validate policies.

[1] https://review.opendev.org/c/openstack/tosca-parser/+/763144

Here are the Zuul logs:
---
\tInvalidTypeError: Type "tosca.datatypes.nfv.ScaleInfo" is not a valid type.
\t\tFile /usr/lib/python3.8/runpy.py, line 194, in _run_module_as_main
\t\t\treturn _run_code(code, main_globals, None,
...
\t\tFile /home/zuul/src/opendev.org/openstack/tacker/tacker/common/csar_utils.py, line 543, in load_csar_data
\t\t\ttosca = ToscaTemplate(zip_path, None, True)
\t\tFile /home/zuul/src/opendev.org/openstack/tacker/.tox/py38/src/tosca-parser/toscaparser/tosca_template.py, line 103, in __init__
\t\t\tself.topology_template = self._topology_template()
\t\tFile /home/zuul/src/opendev.org/openstack/tacker/.tox/py38/src/tosca-parser/toscaparser/tosca_template.py, line 118, in _topology_template
\t\t\treturn TopologyTemplate(self._tpl_topology_template(),
\t\tFile /home/zuul/src/opendev.org/openstack/tacker/.tox/py38/src/tosca-parser/toscaparser/topology_template.py, line 62, in __init__
\t\t\tself.policies = self._policies()
\t\tFile /home/zuul/src/opendev.org/openstack/tacker/.tox/py38/src/tosca-parser/toscaparser/topology_template.py, line 150, in _policies
\t\t\tpolicyObj.validate()
\t\tFile /home/zuul/src/opendev.org/openstack/tacker/.tox/py38/src/tosca-parser/toscaparser/policy.py, line 96, in validate
\t\t\tprop.validate()
...
---

Need to modify the VNFD definition so that validation passes successfully.
The following modification may be required:
- lack of VNFD type definitions
- lack of required parameters
- and so on..

Revision history for this message
Yoshito Ito (ito.yoshito) wrote :

I believe this bug is fixed in [1]. It seems "Closes-Bug:" doesn't work.

[1] https://review.opendev.org/c/openstack/tacker/+/769083

Changed in tacker:
status: New → Fix Committed
Revision history for this message
Yasufumi Ogawa (yasufum) wrote :

Thanks for update.

Changed in tacker:
importance: Undecided → Medium
assignee: nobody → LiangLu (lianglu)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tacker 5.0.0.0rc1

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

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