Can't parse provided NFV example: tosca_helloworld_nfv.yaml

Bug #1819027 reported by Matteo Pergolesi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
TOSCA Parser
New
Undecided
Unassigned

Bug Description

Hello,
I can't parse the provided tosca_helloworld_nfv.yaml. You can find the python log attached. Parsing fails both with CLI and from Python code. It looks like tosca-parser is not "importing" the extensions.
I also checked the toscaparser/tests/extensions/nfv/test_tosca_nfv_tpl.py file and it's similar to my code.

My install procedure:

git clone <email address hidden>:openstack/tosca-parser.git
cd tosca-parser
pipenv install --skip-lock --three
pipenv install -r requirements.txt
pipenv run python tosca_parser.py --template-file=toscaparser/tests/data/tosca_helloworld.yaml #works
pipenv run python tosca_parser.py --template-file=toscaparser/extensions/nfv/tests/data/tosca_helloworld_nfv.yaml #errors

Most significative error:

InvalidTemplateVersion: The template version "tosca_simple_profile_for_nfv_1_0_0" is invalid. Valid versions are "tosca_simple_yaml_1_0".

Tags: nfv
Revision history for this message
Matteo Pergolesi (matpergo) wrote :
Revision history for this message
Matteo Pergolesi (matpergo) wrote :

Update. If I install from pypi instead of github source, it works

pipenv install --skip-lock --three
pipenv install tosca-parser
cd .venv/bin
pipenv run python ./tosca-parser --template-file=../../toscaparser/extensions/nfv/tests/data/tosca_helloworld_nfv.yaml

version: tosca_simple_profile_for_nfv_1_0_0

description: Template for deploying a single server with predefined properties.

nodetemplates:
 VNF1
 VDU1
 CP1
 PrivateNetwork

I don't know if this is still relevant. Please delete if not.

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.