Yusuf,

Please try the curl command using http instead of https against the pdps url.  
I think the images are set up to use http.  The doc you are pointing out may 
not be precise in that aspect.

With regards to the ?policy? component healthcheck, that?s a summarized view of 
the main policy subcomponents, so don?t need to run it through each container, 
as they seem ok, so let?s follow the first paragraph lead and see what you get. 
   If still get an error, please use the ?-vvv? flag and report output here.

Jorge

From: onap-discuss-bounces at lists.onap.org 
[mailto:[email protected]] On Behalf Of Yusuf Mirza1
Sent: Monday, April 24, 2017 10:02 AM
To: ROSE, DANIEL V <DR695H at att.com>; DRAGOSH, PAM <pdragosh at 
research.att.com>
Cc: onap-discuss <onap-discuss at lists.onap.org>
Subject: Re: [onap-discuss] Policy API Error from CURL


Daniel,
For the health check status using Robot VM via http is mentioned in the release 
notes. Pls suggest whether it is applicable..
https://wiki.onap.org/display/DW/Release+Notes+1.0.0+draft<https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.onap.org_display_DW_Release-2BNotes-2B1.0.0-2Bdraft&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=AOclne09odx6cmeimzFUhQ&m=9xIEq2jvelacqYmAFjVhjsSJWzZJYieVn_16gVTMjNk&s=eRUc3QxWjJCr1t2Fzrli1jCWM_lQKYgv2UDN5dLKDA4&e=>

[cid:image003.png at 01D2BCE6.B961F3B0]



Pam,
I am trying to call Policy APIs to list available Pdps using CURL as mentioned 
in the Policy API documentation. I was expecting it return an exception if a 
parameter is missing..
[cid:image006.jpg at 01D2BCE6.B961F3B0]

Instead I get the following response:

[cid:image007.png at 01D2BCE6.B961F3B0]
API documentation from Wiki:
(See attached file: index_Policy_API (2).html)


Many Thanks
Yusuf Mirza
====================================
Lead Architect - Network and OSS Transformation
Telecom, Media & Entertainment Center of Competence
IBM Global Business Services
E-mail: ymirza at ae.ibm.com<mailto:ymirza at ae.ibm.com>
Mobile: +971543070467


[Inactive hide details for "ROSE, DANIEL V" ---04/24/2017 05:43:06 PM---What 
page are you seeing that document on yusuf? I don?]"ROSE, DANIEL V" 
---04/24/2017 05:43:06 PM---What page are you seeing that document on yusuf? I 
don?t think the code works that way. Thanks,

From: "ROSE, DANIEL V" <DR695H at att.com<mailto:[email protected]>>
To: "DRAGOSH, PAM" <pdragosh at research.att.com<mailto:pdragosh at 
research.att.com>>, Yusuf Mirza1/United Arab Emirates/IBM at IBMAE
Cc: onap-discuss <onap-discuss at lists.onap.org<mailto:onap-discuss at 
lists.onap.org>>
Date: 04/24/2017 05:43 PM
Subject: RE: [onap-discuss] Policy API Error from CURL

________________________________



What page are you seeing that document on yusuf? I don?t think the code works 
that way.

Thanks,
Daniel Rose
ECOMP / ONAP
com.att.ecomp
732-420-7308

From: onap-discuss-bounces at lists.onap.org<mailto:onap-discuss-bounces at 
lists.onap.org> [mailto:[email protected]] On Behalf Of 
DRAGOSH, PAM
Sent: Monday, April 24, 2017 9:13 AM
To: Yusuf Mirza1 <YMirza at ae.ibm.com<mailto:YMirza at ae.ibm.com>>
Cc: onap-discuss <onap-discuss at lists.onap.org<mailto:onap-discuss at 
lists.onap.org>>
Subject: Re: [onap-discuss] Policy API Error from CURL

***Security Advisory: This Message Originated Outside of AT&T ***
Reference http://cso.att.com/EmailSecurity/IDSP.html for more information.
Not sure about the other containers, but that looks good like everything is 
working.

Re-reading your original email, not sure exactly where you got that curl 
command to run? Can you point it to me and/or what you are trying to test?

Thanks,

Pam

