Re: [MTT devel] trying again to ppost results to "IU" using pyclient

2017-08-29 Thread Howard Pritchard
Hi Josh,

any idea if this is a problem with my ini file?  Or is this more likely
something specific to the setup of the
cherrypy server at AWS.  Just checking before trying to debug using the
dockerized server approach.

Howard


2017-08-16 10:35 GMT-06:00 Howard Pritchard :

> HI Josh,
>
> Here's the contents minus the password:
>
> Reporter: IU database]
> plugin = IUDatabase
> #module = IUDatabase
>
> realm = OMPI
> username = lanl
> password = XX
> mtt_platform = hickok
> #mttdatabase_hostname = &env_hosts()
> url = https://mtt.open-mpi.org/submit/cpy/api/
> #url = https://mtt.open-mpi.org
> #url = https://mtt.open-mpi.org/submit/cpy
> mttdatabase_debug_filename = mttdb_debug_file
> #mttdatabase_keep_debug_files = 1
> mttdatabase_debug_server = 1
>
>
> I've switched back and forth between the url value.  The only one that
> "works " in the sense of getting back a response that indicates something
> happened at the server is
>
> https://mtt.open-mpi.org
>
> The python code is adding "/serial" to the target URL.  That definitely
> does not seem to work.  Also, I noticed that in the perl client, the data
> payload is using SERIAL not serial and that its setting the value to 1, not
> 'serial'.
>
> Thanks for any help,
>
> Howard
>
> 2017-08-16 7:24 GMT-06:00 Josh Hursey :
>
>> Can you post the section of your INI file for reporting? I need to know
>> which component you are working with, and how you have it setup there.
>>
>> I have not been using the Python client. I honestly don't remember if it
>> uses the new CherryPy interface by default or the old PHP interface. I know
>> I started the CherryPy version a while back and it was nearly complete when
>> I handed it off (it needed the Python client to route more information down
>> to the submission mechanism).
>>
>>
>> On Tue, Aug 15, 2017 at 4:31 PM, Howard Pritchard 
>> wrote:
>>
>>> HI Folks,
>>>
>>> Thanks Josh.  That doesn't seem to help much though.  Exactly which URL
>>> should we be submitting a POST request to get a serial
>>> number, and what should the data payload format be?  Should it be
>>> SERIAL,1 or serial,serial?  The perl code seems to imply
>>> the former.
>>>
>>> I've tried using a totally generic setup, outside of any LANL firewalls,
>>> and am pretty sure now that whatever we have coded up in
>>> IUDatabase.py doesn't work.
>>>
>>> Has anyone actually gotten the python client to submit results to the IU
>>> database?  If so, could someone post their ini
>>> file to this list?
>>>
>>> Thanks,
>>>
>>> Howard
>>>
>>>
>>>
>>>
>>> 2017-08-14 16:17 GMT-06:00 Howard Pritchard :
>>>
 Hi Josh,

 Okay, I changed the URL to submit and now get an interesting error back
 in the raw output:

 Absolute URI not allowed if server is not a proxy.

 Also, what should be the format of the POST request to get a serial #?
 I'm suspicious that

 this area of the pyclient is buggy.

 Howard



 2017-08-14 15:50 GMT-06:00 Josh Hursey :

> The CherryPy server was not running... It looks like it died on 6/9
> (probably when we upgraded the server since I had to rebuild it's
> virtualenv). It's running now, and I have setup a monitor to let me know 
> if
> it goes down again.
>
> The URL that you need to use for the CherryPy API is:
>   https://mtt.open-mpi.org/submit/cpy/api
>
> I would give that one a try. If that doesn't work then try the PHP one
> here:
>   https://mtt.open-mpi.org/submit/
>
>
> On Mon, Aug 14, 2017 at 3:39 PM, Howard Pritchard  > wrote:
>
>> HI Folks,
>>
>> Well actually I dug into this some more.
>>
>> The problem happens when the pyclient tries to get a serial number
>> from the "IUdatabase" via a post to
>>
>> https://mtt.open-mpi.org/serial
>>
>> This doesn't work.  mtt-open-mpi.org comes back with an 404 error.
>>
>> Any ideas which URL I should be using to get a serial number back
>> from the database server?
>>
>> Howard
>>
>>
>> 2017-08-09 12:44 GMT-06:00 Van Dresser, Daniel N <
>> daniel.n.van.dres...@intel.com>:
>>
>>> Hi Howard,
>>>
>>>
>>>
>>> Ricky might be able to answer this when he returns from holiday next
>>> week.  If not, Josh might know.
>>>
>>>
>>>
>>> If you end up debugging this further on your own, I would recommend
>>> using the docker images for postgres and cherrypy.
>>>
>>>
>>>
>>> Instructions for building and testing those images:
>>> https://github.com/open-mpi/mtt/blob/master/server/docker/RE
>>> ADME.docker.txt
>>>
>>> Note the instructions in that readme need to be run from the
>>> mtt/server directory.
>>>
>>>
>>>
>>> Thanks,
>>>
>>>
>>>
>>>   -- Noah
>>>
>>>
>>>
>>>
>>>
>>> *From:* mtt-devel [mailto:mtt-devel-boun...@lists.open-mpi.org] *On
>>

