Hi Yuriy, I tried with below steps and here are the curl commands output.
Could you please have a look and verify it. CDS CBA & DD Bootstrap: rahul.negi@control01-onap:~$<mailto:rahul.negi@control01-onap:~$> curl --location --request POST 'http://localhost:33637/api/v1/blueprint-model/bootstrap' --header 'Content-Type: application/json' --header 'Authorization: Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==' --data-raw '{ "loadModelType" : true, "loadResourceDictionary" : true, "loadCBA" : false }' -vvv Note: Unnecessary use of -X or --request, POST is already inferred. * Trying 127.0.0.1... * TCP_NODELAY set * Connected to localhost (127.0.0.1) port 33637 (#0) > POST /api/v1/blueprint-model/bootstrap HTTP/1.1 > Host: localhost:33637 > User-Agent: curl/7.52.1 > Accept: */* > Content-Type: application/json > Authorization: Basic Y2NzZGthcHBzOmNjc2RrYXBwcw== > Content-Length: 78 > * upload completely sent off: 78 out of 78 bytes * Curl_http_done: called premature == 0 * Empty reply from server * Connection #0 to host localhost left intact curl: (52) Empty reply from server STEP 2: The problem occurs while trying Enrich command as below. rahul.negi@control01-onap:~$<mailto:rahul.negi@control01-onap:~$> curl --location --request POST 'http://localhost:33637/api/v1/blueprint-model/enrich' --header 'Authorization: Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==' --form 'file=@/C:/Users/rnbk7127/Desktop/Ansible_SNMP_CISS/cba.zip' -vv Note: Unnecessary use of -X or --request, POST is already inferred. * Trying 127.0.0.1... * TCP_NODELAY set * Connected to localhost (127.0.0.1) port 33637 (#0) * couldn't open file "/C:/Users/rnbk7127/Desktop/Ansible_SNMP_CISS/cba.zip" * Curl_http_done: called premature == 1 * stopped the pause stream! * Closing connection 0 curl: (26) couldn't open file "/C:/Users/rnbk7127/Desktop/Ansible_SNMP_CISS/cba.zip" Could you please tell me if anything am missing and please elaborate on your Step 1 mentioned below. Thank you & Regards, Rahul Negi From: MALAKOV, YURIY [mailto:[email protected]] Sent: Monday, September 14, 2020 20:01 To: NEGI Rahul TGI/OLN; [email protected]; [email protected] Subject: RE: [onap-discuss] CDS component of ONAP not supporting Ansible Script file type Rahul, Here is the postman collection for bootstrap, enrich, save and deploy. https://www.getpostman.com/collections/878061d291f9efe55463 CDS Bootstrap command for preloading the CDS Catalog Data for Data Dictionary, Node Types, and CBA: Step 1: Edit the blueprint processor HTTP service and change the ClusterIP to NodePort. This shall expose an http external node port need to execute the curl command in step 2. Step 2: Execute the Curl Command to preload the CDS Catalog Data for Data Dictionary, Node Types and CBA. Substitute k8s and cds_http_port with the right information. CDS CBA & DD Bootstrap curl --location --request POST 'http://{{k8s}}:{{cds_http_port}}/api/v1/blueprint-model/bootstrap' \ --header 'Content-Type: application/json' \ --header 'Authorization: Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==' \ --data-raw '{ "loadModelType" : true, "loadResourceDictionary" : true, "loadCBA" : false }' Enrich curl --location --request POST '{{k8s}}:30471/api/v1/blueprint-model/enrich' \ --header 'Authorization: Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==' \ --form 'file=@/C:/Users/Yura/Desktop/newpnf/newpnf.zip' Save CBA curl --location --request POST '{{k8s}}:32691/api/v1/blueprint-model' \ --header 'Authorization: Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==' \ --form 'file=@/C:/Users/Yura/Desktop/test/test.zip' Deploy CBA curl --location --request POST '{{k8s}}:32691/api/v1/blueprint-model/publish' \ --header 'Authorization: Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==' \ --form 'file=@/C:/Users/Yura/Desktop/test/test.zip' [cid:[email protected]] Yuriy Malakov ONAP/ECOMP SA/SE 732-420-3030, Q-Chat<qto://talk/ym9479> [email protected]<mailto:[email protected]> From: [email protected] <[email protected]> Sent: Monday, September 14, 2020 4:51 AM To: [email protected]; MALAKOV, YURIY <[email protected]>; [email protected] Subject: Re: [onap-discuss] CDS component of ONAP not supporting Ansible Script file type Hello Yuriy Malakov, As you mentioned that CDS UI is under construction and suggested to create our own CBA package manually. So, I did created the CBA files according to my use case and then packaged it to cba.zip file. But when I tried to import it in CDS UI, I saw that option "Import Package" is disabled. [cid:[email protected]] Can you please guide me how to integrate my package or deploy it in CDS environment or any other way around. Thank you and Regards, Rahul Negi _________________________________________________________________________________________________________________________ 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 (#22175): https://lists.onap.org/g/onap-discuss/message/22175 Mute This Topic: https://lists.onap.org/mt/76755535/21656 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
