I think you have type and name flipped.
vnf-type should be the model name and vnf-name should be an instancename.
Although I could be interpreting your variable names incorrectly.
Brian
"vnf-name": "{{vnf-modelinfo-1-modelname}}",
"vnf-type": "{{vnf-modelinfo-1-modelinstancename}}"
"vnf-name":"ubuntu16test-cffd481f-78fa-4265-99da-5ea7ebf47de5_vnf_0",
"vnf-type":"ubuntu16test/ubuntu16test 0"
From: [email protected] <[email protected]> On Behalf Of
Morgan Richomme via lists.onap.org
Sent: Tuesday, December 15, 2020 10:13 AM
To: [email protected]; [email protected]
Subject: Re: [onap-discuss] Error: "The module named 'VNF-API' does not exist."
at SDNC Preload Request #guilin
hard to tell as I do not have the context
I usually check this kind of things through the basic_vm test integrated in the
CI/CD chain and leveraging python-onapsdk
see
https://docs.onap.org/projects/onap-integration/en/guilin/integration-tests.html<https://urldefense.com/v3/__https:/docs.onap.org/projects/onap-integration/en/guilin/integration-tests.html__;!!BhdT!zMrtgj5Pp7Cspc6EXSpG9cybW5MLRest7MVKsHJEjjOYMVfkPq6HKPKakym6rw4$>
e.g; of successful logs (daily master of the day), where you can find the
request to the SO and then compare with your test:
https://logs.onap.org/onap-integration/daily/onap_daily_pod4_master/12-15-2020_06-12/smoke-usecases/basic_vm/reporting.html<https://urldefense.com/v3/__https:/logs.onap.org/onap-integration/daily/onap_daily_pod4_master/12-15-2020_06-12/smoke-usecases/basic_vm/reporting.html__;!!BhdT!zMrtgj5Pp7Cspc6EXSpG9cybW5MLRest7MVKsHJEjjOYMVfkPq6HKPKaPkeShI8$>
=> full logs
https://logs.onap.org/onap-integration/daily/onap_daily_pod4_master/12-15-2020_06-12/smoke-usecases/basic_vm/pythonsdk.debug.log<https://urldefense.com/v3/__https:/logs.onap.org/onap-integration/daily/onap_daily_pod4_master/12-15-2020_06-12/smoke-usecases/basic_vm/pythonsdk.debug.log__;!!BhdT!zMrtgj5Pp7Cspc6EXSpG9cybW5MLRest7MVKsHJEjjOYMVfkPq6HKPKaactglq8$>
2020-12-15 05:50:50,429 DEBUG 103:onap_service.py(1) - [None][Upload VF module
preload using GENERIC-RESOURCE-API] url used:
https://sdnc.api.simpledemo.onap.org:30267/restconf/operations/GENERIC-RESOURCE-API:preload-vf-module-topology-operation<https://urldefense.com/v3/__https:/sdnc.api.simpledemo.onap.org:30267/restconf/operations/GENERIC-RESOURCE-API:preload-vf-module-topology-operation__;!!BhdT!zMrtgj5Pp7Cspc6EXSpG9cybW5MLRest7MVKsHJEjjOYMVfkPq6HKPKaWZ3Qr0c$>
2020-12-15 05:50:50,430 DEBUG 104:onap_service.py(1) - [None][Upload VF module
preload using GENERIC-RESOURCE-API] data sent: {
"input":{
"preload-vf-module-topology-information":{
"vf-module-topology":{
"vf-module-topology-identifier":{
"vf-module-name":"ubuntu16test-cffd481f-78fa-4265-99da-5ea7ebf47de5"
},
"vf-module-parameters": {
"param": [{'name': 'ubuntu16_image_name', 'value':
'ubuntu-16.04-daily'}, {'name': 'ubuntu16_key_name', 'value': 'cleouverte'},
{'name': 'ubuntu16_pub_key', 'value': 'ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAABAQDY15cdBmIs2XOpe4EiFCsaY6bmUmK/GysMoLl4UG51JCfJwvwoWCoA+6mDIbymZxhxq9IGxilp/yTA6WQ9s/5pBag1cUMJmFuda9PjOkXl04jgqh5tR6I+GZ97AvCg93KAECis5ubSqw1xOCj4utfEUtPoF1OuzqM/lE5mY4N6VKXn+fT7pCD6cifBEs6JHhVNvs5OLLp/tO8Pa3kKYQOdyS0xc3rh+t2lrzvKUSWGZbX+dLiFiEpjsUL3tDqzkEMNUn4pdv69OJuzWHCxRWPfdrY9Wg0j3mJesP29EBht+w+EC9/kBKq+1VKdmsXUXAcjEvjovVL8l1BrX3BY0R8D
imported-openssh-key'}, {'name': 'ubuntu16_flavor_name', 'value': 'm1.small'},
{'name': 'VM_name', 'value': 'ubuntu16test-VM-01'}, {'name': 'vnf_id', 'value':
'ubuntu16test-VNF-instance'}, {'name': 'vf_module_id', 'value':
'ubuntu16test-vfmodule-instance'}, {'name': 'vnf_name', 'value':
'ubuntu16test-VNF'}, {'name': 'admin_plane_net_name', 'value': 'admin'}]
}
},
"vnf-topology-identifier-structure":{
"vnf-name":"ubuntu16test-cffd481f-78fa-4265-99da-5ea7ebf47de5_vnf_0",
"vnf-type":"ubuntu16test/ubuntu16test 0"
},
"vnf-resource-assignments":{
"availability-zones":{
"availability-zone":[
"nova"
],
"max-count":1
},
"vnf-networks":{
"vnf-network":[]
}
}
},
"request-information":{
"request-id":"test",
"order-version":"1",
"notification-url":"onap.org",
"order-number":"1",
"request-action":"PreloadVfModuleRequest"
},
"sdnc-request-header":{
"svc-request-id":"test",
"svc-notification-url":"http:\/\/onap.org:8080\/adapters\/rest\/SDNCNotify"<https://urldefense.com/v3/__http:/onap.org:8080*5C/adapters*5C/rest*5C/SDNCNotify*22__;JSUlJQ!!BhdT!zMrtgj5Pp7Cspc6EXSpG9cybW5MLRest7MVKsHJEjjOYMVfkPq6HKPKaljp1pB4$>,
"svc-action":"reserve"
}
}
}
/Morgan
________________________________
De : [email protected]<mailto:[email protected]>
[[email protected]]
Envoyé : mardi 15 décembre 2020 16:04
À : RICHOMME Morgan TGI/OLN;
[email protected]<mailto:[email protected]>
Objet : Re: [onap-discuss] Error: "The module named 'VNF-API' does not exist."
at SDNC Preload Request #guilin
Hi Morgan,
I was able to preload the data with GR-API module. Unfortunatly, at the VF
module instantiation, it gets error. I am not sure what it is missing.
I am taking this page as a ref
https://docs.onap.org/en/guilin/guides/onap-user/instantiate/instantiation/so1/index.html<https://urldefense.com/v3/__https:/docs.onap.org/en/guilin/guides/onap-user/instantiate/instantiation/so1/index.html__;!!BhdT!zMrtgj5Pp7Cspc6EXSpG9cybW5MLRest7MVKsHJEjjOYMVfkPq6HKPKafjCWOWc$>
The GR-API request to preload to SDNC:
https://{{k8s}}:30267/restconf/operations/GENERIC-RESOURCE-API:preload-vf-module-topology-operation<https://%7b%7bk8s%7d%7d:30267/restconf/operations/GENERIC-RESOURCE-API:preload-vf-module-topology-operation>
{
"input": {
"request-information": {
"notification-url":
"https://onap.org"<https://urldefense.com/v3/__https:/onap.org*22__;JQ!!BhdT!zMrtgj5Pp7Cspc6EXSpG9cybW5MLRest7MVKsHJEjjOYMVfkPq6HKPKaB69DgD0$>,
"order-number": "1",
"order-version": "1",
"request-action": "PreloadVfModuleRequest",
"request-id": "test"
},
"sdnc-request-header": {
"svc-action": "reserve",
"svc-notification-url":
"http://onap.org:8080/adapters/rest/SDNCNotify"<https://urldefense.com/v3/__http:/onap.org:8080/adapters/rest/SDNCNotify*22__;JQ!!BhdT!zMrtgj5Pp7Cspc6EXSpG9cybW5MLRest7MVKsHJEjjOYMVfkPq6HKPKa4zlkhNw$>,
"svc-request-id": "test"
},
"preload-vf-module-topology-information": {
"vnf-resource-assignments": {
"availability-zones": {
"availability-zone": [],
"max-count": "1"
},
"vnf-networks": {
"vnf-network": []
}
},
"vf-module-topology": {
"vf-module-topology-identifier": {
"vf-module-name": "{{vnf-vfmodule-1-modelinfo-modelname}}",
"vf-module-type": "{{vnf-vfmodule-1-modelinfo-modelname}}"
},
"vf-module-parameters": {
"param": []
}
},
"vnf-topology-identifier-structure": {
"vnf-name": "{{vnf-modelinfo-1-modelname}}",
"vnf-type": "{{vnf-modelinfo-1-modelinstancename}}"
}
}
}
}
The error at the VF module instantiation:
"requestStatus": {
"requestState": "FAILED",
"statusMessage": "STATUS: Error Source: SDNC, Error Message: There
are no VNFs defined in MD-SAL FLOW STATUS: All Rollback flows have completed
successfully ROLLBACK STATUS: Rollback has been completed successfully.",
"percentProgress": 100,
"timestamp": "Tue, 15 Dec 2020 14:39:48 GMT"
}
Thank you
Emin
_________________________________________________________________________________________________________________________
Ce message et ses pieces jointes peuvent contenir des informations
confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce
message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages
electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou
falsifie. Merci.
This message and its attachments may contain confidential or privileged
information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete
this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been
modified, changed or falsified.
Thank you.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22650): https://lists.onap.org/g/onap-discuss/message/22650
Mute This Topic: https://lists.onap.org/mt/78973459/21656
Mute #guilin:https://lists.onap.org/g/onap-discuss/mutehashtag/guilin
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-