Comment 0 for bug 1799683

Revision history for this message
Niraj Singh (nirajsingh) wrote :

Description
===========

Getting below error while creating VNF using scaling tosca template(tacker/sample/tosca-templates/vnfd/tosca-vnfd-alarm-scale.yaml) by replacing capabilities with flavor as input parameter.
ERROR: ValueError: : resources.SP1_group<nested_stack>.resources.tg4km2x35r7l<SP1_res.yaml>.resources.VDU1: : The Parameter (flavor) was not provided.

Steps to reproduce
==================

1) create vim
tacker vim-register --is-default --description default-vim --config-file samples/vim/vim_config.yaml VIM-openstack

2) create vnfd using attached tosca-template (tosca-vnfd-alarm-scale-with-input-param.yaml).
tacker vnfd-create --vnfd-file tosca-vnfd-alarm-scale-with-input-param.yaml VNFD1

3) Create a parameter file e.g. tosca-vnfd-alarm-scale-param-file.yaml and add below deatils:

 {
  flavor: 'm1.tiny',
 }

4) Create VNF using above parameter file(tosca-vnfd-alarm-scale-param-file.yaml) with below command:
tacker vnf-create --param-file tosca-vnfd-alarm-scale-param-file.yaml --vnfd-name VNFD1 VNF1

Expected result
===============

VNF should create successfully

Actual result
=============

ERROR: ValueError: : resources.SP1_group<nested_stack>.resources.tg4km2x35r7l<SP1_res.yaml>.resources.VDU1: : The Parameter (flavor) was not provided.