Parameter handling for NS deployment broken

Bug #1678017 reported by Jacob Schramm
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
Won't Fix
Undecided
Unassigned

Bug Description

Very similar to 1593030, param_values from ns['ns']['attributes'] is just a str and not a dict already parsed from YAML as the _process_parameterized_input() method expects.

Proposal: Load YAML before passing it:

# Step-1
param_values = {}
if ('param_values' in ns['ns']['attributes'] and
        ns['ns']['attributes']['param_values'] != ""):
    try:
        param_values = yaml.safe_load(
            ns['ns']['attributes']['param_values'])
    except Exception as e:
        LOG.debug("Params not well formed: %s", str(e))
        raise vnfm.ParamYAMLNotWellFormed(error_msg_details=str(e))

if 'get_input' in str(nsd_dict):
    self._process_parameterized_input(param_values, nsd_dict)

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