Re: [MTT devel] trying again to ppost results to "IU" using pyclient

2017-08-16 Thread Howard Pritchard
HI Josh,

Here's the contents minus the password:

Reporter: IU database]
plugin = IUDatabase
#module = IUDatabase

realm = OMPI
username = lanl
password = XX
mtt_platform = hickok
#mttdatabase_hostname = &env_hosts()
url = https://mtt.open-mpi.org/submit/cpy/api/
#url = https://mtt.open-mpi.org
#url = https://mtt.open-mpi.org/submit/cpy
mttdatabase_debug_filename = mttdb_debug_file
#mttdatabase_keep_debug_files = 1
mttdatabase_debug_server = 1


I've switched back and forth between the url value.  The only one that
"works " in the sense of getting back a response that indicates something
happened at the server is

https://mtt.open-mpi.org

The python code is adding "/serial" to the target URL.  That definitely
does not seem to work.  Also, I noticed that in the perl client, the data
payload is using SERIAL not serial and that its setting the value to 1, not
'serial'.

Thanks for any help,

Howard

2017-08-16 7:24 GMT-06:00 Josh Hursey :

> Can you post the section of your INI file for reporting? I need to know
> which component you are working with, and how you have it setup there.
>
> I have not been using the Python client. I honestly don't remember if it
> uses the new CherryPy interface by default or the old PHP interface. I know
> I started the CherryPy version a while back and it was nearly complete when
> I handed it off (it needed the Python client to route more information down
> to the submission mechanism).
>
>
> On Tue, Aug 15, 2017 at 4:31 PM, Howard Pritchard 
> wrote:
>
>> HI Folks,
>>
>> Thanks Josh.  That doesn't seem to help much though.  Exactly which URL
>> should we be submitting a POST request to get a serial
>> number, and what should the data payload format be?  Should it be
>> SERIAL,1 or serial,serial?  The perl code seems to imply
>> the former.
>>
>> I've tried using a totally generic setup, outside of any LANL firewalls,
>> and am pretty sure now that whatever we have coded up in
>> IUDatabase.py doesn't work.
>>
>> Has anyone actually gotten the python client to submit results to the IU
>> database?  If so, could someone post their ini
>> file to this list?
>>
>> Thanks,
>>
>> Howard
>>
>>
>>
>>
>> 2017-08-14 16:17 GMT-06:00 Howard Pritchard :
>>
>>> Hi Josh,
>>>
>>> Okay, I changed the URL to submit and now get an interesting error back
>>> in the raw output:
>>>
>>> Absolute URI not allowed if server is not a proxy.
>>>
>>> Also, what should be the format of the POST request to get a serial #?
>>> I'm suspicious that
>>>
>>> this area of the pyclient is buggy.
>>>
>>> Howard
>>>
>>>
>>>
>>> 2017-08-14 15:50 GMT-06:00 Josh Hursey :
>>>
 The CherryPy server was not running... It looks like it died on 6/9
 (probably when we upgraded the server since I had to rebuild it's
 virtualenv). It's running now, and I have setup a monitor to let me know if
 it goes down again.

 The URL that you need to use for the CherryPy API is:
   https://mtt.open-mpi.org/submit/cpy/api

 I would give that one a try. If that doesn't work then try the PHP one
 here:
   https://mtt.open-mpi.org/submit/


 On Mon, Aug 14, 2017 at 3:39 PM, Howard Pritchard 
 wrote:

> HI Folks,
>
> Well actually I dug into this some more.
>
> The problem happens when the pyclient tries to get a serial number
> from the "IUdatabase" via a post to
>
> https://mtt.open-mpi.org/serial
>
> This doesn't work.  mtt-open-mpi.org comes back with an 404 error.
>
> Any ideas which URL I should be using to get a serial number back from
> the database server?
>
> Howard
>
>
> 2017-08-09 12:44 GMT-06:00 Van Dresser, Daniel N <
> daniel.n.van.dres...@intel.com>:
>
>> Hi Howard,
>>
>>
>>
>> Ricky might be able to answer this when he returns from holiday next
>> week.  If not, Josh might know.
>>
>>
>>
>> If you end up debugging this further on your own, I would recommend
>> using the docker images for postgres and cherrypy.
>>
>>
>>
>> Instructions for building and testing those images:
>> https://github.com/open-mpi/mtt/blob/master/server/docker/RE
>> ADME.docker.txt
>>
>> Note the instructions in that readme need to be run from the
>> mtt/server directory.
>>
>>
>>
>> Thanks,
>>
>>
>>
>>   -- Noah
>>
>>
>>
>>
>>
>> *From:* mtt-devel [mailto:mtt-devel-boun...@lists.open-mpi.org] *On
>> Behalf Of *Howard Pritchard
>> *Sent:* Wednesday, August 09, 2017 3:06 AM
>> *To:* Development list for the MPI Testing Tool <
>> mtt-devel@lists.open-mpi.org>
>> *Subject:* [MTT devel] trying again to ppost results to "IU" using
>> pyclient
>>
>>
>>
>> Hi Folks,
>>
>>
>>
>> Finally I got a chance to return to using the pyclient (with python3
>> - which is another story and subject of an upcoming PR).
>>
>>

