Thanks for the inputs. Adding -k did not work. Adding --insecure at the beginning works though. And the response results are empty. Please find below.
root@master:~# curl --insecure -X PUT 'https://172.21.207.157:30233/aai/v13/query?format=resource' -H 'authorization: Basic VklEOlZJRA==' -H 'cache-control: no-cache' -H 'content-type: application/json' -H 'x-fromappid: VidAaiController' -H 'x-transactionid: bd6e812a-dad2-481f-aaaa-c36cec2f8494' -d '{"start" : "service-design-and-creation/models/", "query" : "query/serviceModels-byDistributionStatus?distributionStatus=DISTRIBUTION_COMPLETE_OK"}' {"results":[]} root@master:~# From: Sonsino, Ofir <[email protected]> Sent: Tuesday, December 11, 2018 5:11 PM To: Sangeeth G <[email protected]>; [email protected] Cc: Stern, Ittay <[email protected]> Subject: RE: [onap-discuss] OOM casablanca - VID issue Please add -k to the curl command From: Sangeeth G [mailto:[email protected]] Sent: Tuesday, December 11, 2018 1:20 PM To: [email protected]<mailto:[email protected]>; Sonsino, Ofir <[email protected]<mailto:[email protected]>> Cc: Stern, Ittay <[email protected]<mailto:[email protected]>> Subject: RE: [onap-discuss] OOM casablanca - VID issue It gives certificate error and host error. root@master:/home/ubuntu/oom/kubernetes/aai/charts# curl -X PUT 'https:// aai.api.simpledemo.onap.org:30233/aai/v13/query?format=resource' -H 'authorization: Basic VklEOlZJRA==' -H 'cache-control: no-cache' -H 'content-type: application/json' -H 'x-fromappid: VidAaiController' -H 'x-transactionid: bd6e812a-dad2-481f-aaaa-c36cec2f8494' -d '{"start" : "service-design-and-creation/models/", "query" : "query/serviceModels-byDistributionStatus?distributionStatus=DISTRIBUTION_COMPLETE_OK"}' -k curl: (60) server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none More details here: http://curl.haxx.se/docs/sslcerts.html<https://urldefense.proofpoint.com/v2/url?u=http-3A__curl.haxx.se_docs_sslcerts.html&d=DwQFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=r9I4HaeTZWnzwEqiRY1_Hv-5a-5rlv9P2qxiDTBCt58&m=N9XWsmrX7ae7uqE0rduLtnrVuC2Li_RelhulkzR4BiE&s=ze-ZIX2vKwUgsYrnFnWLzppsQl6lnxXPQH55C6ftxbM&e=> curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option. curl: (6) Could not resolve host: xn--k-5gn From: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> On Behalf Of Ofir Sonsino Sent: Tuesday, December 11, 2018 4:43 PM To: Sangeeth G <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]> Cc: Stern, Ittay <[email protected]<mailto:[email protected]>> Subject: Re: [onap-discuss] OOM casablanca - VID issue It might also work with aai.api.simpledemo.onap.org, or the floating IP From: Sangeeth G [mailto:[email protected]] Sent: Tuesday, December 11, 2018 1:10 PM To: Sonsino, Ofir <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]> Cc: Stern, Ittay <[email protected]<mailto:[email protected]>> Subject: RE: OOM casablanca - VID issue Hi Ofir, Which AAI pod IP or floating ip should I use on the API call. Best Regards, Sangeeth G From: Sonsino, Ofir <[email protected]<mailto:[email protected]>> Sent: Tuesday, December 11, 2018 4:20 PM To: [email protected]<mailto:[email protected]>; Sangeeth G <[email protected]<mailto:[email protected]>> Cc: Stern, Ittay <[email protected]<mailto:[email protected]>> Subject: RE: OOM casablanca - VID issue Hi Sangeeth, This is interesting, I'd like to investigate so we analyze it in time for Casablanca MR if needed. Can you please run the following command and share its results: curl -X PUT 'https://{{AAI_IP}}:30233/aai/v13/query?format=resource'<https://urldefense.proofpoint.com/v2/url?u=https-3A__-257b-257bAAI-5FIP-257d-257d-3A30233_aai_v13_query-3Fformat-3Dresource-27&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=r9I4HaeTZWnzwEqiRY1_Hv-5a-5rlv9P2qxiDTBCt58&m=rT7rNNh36NldOQBw6aNXQRyMjB5SKClM8VBg1DjhD4M&s=IqqM08odnA_DD30AZSQG0myc6nLdRFUZ2_Fo3fhEsBA&e=> -H 'authorization: Basic VklEOlZJRA==' -H 'cache-control: no-cache' -H 'content-type: application/json' -H 'x-fromappid: VidAaiController' -H 'x-transactionid: bd6e812a-dad2-481f-aaaa-c36cec2f8494' -d '{"start" : "service-design-and-creation/models/", "query" : "query/serviceModels-byDistributionStatus?distributionStatus=DISTRIBUTION_COMPLETE_OK"}' -k Thanks, Ofir From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Sangeeth G Sent: Tuesday, December 11, 2018 12:35 PM To: [email protected]<mailto:[email protected]> Subject: [onap-discuss] OOM casablanca - VID issue Hi All, I have deployed OOM Casablanca release. I am facing an issue in listing the Service Models in VID. After the service is distributed via SDC, When I opened VID to "Browse SDC Service Models", it displays empty results. Please find below screenshots of VID and SDC. Please suggest. [cid:[email protected]] [cid:[email protected]] Best Regards, Sangeeth G ============================================================================================================================ Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/Disclaimer.html<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.techmahindra.com_Disclaimer.html&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=r9I4HaeTZWnzwEqiRY1_Hv-5a-5rlv9P2qxiDTBCt58&m=tSgNShw9pwh5UINWm6vGngcCz6J34tTyIKePcyTOqLY&s=tEI76wRjIln6CnZ-24UpgfRQFTyAIjluBaJC1NCAa7c&e=> externally http://tim.techmahindra.com/tim/disclaimer.html<https://urldefense.proofpoint.com/v2/url?u=http-3A__tim.techmahindra.com_tim_disclaimer.html&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=r9I4HaeTZWnzwEqiRY1_Hv-5a-5rlv9P2qxiDTBCt58&m=tSgNShw9pwh5UINWm6vGngcCz6J34tTyIKePcyTOqLY&s=Xc19KEfSNLq7nvucppO6MxzrpOTj6afIDDzvWkp1Xmc&e=> internally within TechMahindra. ============================================================================================================================ -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14397): https://lists.onap.org/g/onap-discuss/message/14397 Mute This Topic: https://lists.onap.org/mt/28717981/21656 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
