Hi all,
I am deploying a service composed by a vnf that must be deployed on KUD 
(kubernetes infrastructure for dublin) .

I have instantiated the entire service via VID
I perform the vfmodule creation by adding the supplementary file (containing 
the definition version and name and profile name),
It has been deployed properly on KUD.

Now I want to deploy it via SO request that invokes the CreateVnfandVfmoduels 
bpmn.

All goes well until the 'crateStack()' function that returns the following 
error (from openstackAdapter log):

2019-12-12T12:59:42.914Z|| o.o.so.logging.jaxrs.filter.PayloadLoggingFilter - 
{"generic-vnf-id":"fe034cc8-11e2-44e5-a26e-0aa5eec37ccd","vf-module-id":"c1e0c451-db5f-4d59-9980-541f9aea03c8","vf-module-model-invariant-id":"8b0f857a-8149-42
0b-9431-ee4f8e6dc5e4","vf-module-model-version-id":"f02afd6c-e604-4873-9b0d-b5fb5532e3da","vf-module-model-customization-id":"bf777bb2-56a0-426b-ae64-82d8b9888ed9","oof_directives":{},"sdnc_directives":{"attributes":[{"attribute_name":"v
f_module_id","attribute_value":"c1e0c451-db5f-4d59-9980-541f9aea03c8"},{"attribute_name":"template_type","attribute_value":"heat"},{"attribute_name":"vnf_id","attribute_value":"fe034cc8-11e2-44e5-a26e-0aa5eec37ccd"},{"attribute_name":"de
finition-name","attribute_value":"KudTest..base_dummy..module-0"},{"attribute_name":"NetID","attribute_value":"ceeb0b9e-1218-44bc-99ee-4eb5008b2f3f"},{"attribute_name":"vnf_name","attribute_value":"kud_test"},{"attribute_name":"environme
nt_context","attribute_value":""},{"attribute_name":"profile-name","attribute_value":"p1"},{"attribute_name":"workload_context","attribute_value":""},{"attribute_name":"definition-version","attribute_value":"1"},{"attribute_name":"vf_mod
ule_index","attribute_value":"0"},{"attribute_name":"vf_module_name","attribute_value":"kud_test_base_dummy_0"}]},
 *"user_directives":{},* "template_type":"heat","template_data":{"template":"# 
#==================LICENSE_START================
==========================\r\n# #\r\n# # Copyright (C) 2019 Intel 
Corporation\r\n# # SPDX-License-Identifier: Apache-2.0\r\n# #\r\n# 
#==================LICENSE_END============================================\r\n\r\nheat_template_version:
2016-10-14\r\ndescription: Heat template to deploy dummy 
VNF\r\n\r\nparameters:\r\n dummy_name_0:\r\n   type: string\r\n   label: name 
of vm\r\n   description: Dummy name\r\n\r\n vnf_id:\r\n   type: string\r\n   
label: id of vnf\r\n   d
escription: Provided by ONAP\r\n\r\n vnf_name:\r\n   type: string\r\n   label: 
name of vnf\r\n   description: Provided by ONAP\r\n\r\n vf_module_id:\r\n   
type: string\r\n   label: vnf module id\r\n   description: Provided by 
ONAP\r\n\r\
n dummy_image_name:\r\n   type: string\r\n   label: Image name or ID\r\n   
description: Dummy image name\r\n\r\n dummy_flavor_name:\r\n   type: string\r\n 
  label: flavor\r\n   description: Dummy flavor\r\n\r\nresources:\r\n 
dummy_0:\r\n
type: OS::Nova::Server\r\n   properties:\r\n     name: { get_param: 
dummy_name_0 }\r\n     image: { get_param: dummy_image_name }\r\n     flavor: { 
get_param: dummy_flavor_name }\r\n     metadata: { vnf_name: { get_param: 
vnf_name },
vnf_id: { get_param: vnf_id }, vf_module_id: { get_param: vf_module_id 
}}","stack_name":"kud_test_base_dummy_0","parameters":{"vf_module_id":"c1e0c451-db5f-4d59-9980-541f9aea03c8","vnf_id":"fe034cc8-11e2-44e5-a26e-0aa5eec37ccd","vnf_name
":"kud_test"},"timeout_mins":120,"environment":"parameters:\n  
dummy_flavor_name: \"dummy.default\"\n  dummy_image_name: \"dummy\"\n  
dummy_name_0: \"dummy_1_0\"\n  vf_module_id: \"PROVIDED_BY_ONAP\"\n  vnf_id: 
\"PROVIDED_BY_ONAP\"\n  vn
f_name: \"PROVIDED_BY_ONAP\"\n","disable_rollback":true}}

2019-12-12T12:59:43.059Z|| o.o.so.logging.jaxrs.filter.PayloadLoggingFilter - 
Response from POST: 
http://msb-iag.onap:80/api/multicloud/v1/KubeOwner/KubeRegion/infra_workload
Response Headers: {Allow=[GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS], 
connection=[keep-alive], content-type=[text/html; charset=utf-8], Date=[Thu, 12 
Dec 2019 13:00:11 GMT], Server=[openresty], transfer-encoding=[chunked]} 
*definition-name is missing from user-directives*

2019-12-12T12:59:43.061Z|| org.onap.so.openstack.utils.MsoMulticloudUtils - 
Exception retrieving multicloud vfModule POST response body 
com.fasterxml.jackson.core.JsonParseException: *Unrecognized token 
'definition': was expecting ('true', 'false' or 'null')*
at [Source: (String)"definition-name is missing from user-directives"; line: 1, 
column: 11]
2019-12-12T12:59:43.061Z|| org.onap.so.adapters.vnf.MsoVnfPluginAdapterImpl - 
RA_CREATE_VNF_ERR svc_e2e_20191212/kud_test 0::KudTest..base_dummy..module-0 
KubeOwner KubeRegion 7a5f7a57c5a049be994268dc63ebbbfb VDU 300 MsoException - 
insta
ntiateVdu
org.onap.so.adapters.vdu.VduException: MsoMulticloudUtils (instantiateVDU): 
createStack Exception
at 
org.onap.so.openstack.utils.MsoMulticloudUtils.instantiateVdu(MsoMulticloudUtils.java:898)

The cause of the error is that the user_directives array is empty .
Maybe the issue is the following :

* Dublin branch: MsoMulticloudUtils.java#L161 
https://github.com/onap/so/blob/Dublin/adapters/mso-adapter-utils/src/main/java/org/onap/so/openstack/utils/MsoMulticloudUtils.java#L161
* userDirectiver is always empty
* This issue is solved into master branch as following:

* Master branch:MsoMulticloudUtils.java#L159 
https://github.com/onap/so/blob/master/adapters/mso-adapter-utils/src/main/java/org/onap/so/openstack/utils/MsoMulticloudUtils.java#L159

So, to solve this issue, which SO components (now working on dublin images) 
should I update to the Master's version ones?

Can someone help me to solve it?
Thanks,
Aniello Paolo Malinconico

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#19654): https://lists.onap.org/g/onap-discuss/message/19654
Mute This Topic: https://lists.onap.org/mt/68274795/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to