Re: [MTT devel] trying again to ppost results to "IU" using pyclient

2017-08-16 Thread Josh Hursey
Can you post the section of your INI file for reporting? I need to know
which component you are working with, and how you have it setup there.

I have not been using the Python client. I honestly don't remember if it
uses the new CherryPy interface by default or the old PHP interface. I know
I started the CherryPy version a while back and it was nearly complete when
I handed it off (it needed the Python client to route more information down
to the submission mechanism).


On Tue, Aug 15, 2017 at 4:31 PM, Howard Pritchard 
wrote:

> HI Folks,
>
> Thanks Josh.  That doesn't seem to help much though.  Exactly which URL
> should we be submitting a POST request to get a serial
> number, and what should the data payload format be?  Should it be SERIAL,1
> or serial,serial?  The perl code seems to imply
> the former.
>
> I've tried using a totally generic setup, outside of any LANL firewalls,
> and am pretty sure now that whatever we have coded up in
> IUDatabase.py doesn't work.
>
> Has anyone actually gotten the python client to submit results to the IU
> database?  If so, could someone post their ini
> file to this list?
>
> Thanks,
>
> Howard
>
>
>
>
> 2017-08-14 16:17 GMT-06:00 Howard Pritchard :
>
>> Hi Josh,
>>
>> Okay, I changed the URL to submit and now get an interesting error back
>> in the raw output:
>>
>> Absolute URI not allowed if server is not a proxy.
>>
>> Also, what should be the format of the POST request to get a serial #?
>> I'm suspicious that
>>
>> this area of the pyclient is buggy.
>>
>> Howard
>>
>>
>>
>> 2017-08-14 15:50 GMT-06:00 Josh Hursey :
>>
>>> The CherryPy server was not running... It looks like it died on 6/9
>>> (probably when we upgraded the server since I had to rebuild it's
>>> virtualenv). It's running now, and I have setup a monitor to let me know if
>>> it goes down again.
>>>
>>> The URL that you need to use for the CherryPy API is:
>>>   https://mtt.open-mpi.org/submit/cpy/api
>>>
>>> I would give that one a try. If that doesn't work then try the PHP one
>>> here:
>>>   https://mtt.open-mpi.org/submit/
>>>
>>>
>>> On Mon, Aug 14, 2017 at 3:39 PM, Howard Pritchard 
>>> wrote:
>>>
 HI Folks,

 Well actually I dug into this some more.

 The problem happens when the pyclient tries to get a serial number from
 the "IUdatabase" via a post to

 https://mtt.open-mpi.org/serial

 This doesn't work.  mtt-open-mpi.org comes back with an 404 error.

 Any ideas which URL I should be using to get a serial number back from
 the database server?

 Howard


 2017-08-09 12:44 GMT-06:00 Van Dresser, Daniel N <
 daniel.n.van.dres...@intel.com>:

> Hi Howard,
>
>
>
> Ricky might be able to answer this when he returns from holiday next
> week.  If not, Josh might know.
>
>
>
> If you end up debugging this further on your own, I would recommend
> using the docker images for postgres and cherrypy.
>
>
>
> Instructions for building and testing those images:
> https://github.com/open-mpi/mtt/blob/master/server/docker/RE
> ADME.docker.txt
>
> Note the instructions in that readme need to be run from the
> mtt/server directory.
>
>
>
> Thanks,
>
>
>
>   -- Noah
>
>
>
>
>
> *From:* mtt-devel [mailto:mtt-devel-boun...@lists.open-mpi.org] *On
> Behalf Of *Howard Pritchard
> *Sent:* Wednesday, August 09, 2017 3:06 AM
> *To:* Development list for the MPI Testing Tool <
> mtt-devel@lists.open-mpi.org>
> *Subject:* [MTT devel] trying again to ppost results to "IU" using
> pyclient
>
>
>
> Hi Folks,
>
>
>
> Finally I got a chance to return to using the pyclient (with python3 -
> which is another story and subject of an upcoming PR).
>
>
>
> Things seem to work till I try to post to "IU" database, in which case
> with --verbose I get
>
> this request/response output:
>
>
>
> <<< Payload (End  ) --
> >>
>
> /opt/hi-master/Python-3.6.2/lib/python3.6/site-packages/urllib3/connectionpool.py:858:
> InsecureRequestWarning: Unverified HTTPS request is being made. Adding
> certificate verification is strongly advised. See:
> https://urllib3.readthedocs.io/en/latest/advanced-usage
> .html#ssl-warnings
>
>   InsecureRequestWarning)
>
> /opt/hi-master/Python-3.6.2/lib/python3.6/site-packages/urllib3/connectionpool.py:858:
> InsecureRequestWarning: Unverified HTTPS request is being made. Adding
> certificate verification is strongly advised. See:
> https://urllib3.readthedocs.io/en/latest/advanced-usage
> .html#ssl-warnings
>
>   InsecureRequestWarning)
>
> <<< Response -->>
>
> Result: 400: text/html; charset=UTF-8
>
>>>

Re: [MTT devel] trying again to ppost results to "IU" using pyclient