From: Yusuf Mirza1 <YMirza at ae.ibm.com<mailto:[email protected]>>
Date: Monday, April 24, 2017 at 8:34 AM
To: "DRAGOSH, PAMELA L (PAM)" <pdragosh at research.att.com<mailto:pdragosh at 
research.att.com>>
Cc: onap-discuss <onap-discuss at lists.onap.org<mailto:onap-discuss at 
lists.onap.org>>
Subject: Re: [onap-discuss] Policy API Error from CURL

Thanks Pam for the details.

I was actually trying to follow the following instructions on Wiki and was 
expecting to get an overall health check result:
[cid:image001.png at 01D2BCE6.B961F3B0]
It does not work from command line as well:
[cid:image009.png at 01D2BCE6.B961F3B0]
However, I ran the commands you provided and it returned following from the 
drools container:

[cid:image010.png at 01D2BCE6.B961F3B0]

Do I need run the same test in all containers in Policy VM? I tried running for 
pdp (and others) but it does return any object:

[cid:image011.png at 01D2BCE6.B961F3B0]



Many Thanks
Yusuf Mirza
====================================
Lead Architect - Network and OSS Transformation
Telecom, Media & Entertainment Center of Competence
IBM Global Business Services
E-mail: ymirza at ae.ibm.com<mailto:ymirza at ae.ibm.com>
Mobile: +971543070467


[nactive hide details for "DRAGOSH, PAMELA L (PAM)" ---04/24/2017 
03:44:29]"DRAGOSH, PAMELA L (PAM)" ---04/24/2017 03:44:29 PM---Yusuf, To run 
the healthcheck, you should get into the containers and simply run a curl 
command

From: "DRAGOSH, PAMELA L (PAM)" <pdragosh at 
research.att.com<mailto:[email protected]>>
To: Yusuf Mirza1/United Arab Emirates/IBM at IBMAE
Cc: onap-discuss <onap-discuss at lists.onap.org<mailto:onap-discuss at 
lists.onap.org>>
Date: 04/24/2017 03:44 PM
Subject: Re: [onap-discuss] Policy API Error from CURL

________________________________




Yusuf,

To run the healthcheck, you should get into the containers and simply run a 
curl command

You can get into the containers via a command like this:

docker exec -t -i "drools" /bin/bash -c 'TERM=xterm exec /bin/bash'

Then to do health check, this command will show:

curl --silent --user 'healthcheck:zb!XztG34' -X GET 
http://localhost:6969/healthcheck<https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A6969_healthcheck&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=jwTiArcEj6aUX0HjV0M3dT12gUtk7rC07xpgpVZkS_4&m=Ox7fs4bVnaTtha-thbmoFIN9TDX79JnmHwcLS_RFkCA&s=7WC5FZvZHvjkwFvW6UOe4HHKheDEPYFXKP3NOshmobs&e=>
 | python -m json.tool

Pam

From: Yusuf Mirza1 <YMirza at ae.ibm.com<mailto:[email protected]>>
Date: Monday, April 24, 2017 at 4:36 AM
To: "DRAGOSH, PAMELA L (PAM)" <pdragosh at research.att.com<mailto:pdragosh at 
research.att.com>>
Cc: onap-discuss <onap-discuss at lists.onap.org<mailto:onap-discuss at 
lists.onap.org>>
Subject: Re: [onap-discuss] Policy API Error from CURL

Hi Pam,

When we are trying to access the health check results, it is asking for a 
user/password:

Could you help with the default access details.. we tried demo, test, etc.

[cid:image013.png at 01D2BCE6.B961F3B0]


Many Thanks
Yusuf Mirza
====================================
Lead Architect - Network and OSS Transformation
Telecom, Media & Entertainment Center of Competence
IBM Global Business Services
E-mail: ymirza at ae.ibm.com<mailto:ymirza at ae.ibm.com>
Mobile: +971543070467


[active hide details for "DRAGOSH, PAMELA L (PAM)" ---04/21/2017 
10:22:23]"DRAGOSH, PAMELA L (PAM)" ---04/21/2017 10:22:23 PM---Yusuf, Can you 
run the healthcheck and let us know the results?

From: "DRAGOSH, PAMELA L (PAM)" <pdragosh at 
research.att.com<mailto:[email protected]>>
To: Yusuf Mirza1/United Arab Emirates/IBM at IBMAE, onap-discuss <onap-discuss 
at lists.onap.org<mailto:onap-discuss at lists.onap.org>>
Date: 04/21/2017 10:22 PM
Subject: Re: [onap-discuss] Policy API Error from CURL

________________________________





Yusuf,

Can you run the healthcheck and let us know the results?

There may be an issue with the IP address mapping 10.0.6.1:8081. We are seeing 
this internally also on another installation.

Thanks,

Pam

Pamela Dragosh
Lead Inventive Scientist
ONAP Policy
AT&T Research
pdragosh at research.att.com<mailto:pdragosh at research.att.com>



From: <onap-discuss-bounces at lists.onap.org<mailto:onap-discuss-bounces at 
lists.onap.org>> on behalf of Yusuf Mirza1 <YMirza at 
ae.ibm.com<mailto:[email protected]>>
Date: Friday, April 21, 2017 at 11:53 AM
To: onap-discuss <onap-discuss at lists.onap.org<mailto:onap-discuss at 
lists.onap.org>>
Subject: [onap-discuss] Policy API Error from CURL

Hi All,

I am getting the below error in invoking Curl Get on the Policy APIs. Is there 
any SSL config/settings required to be done on Policy VM to start accepting API 
calls?

[cid:image007.png at 01D2BCE6.B961F3B0]

Docker containers running on the policy VM:
[cid:image015.png at 01D2BCE6.B961F3B0]

We are using ONAP on Vanilla OpenStack (Octata).



Many Thanks
Yusuf Mirza
====================================
Lead Architect - Network and OSS Transformation
Telecom, Media & Entertainment Center of Competence
IBM Global Business Services
E-mail: ymirza at ae.ibm.com<mailto:ymirza at ae.ibm.com>
Mobile: +971543070467


-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.onap.org/pipermail/onap-discuss/attachments/20170424/38447134/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 50796 bytes
Desc: image001.png
URL: 
<http://lists.onap.org/pipermail/onap-discuss/attachments/20170424/38447134/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 20015 bytes
Desc: image003.png
URL: 
<http://lists.onap.org/pipermail/onap-discuss/attachments/20170424/38447134/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.jpg
Type: image/jpeg
Size: 13882 bytes
Desc: image006.jpg
URL: 
<http://lists.onap.org/pipermail/onap-discuss/attachments/20170424/38447134/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image007.png
Type: image/png
Size: 61235 bytes
Desc: image007.png
URL: 
<http://lists.onap.org/pipermail/onap-discuss/attachments/20170424/38447134/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image008.gif
Type: image/gif
Size: 105 bytes
Desc: image008.gif
URL: 
<http://lists.onap.org/pipermail/onap-discuss/attachments/20170424/38447134/attachment-0003.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image009.png
Type: image/png
Size: 86606 bytes
Desc: image009.png
URL: 
<http://lists.onap.org/pipermail/onap-discuss/attachments/20170424/38447134/attachment-0011.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image010.png
Type: image/png
Size: 80413 bytes
Desc: image010.png
URL: 
<http://lists.onap.org/pipermail/onap-discuss/attachments/20170424/38447134/attachment-0012.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image011.png
Type: image/png
Size: 245826 bytes
Desc: image011.png
URL: 
<http://lists.onap.org/pipermail/onap-discuss/attachments/20170424/38447134/attachment-0013.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image012.gif
Type: image/gif
Size: 106 bytes
Desc: image012.gif
URL: 
<http://lists.onap.org/pipermail/onap-discuss/attachments/20170424/38447134/attachment-0004.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image013.png
Type: image/png
Size: 70640 bytes
Desc: image013.png
URL: 
<http://lists.onap.org/pipermail/onap-discuss/attachments/20170424/38447134/attachment-0014.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image014.gif
Type: image/gif
Size: 107 bytes
Desc: image014.gif
URL: 
<http://lists.onap.org/pipermail/onap-discuss/attachments/20170424/38447134/attachment-0005.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image015.png
Type: image/png
Size: 215019 bytes
Desc: image015.png
URL: 
<http://lists.onap.org/pipermail/onap-discuss/attachments/20170424/38447134/attachment-0015.png>

Reply via email to