2017-08-15 Thread r...@open-mpi.org
I have not been able to do so, sadly.

> On Aug 15, 2017, at 2:31 PM, Howard Pritchard  wrote:
> 
> HI Folks,
> 
> Thanks Josh.  That doesn't seem to help much though.  Exactly which URL 
> should we be submitting a POST request to get a serial
> number, and what should the data payload format be?  Should it be SERIAL,1 or 
> serial,serial?  The perl code seems to imply
> the former.
> 
> I've tried using a totally generic setup, outside of any LANL firewalls, and 
> am pretty sure now that whatever we have coded up in
> IUDatabase.py doesn't work.
> 
> Has anyone actually gotten the python client to submit results to the IU 
> database?  If so, could someone post their ini
> file to this list?
> 
> Thanks,
> 
> Howard
> 
> 
> 
> 
> 2017-08-14 16:17 GMT-06:00 Howard Pritchard  >:
> Hi Josh,
> 
> Okay, I changed the URL to submit and now get an interesting error back in 
> the raw output:
> 
> Absolute URI not allowed if server is not a proxy.
> Also, what should be the format of the POST request to get a serial #?  I'm 
> suspicious that
> 
> this area of the pyclient is buggy.
> 
> Howard
> 
> 
> 
> 
> 2017-08-14 15:50 GMT-06:00 Josh Hursey  >:
> The CherryPy server was not running... It looks like it died on 6/9 (probably 
> when we upgraded the server since I had to rebuild it's virtualenv). It's 
> running now, and I have setup a monitor to let me know if it goes down again.
> 
> The URL that you need to use for the CherryPy API is:
>   https://mtt.open-mpi.org/submit/cpy/api 
> 
> 
> I would give that one a try. If that doesn't work then try the PHP one here:
>   https://mtt.open-mpi.org/submit/ 
> 
> 
> On Mon, Aug 14, 2017 at 3:39 PM, Howard Pritchard  > wrote:
> HI Folks,
> 
> Well actually I dug into this some more. 
> 
> The problem happens when the pyclient tries to get a serial number from the 
> "IUdatabase" via a post to
> 
> https://mtt.open-mpi.org/serial 
> 
> This doesn't work.  mtt-open-mpi.org  comes back 
> with an 404 error.
> 
> Any ideas which URL I should be using to get a serial number back from the 
> database server?
> 
> Howard
> 
> 
> 2017-08-09 12:44 GMT-06:00 Van Dresser, Daniel N 
> mailto:daniel.n.van.dres...@intel.com>>:
> Hi Howard,
> 
>  
> 
> Ricky might be able to answer this when he returns from holiday next week.  
> If not, Josh might know.
> 
>  
> 
> If you end up debugging this further on your own, I would recommend using the 
> docker images for postgres and cherrypy.
> 
>  
> 
> Instructions for building and testing those images: 
> https://github.com/open-mpi/mtt/blob/master/server/docker/README.docker.txt 
> 
> Note the instructions in that readme need to be run from the mtt/server 
> directory.
> 
>  
> 
> Thanks,
> 
>  
> 
>   -- Noah
> 
>  
> 
>   <>
>  <>From: mtt-devel [mailto:mtt-devel-boun...@lists.open-mpi.org 
> ] On Behalf Of Howard Pritchard
> Sent: Wednesday, August 09, 2017 3:06 AM
> To: Development list for the MPI Testing Tool  >
> Subject: [MTT devel] trying again to ppost results to "IU" using pyclient
> 
>  
> 
> Hi Folks,
> 
>  
> 
> Finally I got a chance to return to using the pyclient (with python3 - which 
> is another story and subject of an upcoming PR).
> 
>  
> 
> Things seem to work till I try to post to "IU" database, in which case with 
> --verbose I get
> 
> this request/response output:
> 
>  
> 
> <<< Payload (End  ) -->>
> 
> /opt/hi-master/Python-3.6.2/lib/python3.6/site-packages/urllib3/connectionpool.py:858:
>  InsecureRequestWarning: Unverified HTTPS request is being made. Adding 
> certificate verification is strongly advised. See: 
> https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings 
> 
>   InsecureRequestWarning)
> 
> /opt/hi-master/Python-3.6.2/lib/python3.6/site-packages/urllib3/connectionpool.py:858:
>  InsecureRequestWarning: Unverified HTTPS request is being made. Adding 
> certificate verification is strongly advised. See: 
> https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings 
> 
>   InsecureRequestWarning)
> 
> <<< Response -->>
> 
> Result: 400: text/html; charset=UTF-8
> 
> {'Date': 'Wed, 09 Aug 2017 09:57:16 GMT', 'Server': 'Apache/2.4.18 (Ubuntu)', 
> 'Content-Length': '54', 'Connection': 'close', 'Content-Typ - Message 
> truncated -
> 
> <<< Raw Output (Start) >>
> 
> MTTDatabase abort: 
> 
> MTT cl

Re: [MTT devel] trying again to ppost results to "IU" using pyclient

2017-08-15 Thread Howard Pritchard
HI Folks,

Thanks Josh.  That doesn't seem to help much though.  Exactly which URL
should we be submitting a POST request to get a serial
number, and what should the data payload format be?  Should it be SERIAL,1
or serial,serial?  The perl code seems to imply
the former.

I've tried using a totally generic setup, outside of any LANL firewalls,
and am pretty sure now that whatever we have coded up in
IUDatabase.py doesn't work.

Has anyone actually gotten the python client to submit results to the IU
database?  If so, could someone post their ini
file to this list?

Thanks,

Howard




2017-08-14 16:17 GMT-06:00 Howard Pritchard :

> Hi Josh,
>
> Okay, I changed the URL to submit and now get an interesting error back in
> the raw output:
>
> Absolute URI not allowed if server is not a proxy.
>
> Also, what should be the format of the POST request to get a serial #?
> I'm suspicious that
>
> this area of the pyclient is buggy.
>
> Howard
>
>
>
> 2017-08-14 15:50 GMT-06:00 Josh Hursey :
>
>> The CherryPy server was not running... It looks like it died on 6/9
>> (probably when we upgraded the server since I had to rebuild it's
>> virtualenv). It's running now, and I have setup a monitor to let me know if
>> it goes down again.
>>
>> The URL that you need to use for the CherryPy API is:
>>   https://mtt.open-mpi.org/submit/cpy/api
>>
>> I would give that one a try. If that doesn't work then try the PHP one
>> here:
>>   https://mtt.open-mpi.org/submit/
>>
>>
>> On Mon, Aug 14, 2017 at 3:39 PM, Howard Pritchard 
>> wrote:
>>
>>> HI Folks,
>>>
>>> Well actually I dug into this some more.
>>>
>>> The problem happens when the pyclient tries to get a serial number from
>>> the "IUdatabase" via a post to
>>>
>>> https://mtt.open-mpi.org/serial
>>>
>>> This doesn't work.  mtt-open-mpi.org comes back with an 404 error.
>>>
>>> Any ideas which URL I should be using to get a serial number back from
>>> the database server?
>>>
>>> Howard
>>>
>>>
>>> 2017-08-09 12:44 GMT-06:00 Van Dresser, Daniel N <
>>> daniel.n.van.dres...@intel.com>:
>>>
 Hi Howard,



 Ricky might be able to answer this when he returns from holiday next
 week.  If not, Josh might know.



 If you end up debugging this further on your own, I would recommend
 using the docker images for postgres and cherrypy.



 Instructions for building and testing those images:
 https://github.com/open-mpi/mtt/blob/master/server/docker/RE
 ADME.docker.txt

 Note the instructions in that readme need to be run from the mtt/server
 directory.



 Thanks,



   -- Noah





 *From:* mtt-devel [mailto:mtt-devel-boun...@lists.open-mpi.org] *On
 Behalf Of *Howard Pritchard
 *Sent:* Wednesday, August 09, 2017 3:06 AM
 *To:* Development list for the MPI Testing Tool <
 mtt-devel@lists.open-mpi.org>
 *Subject:* [MTT devel] trying again to ppost results to "IU" using
 pyclient



 Hi Folks,



 Finally I got a chance to return to using the pyclient (with python3 -
 which is another story and subject of an upcoming PR).



 Things seem to work till I try to post to "IU" database, in which case
 with --verbose I get

 this request/response output:



 <<< Payload (End  ) --
 >>

 /opt/hi-master/Python-3.6.2/lib/python3.6/site-packages/urllib3/connectionpool.py:858:
 InsecureRequestWarning: Unverified HTTPS request is being made. Adding
 certificate verification is strongly advised. See:
 https://urllib3.readthedocs.io/en/latest/advanced-usage
 .html#ssl-warnings

   InsecureRequestWarning)

 /opt/hi-master/Python-3.6.2/lib/python3.6/site-packages/urllib3/connectionpool.py:858:
 InsecureRequestWarning: Unverified HTTPS request is being made. Adding
 certificate verification is strongly advised. See:
 https://urllib3.readthedocs.io/en/latest/advanced-usage
 .html#ssl-warnings

   InsecureRequestWarning)

 <<< Response -->>

 Result: 400: text/html; charset=UTF-8

 {'Date': 'Wed, 09 Aug 2017 09:57:16 GMT', 'Server': 'Apache/2.4.18
 (Ubuntu)', 'Content-Length': '54', 'Connection': 'close', 'Content-Typ
 - Message truncated -

 <<< Raw Output (Start) >>

 MTTDatabase abort:

 MTT client version not specified.



 <<< Raw Output (End  ) >>



 Any ideas what I need to add to get the pyclient to submit results to
 "IU" with client version

 included in the HTTP request?



 Thanks,

 Howard



 ___
 mtt-devel mailing l

Re: [MTT devel] trying again to ppost results to "IU" using pyclient

2017-08-14 Thread Howard Pritchard
Hi Josh,

Okay, I changed the URL to submit and now get an interesting error back in
the raw output:

Absolute URI not allowed if server is not a proxy.

Also, what should be the format of the POST request to get a serial #?  I'm
suspicious that

this area of the pyclient is buggy.

Howard



2017-08-14 15:50 GMT-06:00 Josh Hursey :

> The CherryPy server was not running... It looks like it died on 6/9
> (probably when we upgraded the server since I had to rebuild it's
> virtualenv). It's running now, and I have setup a monitor to let me know if
> it goes down again.
>
> The URL that you need to use for the CherryPy API is:
>   https://mtt.open-mpi.org/submit/cpy/api
>
> I would give that one a try. If that doesn't work then try the PHP one
> here:
>   https://mtt.open-mpi.org/submit/
>
>
> On Mon, Aug 14, 2017 at 3:39 PM, Howard Pritchard 
> wrote:
>
>> HI Folks,
>>
>> Well actually I dug into this some more.
>>
>> The problem happens when the pyclient tries to get a serial number from
>> the "IUdatabase" via a post to
>>
>> https://mtt.open-mpi.org/serial
>>
>> This doesn't work.  mtt-open-mpi.org comes back with an 404 error.
>>
>> Any ideas which URL I should be using to get a serial number back from
>> the database server?
>>
>> Howard
>>
>>
>> 2017-08-09 12:44 GMT-06:00 Van Dresser, Daniel N <
>> daniel.n.van.dres...@intel.com>:
>>
>>> Hi Howard,
>>>
>>>
>>>
>>> Ricky might be able to answer this when he returns from holiday next
>>> week.  If not, Josh might know.
>>>
>>>
>>>
>>> If you end up debugging this further on your own, I would recommend
>>> using the docker images for postgres and cherrypy.
>>>
>>>
>>>
>>> Instructions for building and testing those images:
>>> https://github.com/open-mpi/mtt/blob/master/server/docker/RE
>>> ADME.docker.txt
>>>
>>> Note the instructions in that readme need to be run from the mtt/server
>>> directory.
>>>
>>>
>>>
>>> Thanks,
>>>
>>>
>>>
>>>   -- Noah
>>>
>>>
>>>
>>>
>>>
>>> *From:* mtt-devel [mailto:mtt-devel-boun...@lists.open-mpi.org] *On
>>> Behalf Of *Howard Pritchard
>>> *Sent:* Wednesday, August 09, 2017 3:06 AM
>>> *To:* Development list for the MPI Testing Tool <
>>> mtt-devel@lists.open-mpi.org>
>>> *Subject:* [MTT devel] trying again to ppost results to "IU" using
>>> pyclient
>>>
>>>
>>>
>>> Hi Folks,
>>>
>>>
>>>
>>> Finally I got a chance to return to using the pyclient (with python3 -
>>> which is another story and subject of an upcoming PR).
>>>
>>>
>>>
>>> Things seem to work till I try to post to "IU" database, in which case
>>> with --verbose I get
>>>
>>> this request/response output:
>>>
>>>
>>>
>>> <<< Payload (End  ) -->>
>>>
>>> /opt/hi-master/Python-3.6.2/lib/python3.6/site-packages/urllib3/connectionpool.py:858:
>>> InsecureRequestWarning: Unverified HTTPS request is being made. Adding
>>> certificate verification is strongly advised. See:
>>> https://urllib3.readthedocs.io/en/latest/advanced-usage
>>> .html#ssl-warnings
>>>
>>>   InsecureRequestWarning)
>>>
>>> /opt/hi-master/Python-3.6.2/lib/python3.6/site-packages/urllib3/connectionpool.py:858:
>>> InsecureRequestWarning: Unverified HTTPS request is being made. Adding
>>> certificate verification is strongly advised. See:
>>> https://urllib3.readthedocs.io/en/latest/advanced-usage
>>> .html#ssl-warnings
>>>
>>>   InsecureRequestWarning)
>>>
>>> <<< Response -->>
>>>
>>> Result: 400: text/html; charset=UTF-8
>>>
>>> {'Date': 'Wed, 09 Aug 2017 09:57:16 GMT', 'Server': 'Apache/2.4.18
>>> (Ubuntu)', 'Content-Length': '54', 'Connection': 'close', 'Content-Typ
>>> - Message truncated -
>>>
>>> <<< Raw Output (Start) >>
>>>
>>> MTTDatabase abort:
>>>
>>> MTT client version not specified.
>>>
>>>
>>>
>>> <<< Raw Output (End  ) >>
>>>
>>>
>>>
>>> Any ideas what I need to add to get the pyclient to submit results to
>>> "IU" with client version
>>>
>>> included in the HTTP request?
>>>
>>>
>>>
>>> Thanks,
>>>
>>> Howard
>>>
>>>
>>>
>>> ___
>>> mtt-devel mailing list
>>> mtt-devel@lists.open-mpi.org
>>> https://lists.open-mpi.org/mailman/listinfo/mtt-devel
>>>
>>
>>
>> ___
>> mtt-devel mailing list
>> mtt-devel@lists.open-mpi.org
>> https://lists.open-mpi.org/mailman/listinfo/mtt-devel
>>
>
>
>
> --
> Josh Hursey
> IBM Spectrum MPI Developer
>
> ___
> mtt-devel mailing list
> mtt-devel@lists.open-mpi.org
> https://lists.open-mpi.org/mailman/listinfo/mtt-devel
>
___
mtt-devel mailing list
mtt-devel@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/mtt-devel

Re: [MTT devel] trying again to ppost results to "IU" using pyclient

2017-08-14 Thread Josh Hursey
The CherryPy server was not running... It looks like it died on 6/9
(probably when we upgraded the server since I had to rebuild it's
virtualenv). It's running now, and I have setup a monitor to let me know if
it goes down again.

The URL that you need to use for the CherryPy API is:
  https://mtt.open-mpi.org/submit/cpy/api

I would give that one a try. If that doesn't work then try the PHP one here:
  https://mtt.open-mpi.org/submit/


On Mon, Aug 14, 2017 at 3:39 PM, Howard Pritchard 
wrote:

> HI Folks,
>
> Well actually I dug into this some more.
>
> The problem happens when the pyclient tries to get a serial number from
> the "IUdatabase" via a post to
>
> https://mtt.open-mpi.org/serial
>
> This doesn't work.  mtt-open-mpi.org comes back with an 404 error.
>
> Any ideas which URL I should be using to get a serial number back from the
> database server?
>
> Howard
>
>
> 2017-08-09 12:44 GMT-06:00 Van Dresser, Daniel N <
> daniel.n.van.dres...@intel.com>:
>
>> Hi Howard,
>>
>>
>>
>> Ricky might be able to answer this when he returns from holiday next
>> week.  If not, Josh might know.
>>
>>
>>
>> If you end up debugging this further on your own, I would recommend using
>> the docker images for postgres and cherrypy.
>>
>>
>>
>> Instructions for building and testing those images:
>> https://github.com/open-mpi/mtt/blob/master/server/docker/RE
>> ADME.docker.txt
>>
>> Note the instructions in that readme need to be run from the mtt/server
>> directory.
>>
>>
>>
>> Thanks,
>>
>>
>>
>>   -- Noah
>>
>>
>>
>>
>>
>> *From:* mtt-devel [mailto:mtt-devel-boun...@lists.open-mpi.org] *On
>> Behalf Of *Howard Pritchard
>> *Sent:* Wednesday, August 09, 2017 3:06 AM
>> *To:* Development list for the MPI Testing Tool <
>> mtt-devel@lists.open-mpi.org>
>> *Subject:* [MTT devel] trying again to ppost results to "IU" using
>> pyclient
>>
>>
>>
>> Hi Folks,
>>
>>
>>
>> Finally I got a chance to return to using the pyclient (with python3 -
>> which is another story and subject of an upcoming PR).
>>
>>
>>
>> Things seem to work till I try to post to "IU" database, in which case
>> with --verbose I get
>>
>> this request/response output:
>>
>>
>>
>> <<< Payload (End  ) -->>
>>
>> /opt/hi-master/Python-3.6.2/lib/python3.6/site-packages/urllib3/connectionpool.py:858:
>> InsecureRequestWarning: Unverified HTTPS request is being made. Adding
>> certificate verification is strongly advised. See:
>> https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
>>
>>   InsecureRequestWarning)
>>
>> /opt/hi-master/Python-3.6.2/lib/python3.6/site-packages/urllib3/connectionpool.py:858:
>> InsecureRequestWarning: Unverified HTTPS request is being made. Adding
>> certificate verification is strongly advised. See:
>> https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
>>
>>   InsecureRequestWarning)
>>
>> <<< Response -->>
>>
>> Result: 400: text/html; charset=UTF-8
>>
>> {'Date': 'Wed, 09 Aug 2017 09:57:16 GMT', 'Server': 'Apache/2.4.18
>> (Ubuntu)', 'Content-Length': '54', 'Connection': 'close', 'Content-Typ
>> - Message truncated -
>>
>> <<< Raw Output (Start) >>
>>
>> MTTDatabase abort:
>>
>> MTT client version not specified.
>>
>>
>>
>> <<< Raw Output (End  ) >>
>>
>>
>>
>> Any ideas what I need to add to get the pyclient to submit results to
>> "IU" with client version
>>
>> included in the HTTP request?
>>
>>
>>
>> Thanks,
>>
>> Howard
>>
>>
>>
>> ___
>> mtt-devel mailing list
>> mtt-devel@lists.open-mpi.org
>> https://lists.open-mpi.org/mailman/listinfo/mtt-devel
>>
>
>
> ___
> mtt-devel mailing list
> mtt-devel@lists.open-mpi.org
> https://lists.open-mpi.org/mailman/listinfo/mtt-devel
>



-- 
Josh Hursey
IBM Spectrum MPI Developer
___
mtt-devel mailing list
mtt-devel@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/mtt-devel

Re: [MTT devel] trying again to ppost results to "IU" using pyclient

2017-08-14 Thread Howard Pritchard
HI Folks,

Well actually I dug into this some more.

The problem happens when the pyclient tries to get a serial number from the
"IUdatabase" via a post to

https://mtt.open-mpi.org/serial

This doesn't work.  mtt-open-mpi.org comes back with an 404 error.

Any ideas which URL I should be using to get a serial number back from the
database server?

Howard


2017-08-09 12:44 GMT-06:00 Van Dresser, Daniel N <
daniel.n.van.dres...@intel.com>:

> Hi Howard,
>
>
>
> Ricky might be able to answer this when he returns from holiday next
> week.  If not, Josh might know.
>
>
>
> If you end up debugging this further on your own, I would recommend using
> the docker images for postgres and cherrypy.
>
>
>
> Instructions for building and testing those images:
> https://github.com/open-mpi/mtt/blob/master/server/docker/
> README.docker.txt
>
> Note the instructions in that readme need to be run from the mtt/server
> directory.
>
>
>
> Thanks,
>
>
>
>   -- Noah
>
>
>
>
>
> *From:* mtt-devel [mailto:mtt-devel-boun...@lists.open-mpi.org] *On
> Behalf Of *Howard Pritchard
> *Sent:* Wednesday, August 09, 2017 3:06 AM
> *To:* Development list for the MPI Testing Tool <
> mtt-devel@lists.open-mpi.org>
> *Subject:* [MTT devel] trying again to ppost results to "IU" using
> pyclient
>
>
>
> Hi Folks,
>
>
>
> Finally I got a chance to return to using the pyclient (with python3 -
> which is another story and subject of an upcoming PR).
>
>
>
> Things seem to work till I try to post to "IU" database, in which case
> with --verbose I get
>
> this request/response output:
>
>
>
> <<< Payload (End  ) -->>
>
> /opt/hi-master/Python-3.6.2/lib/python3.6/site-packages/urllib3/connectionpool.py:858:
> InsecureRequestWarning: Unverified HTTPS request is being made. Adding
> certificate verification is strongly advised. See: https://urllib3.
> readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
>
>   InsecureRequestWarning)
>
> /opt/hi-master/Python-3.6.2/lib/python3.6/site-packages/urllib3/connectionpool.py:858:
> InsecureRequestWarning: Unverified HTTPS request is being made. Adding
> certificate verification is strongly advised. See: https://urllib3.
> readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
>
>   InsecureRequestWarning)
>
> <<< Response -->>
>
> Result: 400: text/html; charset=UTF-8
>
> {'Date': 'Wed, 09 Aug 2017 09:57:16 GMT', 'Server': 'Apache/2.4.18
> (Ubuntu)', 'Content-Length': '54', 'Connection': 'close', 'Content-Typ
> - Message truncated -
>
> <<< Raw Output (Start) >>
>
> MTTDatabase abort:
>
> MTT client version not specified.
>
>
>
> <<< Raw Output (End  ) >>
>
>
>
> Any ideas what I need to add to get the pyclient to submit results to "IU"
> with client version
>
> included in the HTTP request?
>
>
>
> Thanks,
>
> Howard
>
>
>
> ___
> mtt-devel mailing list
> mtt-devel@lists.open-mpi.org
> https://lists.open-mpi.org/mailman/listinfo/mtt-devel
>
___
mtt-devel mailing list
mtt-devel@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/mtt-devel

Re: [MTT devel] trying again to ppost results to "IU" using pyclient

2017-08-09 Thread Van Dresser, Daniel N
Hi Howard,

Ricky might be able to answer this when he returns from holiday next week.  If 
not, Josh might know.

If you end up debugging this further on your own, I would recommend using the 
docker images for postgres and cherrypy.

Instructions for building and testing those images: 
https://github.com/open-mpi/mtt/blob/master/server/docker/README.docker.txt
Note the instructions in that readme need to be run from the mtt/server 
directory.

Thanks,

  -- Noah


From: mtt-devel [mailto:mtt-devel-boun...@lists.open-mpi.org] On Behalf Of 
Howard Pritchard
Sent: Wednesday, August 09, 2017 3:06 AM
To: Development list for the MPI Testing Tool 
Subject: [MTT devel] trying again to ppost results to "IU" using pyclient

Hi Folks,

Finally I got a chance to return to using the pyclient (with python3 - which is 
another story and subject of an upcoming PR).

Things seem to work till I try to post to "IU" database, in which case with 
--verbose I get
this request/response output:


<<< Payload (End  ) -->>

/opt/hi-master/Python-3.6.2/lib/python3.6/site-packages/urllib3/connectionpool.py:858:
 InsecureRequestWarning: Unverified HTTPS request is being made. Adding 
certificate verification is strongly advised. See: 
https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings

  InsecureRequestWarning)

/opt/hi-master/Python-3.6.2/lib/python3.6/site-packages/urllib3/connectionpool.py:858:
 InsecureRequestWarning: Unverified HTTPS request is being made. Adding 
certificate verification is strongly advised. See: 
https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings

  InsecureRequestWarning)

<<< Response -->>

Result: 400: text/html; charset=UTF-8

{'Date': 'Wed, 09 Aug 2017 09:57:16 GMT', 'Server': 'Apache/2.4.18 (Ubuntu)', 
'Content-Length': '54', 'Connection': 'close', 'Content-Typ - Message 
truncated -

<<< Raw Output (Start) >>

MTTDatabase abort:

MTT client version not specified.



<<< Raw Output (End  ) >>



Any ideas what I need to add to get the pyclient to submit results to "IU" with 
client version

included in the HTTP request?



Thanks,

Howard


___
mtt-devel mailing list
mtt-devel@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/mtt-devel