Re: [MTT devel] reporter error using pyclient

2016-09-02 Thread r...@open-mpi.org
I tried converting all the stdout/stderr input to single strings using a 
“join”, and now I’m getting a different error - looks like we are failing to 
get a submit id?

<<<<<<< Raw Output (Start) >>>>>>
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;>



500 Internal Server Error

#powered_by {
margin-top: 20px;
border-top: 2px solid black;
font-style: italic;
}

#traceback {
color: red;
}



500 Internal Server Error
The server encountered an unexpected condition which prevented it 
from fulfilling the request.
Traceback (most recent call last):
  File 
"/nfs/data/osl/www/mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/env/lib/python2.6/site-packages/cherrypy/_cprequest.py",
 line 670, in respond
response.body = self.handler()
  File 
"/nfs/data/osl/www/mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/env/lib/python2.6/site-packages/cherrypy/lib/encoding.py",
 line 217, in __call__
self.body = self.oldhandler(*args, **kwargs)
  File 
"/nfs/data/osl/www/mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/env/lib/python2.6/site-packages/cherrypy/lib/jsontools.py",
 line 63, in json_handler
value = cherrypy.serving.request._json_inner_handler(*args, **kwargs)
  File 
"/nfs/data/osl/www/mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/env/lib/python2.6/site-packages/cherrypy/_cpdispatch.py",
 line 60, in __call__
return self.callable(*self.args, **self.kwargs)
  File 
"/nfs/data/osl/www/mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/webapp/dispatchers.py",
 line 318, in POST
submit_info = self._db.get_submit_id(data['metadata'])
  File 
"/nfs/data/osl/www/mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/webapp/db_pgv3.py",
 line 234, in get_submit_id
submit_id = self._select_insert("submit", "submit_id", fields, values)
  File 
"/nfs/data/osl/www/mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/webapp/db_pgv3.py",
 line 183, in _select_insert
cursor.execute( select_stmt, values )
InternalError: current transaction is aborted, commands ignored until end of 
transaction block



  
Powered by http://www.cherrypy.org;>CherryPy 5.1.0
  




<<<<<<< Raw Output (End  ) >>>>>>


> On Aug 29, 2016, at 9:03 AM, Josh Hursey <jjhur...@open-mpi.org> wrote:
> 
> Looking at the cherrypy server log it looks like the error is related to this:
> "result_stderr": [
> "Option middleware is not supported"
> ],
> 
> This value was set to an array instead of string. 
> 
> result_stdout is coming through fine as a string, but it looks like you are 
> submitting the result_stderr as an array still. The server treats both of 
> those keys the same, so it must be on the python client side.
> 
> I don't think the server requires a MPI Install phase. It's listed as an 
> optional field for the test_build/test_run phases. If you don't submit an MPI 
> Install phase it might not show up in the MTT Reporter's default view, but 
> that's the same with the Perl client configured to use an already installed 
> build.
> 
> 
> On Fri, Aug 26, 2016 at 9:40 PM, r...@open-mpi.org <mailto:r...@open-mpi.org> 
> <r...@open-mpi.org <mailto:r...@open-mpi.org>> wrote:
> Hmmm...Hey Josh - is it possible that your server is requiring an MPI_Install 
> phase? We don’t have one since we just build and then set the path 
> accordingly - is it complaining about missing data for an install phase?
> 
> 
>> On Aug 26, 2016, at 7:33 PM, r...@open-mpi.org <mailto:r...@open-mpi.org> 
>> wrote:
>> 
>> Okay, I cleaned things up some more and got a little bit further - now 
>> hitting an error in the server?
>> 
>> <<<<<<< Payload (End  ) -->>>>>>
>> INFO:requests.packages.urllib3.connectionpool:Resetting dropped connection: 
>> mtt.open-mpi.org <http://mtt.open-mpi.org/>
>> DEBUG:requests.packages.urllib3.connectionpool:"POST /submit/cpy/api/submit 
>> HTTP/1.1" 500 2535
>> <<<<<<< Response -->>>>>>
>> Result: 500: text/html;charset=utf-8
>> {'content-length': '2535', 'set-cookie': 
>> 'session_id=1b3f3c3df893e673e072430844afe27b4389be71; expires=Sat, 27 Aug 
>> 2016 03:31:28 GMT; Path=/', 'server': 'CherryPy/5.1.0', 'connection': 
>> 'close', 'allow': 'POST', 'date': 'Sat, 27 Aug 2016 02:31:28 GMT', 
>> 'access-

Re: [MTT devel] the boolean keyval error traceback with debug

2016-09-02 Thread r...@open-mpi.org
Should be fixed in https://github.com/open-mpi/mtt/pull/469

> On Aug 31, 2016, at 6:54 PM, r...@open-mpi.org wrote:
> 
> I’ll dig into this tomorrow
> 
>> On Aug 31, 2016, at 10:59 AM, Howard Pritchard <hpprit...@gmail.com 
>> <mailto:hpprit...@gmail.com>> wrote:
>> 
>> Hi Folks,
>> 
>> Here's what I'm seeing with the boolean keyval issue:
>> 
>> orking repo g...@github.com:open-mpi/ompi-tests
>> 
>> Working final repo g...@github.com:open-mpi/ompi-tests
>> 
>> LOGGING results for ASIS TestGet:IBM
>> 
>> ASIS TestBuild:IBMInstalled
>> 
>> DefaultTestBuild
>> 
>> processing kvkey merge_stdout_stderr
>> 
>> processing kvkey save_stdout_on_success
>> 
>> Autotools Execute
>> 
>> processing kvkey merge_stdout_stderr
>> 
>> Traceback (most recent call last):
>> 
>>   File "./pymtt.py", line 247, in 
>> 
>> testDef.executeTest()
>> 
>>   File "/Users/hpp/mtt/pylib/System/TestDef.py", line 602, in executeTest
>> 
>> executor.plugin_object.execute(self)
>> 
>>   File "/Users/hpp/mtt/pylib/Tools/Executor/sequential.py", line 223, in 
>> execute
>> 
>> plugin.execute(stageLog, keyvals, testDef)
>> 
>>   File "/Users/hpp/mtt/pylib/Stages/TestBuild/DefaultTestBuild.py", line 
>> 131, in execute
>> 
>> plugin.execute(log, cmds, testDef)
>> 
>>   File "/Users/hpp/mtt/pylib/Tools/Build/Autotools.py", line 63, in execute
>> 
>> testDef.parseOptions(log, self.options, keyvals, cmds)
>> 
>>   File "/Users/hpp/mtt/pylib/System/TestDef.py", line 125, in parseOptions
>> 
>> if keyvals[kvkey].upper() in ['TRUE', '1', 'T', 'Y', 'YES']:
>> 
>> 
>> 
>> ___
>> mtt-devel mailing list
>> mtt-devel@lists.open-mpi.org <mailto:mtt-devel@lists.open-mpi.org>
>> https://rfd.newmexicoconsortium.org/mailman/listinfo/mtt-devel
> 
> ___
> mtt-devel mailing list
> mtt-devel@lists.open-mpi.org
> https://rfd.newmexicoconsortium.org/mailman/listinfo/mtt-devel

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

Re: [MTT devel] the boolean keyval error traceback with debug

2016-08-31 Thread r...@open-mpi.org
I’ll dig into this tomorrow

> On Aug 31, 2016, at 10:59 AM, Howard Pritchard  wrote:
> 
> Hi Folks,
> 
> Here's what I'm seeing with the boolean keyval issue:
> 
> orking repo g...@github.com:open-mpi/ompi-tests
> 
> Working final repo g...@github.com:open-mpi/ompi-tests
> 
> LOGGING results for ASIS TestGet:IBM
> 
> ASIS TestBuild:IBMInstalled
> 
> DefaultTestBuild
> 
> processing kvkey merge_stdout_stderr
> 
> processing kvkey save_stdout_on_success
> 
> Autotools Execute
> 
> processing kvkey merge_stdout_stderr
> 
> Traceback (most recent call last):
> 
>   File "./pymtt.py", line 247, in 
> 
> testDef.executeTest()
> 
>   File "/Users/hpp/mtt/pylib/System/TestDef.py", line 602, in executeTest
> 
> executor.plugin_object.execute(self)
> 
>   File "/Users/hpp/mtt/pylib/Tools/Executor/sequential.py", line 223, in 
> execute
> 
> plugin.execute(stageLog, keyvals, testDef)
> 
>   File "/Users/hpp/mtt/pylib/Stages/TestBuild/DefaultTestBuild.py", line 131, 
> in execute
> 
> plugin.execute(log, cmds, testDef)
> 
>   File "/Users/hpp/mtt/pylib/Tools/Build/Autotools.py", line 63, in execute
> 
> testDef.parseOptions(log, self.options, keyvals, cmds)
> 
>   File "/Users/hpp/mtt/pylib/System/TestDef.py", line 125, in parseOptions
> 
> if keyvals[kvkey].upper() in ['TRUE', '1', 'T', 'Y', 'YES']:
> 
> 
> 
> ___
> mtt-devel mailing list
> mtt-devel@lists.open-mpi.org
> https://rfd.newmexicoconsortium.org/mailman/listinfo/mtt-devel

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

Re: [MTT devel] reporter error using pyclient

2016-08-26 Thread r...@open-mpi.org
Okay, I cleaned things up some more and got a little bit further - now hitting 
an error in the server?

<<<<<<< Payload (End  ) -->>>>>>
INFO:requests.packages.urllib3.connectionpool:Resetting dropped connection: 
mtt.open-mpi.org
DEBUG:requests.packages.urllib3.connectionpool:"POST /submit/cpy/api/submit 
HTTP/1.1" 500 2535
<<<<<<< Response -->>>>>>
Result: 500: text/html;charset=utf-8
{'content-length': '2535', 'set-cookie': 
'session_id=1b3f3c3df893e673e072430844afe27b4389be71; expires=Sat, 27 Aug 2016 
03:31:28 GMT; Path=/', 'server': 'CherryPy/5.1.0', 'connection': 'close', 
'allow': 'POST', 'date': 'Sat, 27 Aug 2016 02:31:28 GMT', 
'access-control-allow-origin': '*', 'content-type': 'text/html;charset=utf-8'}
Internal Server Error
<<<<<<< Raw Output (Start) >>>>>>
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;>



500 Internal Server Error

#powered_by {
margin-top: 20px;
border-top: 2px solid black;
font-style: italic;
}

#traceback {
color: red;
}



500 Internal Server Error
The server encountered an unexpected condition which prevented it 
from fulfilling the request.
Traceback (most recent call last):
  File 
"/nfs/data/osl/www/mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/env/lib/python2.6/site-packages/cherrypy/_cprequest.py",
 line 670, in respond
response.body = self.handler()
  File 
"/nfs/data/osl/www/mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/env/lib/python2.6/site-packages/cherrypy/lib/encoding.py",
 line 217, in __call__
self.body = self.oldhandler(*args, **kwargs)
  File 
"/nfs/data/osl/www/mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/env/lib/python2.6/site-packages/cherrypy/lib/jsontools.py",
 line 63, in json_handler
value = cherrypy.serving.request._json_inner_handler(*args, **kwargs)
  File 
"/nfs/data/osl/www/mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/env/lib/python2.6/site-packages/cherrypy/_cpdispatch.py",
 line 60, in __call__
return self.callable(*self.args, **self.kwargs)
  File 
"/nfs/data/osl/www/mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/webapp/dispatchers.py",
 line 333, in POST
value = self._db.insert_mpi_install(submit_info['submit_id'], 
data['metadata'], entry)
  File 
"/nfs/data/osl/www/mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/webapp/db_pgv3.py",
 line 641, in insert_mpi_install
fields, values)
  File 
"/nfs/data/osl/www/mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/webapp/db_pgv3.py",
 line 183, in _select_insert
cursor.execute( select_stmt, values )
ProgrammingError: operator does not exist: text = text[]
LINE 3: ... merge_stdout_stderr = E'false' AND result_stderr = ARRAY[E'...
 ^
HINT:  No operator matches the given name and argument type(s). You might need 
to add explicit type casts.



  
Powered by http://www.cherrypy.org;>CherryPy 5.1.0
  




<<<<<<< Raw Output (End  ) >>>>>>



> On Aug 26, 2016, at 2:01 PM, r...@open-mpi.org wrote:
> 
> That appears to resolve the connection issue:
> 
> <<<<<<< Payload (End  ) -->>>>>>
> INFO:requests.packages.urllib3.connectionpool:Resetting dropped connection: 
> mtt.open-mpi.org <http://mtt.open-mpi.org/>
> DEBUG:requests.packages.urllib3.connectionpool:"POST /submit/cpy/api/submit 
> HTTP/1.1" 200 90
> <<<<<<< Response -->>>>>>
> Result: 200: application/json
> {'content-length': '90', 'set-cookie': 
> 'session_id=df54fbc661acdd2cdda5e5ee74de3b62e1fac8e5; expires=Fri, 26 Aug 
> 2016 22:00:12 GMT; Path=/', 'server': 'CherryPy/5.1.0', 'connection': 
> 'close', 'allow': 'POST', 'date': 'Fri, 26 Aug 2016 21:00:12 GMT', 
> 'access-control-allow-origin': '*', 'content-type': 'application/json'}
> OK
> <<<<<<< Raw Output (Start) >>>>>>
> {"status": -2, "status_message": "[DB PG V3] (mpi_install)  Missing field: 
> compiler_name"}
> <<<<<<<---- Raw Output (End  ) ---->>>>>>
> 
> 
> Looks like we are still missing some fields, though...
> 
> 
>> On Aug 26, 2016, at 1:36 PM, Josh Hursey <jjhur...@open-mpi.org 
>> <mailto:jjhur...@open-mpi.org>> 

Re: [MTT devel] reporter error using pyclient

2016-08-26 Thread r...@open-mpi.org
Hmmm...Hey Josh - is it possible that your server is requiring an MPI_Install 
phase? We don’t have one since we just build and then set the path accordingly 
- is it complaining about missing data for an install phase?


> On Aug 26, 2016, at 7:33 PM, r...@open-mpi.org wrote:
> 
> Okay, I cleaned things up some more and got a little bit further - now 
> hitting an error in the server?
> 
> <<<<<<< Payload (End  ) -->>>>>>
> INFO:requests.packages.urllib3.connectionpool:Resetting dropped connection: 
> mtt.open-mpi.org <http://mtt.open-mpi.org/>
> DEBUG:requests.packages.urllib3.connectionpool:"POST /submit/cpy/api/submit 
> HTTP/1.1" 500 2535
> <<<<<<< Response -->>>>>>
> Result: 500: text/html;charset=utf-8
> {'content-length': '2535', 'set-cookie': 
> 'session_id=1b3f3c3df893e673e072430844afe27b4389be71; expires=Sat, 27 Aug 
> 2016 03:31:28 GMT; Path=/', 'server': 'CherryPy/5.1.0', 'connection': 
> 'close', 'allow': 'POST', 'date': 'Sat, 27 Aug 2016 02:31:28 GMT', 
> 'access-control-allow-origin': '*', 'content-type': 'text/html;charset=utf-8'}
> Internal Server Error
> <<<<<<< Raw Output (Start) >>>>>>
>  "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd 
> <http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>">
> 
> 
> 
> 500 Internal Server Error
> 
> #powered_by {
> margin-top: 20px;
> border-top: 2px solid black;
> font-style: italic;
> }
> 
> #traceback {
> color: red;
> }
> 
> 
> 
> 500 Internal Server Error
> The server encountered an unexpected condition which prevented it 
> from fulfilling the request.
> Traceback (most recent call last):
>   File 
> "/nfs/data/osl/www/mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/env/lib/python2.6/site-packages/cherrypy/_cprequest.py
>  
> <http://mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/env/lib/python2.6/site-packages/cherrypy/_cprequest.py>",
>  line 670, in respond
> response.body = self.handler()
>   File 
> "/nfs/data/osl/www/mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/env/lib/python2.6/site-packages/cherrypy/lib/encoding.py
>  
> <http://mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/env/lib/python2.6/site-packages/cherrypy/lib/encoding.py>",
>  line 217, in __call__
> self.body = self.oldhandler(*args, **kwargs)
>   File 
> "/nfs/data/osl/www/mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/env/lib/python2.6/site-packages/cherrypy/lib/jsontools.py
>  
> <http://mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/env/lib/python2.6/site-packages/cherrypy/lib/jsontools.py>",
>  line 63, in json_handler
> value = cherrypy.serving.request._json_inner_handler(*args, **kwargs)
>   File 
> "/nfs/data/osl/www/mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/env/lib/python2.6/site-packages/cherrypy/_cpdispatch.py
>  
> <http://mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/env/lib/python2.6/site-packages/cherrypy/_cpdispatch.py>",
>  line 60, in __call__
> return self.callable(*self.args, **self.kwargs)
>   File 
> "/nfs/data/osl/www/mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/webapp/dispatchers.py
>  
> <http://mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/webapp/dispatchers.py>",
>  line 333, in POST
> value = self._db.insert_mpi_install(submit_info['submit_id'], 
> data['metadata'], entry)
>   File 
> "/nfs/data/osl/www/mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/webapp/db_pgv3.py
>  
> <http://mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/webapp/db_pgv3.py>",
>  line 641, in insert_mpi_install
> fields, values)
>   File 
> "/nfs/data/osl/www/mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/webapp/db_pgv3.py
>  
> <http://mtt.open-mpi.org/mtt-modern/server/php/cherrypy/src/webapp/db_pgv3.py>",
>  line 183, in _select_insert
> cursor.execute( select_stmt, values )
> ProgrammingError: operator does not exist: text = text[]
> LINE 3: ... merge_stdout_stderr = E'false' AND result_stderr = ARRAY[E'...
>  ^
> HINT:  No operator matches the given name and argument type(s). You might 
> need to add explicit type casts.
> 
> 
> 
>   
> Powered by http://www.cherrypy.org 
> <http:/

Re: [MTT devel] reporter error using pyclient

2016-08-26 Thread r...@open-mpi.org
BTW: here is my .ini snippet


[Reporter:IUdatabase]
plugin = IUDatabase

realm = OMPI
username = intel
pwfile = /home/common/mttpwd.txt
platform = bend-rsh
hostname = rhc00[1-2]
url = https://mtt.open-mpi.org/submit/cpy/
email = r...@open-mpi.org


So it looks like the CherryPi server is adding a /submit to the end, and that 
might be the issue?

> On Aug 26, 2016, at 12:07 PM, r...@open-mpi.org wrote:
> 
> Even though I can get there with the browser, I do still hit this error:
> 
> <<<<<<< Raw Output (Start) >>>>>>
> 
> 
> 404 Not Found
> 
> Not Found
> The requested URL /submit/cpy//submit was not found on this server.
> 
> Apache/2.2.15 (Red Hat) Server at mtt.open-mpi.org 
> <http://mtt.open-mpi.org/> Port 443
> 
> 
> <<<<<<< Raw Output (End  ) ---->>>>>>
> 
> 
> It looks to me like the URL isn’t correctly set - yes?
> 
>> On Aug 26, 2016, at 7:10 AM, r...@open-mpi.org <mailto:r...@open-mpi.org> 
>> wrote:
>> 
>> I checked it with my browser and got the expected return message
>> 
>> 
>>> On Aug 25, 2016, at 1:46 PM, Josh Hursey <jjhur...@open-mpi.org 
>>> <mailto:jjhur...@open-mpi.org>> wrote:
>>> 
>>> Can you send me the portion of the ini script that you are using?
>>> 
>>> Can you access this site via the browser (you will need your login 
>>> credentials):
>>>   https://mtt.open-mpi.org/submit/cpy/api/ 
>>> <https://mtt.open-mpi.org/submit/cpy/api/>
>>> It should return:
>>>  {"status": 0, "status_message": "Success"}
>>> 
>>> 
>>> On Thu, Aug 25, 2016 at 3:01 PM, Howard Pritchard <hpprit...@gmail.com 
>>> <mailto:hpprit...@gmail.com>> wrote:
>>> HI Josh,
>>> 
>>> That doesn't seem to help:
>>> 
>>> <<<<<<< Payload (End  ) -->>>>>>
>>> 
>>> INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection 
>>> (1): mtt.open-mpi.org <http://mtt.open-mpi.org/>
>>> /Users/hpp/.virtualenvs/mtt_py3/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:315:
>>>  SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject 
>>> Name Indication) extension to TLS is not available on this platform. This 
>>> may cause the server to present an incorrect TLS certificate, which can 
>>> cause validation failures. For more information, see 
>>> https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning 
>>> <https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning>.
>>> 
>>>   SNIMissingWarning
>>> 
>>> /Users/hpp/.virtualenvs/mtt_py3/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:120:
>>>  InsecurePlatformWarning: A true SSLContext object is not available. This 
>>> prevents urllib3 from configuring SSL appropriately and may cause certain 
>>> SSL connections to fail. For more information, see 
>>> https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning
>>>  
>>> <https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning>.
>>> 
>>>   InsecurePlatformWarning
>>> 
>>> /Users/hpp/.virtualenvs/mtt_py3/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:791:
>>>  InsecureRequestWarning: Unverified HTTPS request is being made. Adding 
>>> certificate verification is strongly advised. See: 
>>> https://urllib3.readthedocs.org/en/latest/security.html 
>>> <https://urllib3.readthedocs.org/en/latest/security.html>
>>>   InsecureRequestWarning)
>>> 
>>> DEBUG:requests.packages.urllib3.connectionpool:"POST /submit/cpy//serial 
>>> HTTP/1.1" 404 300
>>> 
>>> <<<<<<< Response -->>>>>>
>>> 
>>> Result: 404: text/html; charset=iso-8859-1
>>> 
>>> {'Date': 'Thu, 25 Aug 2016 19:58:41 GMT', 'Content-Length': '300', 
>>> 'Content-Type': 'text/html; charset=iso-8859-1', 'Connection': 'close', 
>>> 'Server': 'Apache/2.2.15 (Red Hat)'}
>>> 
>>> Not Found
>>> 
>>> <<<<<<< Raw Output (Start) >>>>>>
>>> 
>>> 
>>> 
>>> 
&g

Re: [MTT devel] reporter error using pyclient

2016-08-26 Thread r...@open-mpi.org
FWIW: the extra “/“ is inserted in the IUDatabase reporter plugin. Removing it 
didn’t make any difference

Must be something on the server side, I fear


> On Aug 26, 2016, at 12:08 PM, r...@open-mpi.org wrote:
> 
> BTW: here is my .ini snippet
> 
> 
> [Reporter:IUdatabase]
> plugin = IUDatabase
> 
> realm = OMPI
> username = intel
> pwfile = /home/common/mttpwd.txt
> platform = bend-rsh
> hostname = rhc00[1-2]
> url = https://mtt.open-mpi.org/submit/cpy/ 
> <https://mtt.open-mpi.org/submit/cpy/>
> email = r...@open-mpi.org <mailto:r...@open-mpi.org>
> 
> 
> So it looks like the CherryPi server is adding a /submit to the end, and that 
> might be the issue?
> 
>> On Aug 26, 2016, at 12:07 PM, r...@open-mpi.org <mailto:r...@open-mpi.org> 
>> wrote:
>> 
>> Even though I can get there with the browser, I do still hit this error:
>> 
>> <<<<<<< Raw Output (Start) >>>>>>
>> 
>> 
>> 404 Not Found
>> 
>> Not Found
>> The requested URL /submit/cpy//submit was not found on this server.
>> 
>> Apache/2.2.15 (Red Hat) Server at mtt.open-mpi.org 
>> <http://mtt.open-mpi.org/> Port 443
>> 
>> 
>> <<<<<<< Raw Output (End  ) >>>>>>
>> 
>> 
>> It looks to me like the URL isn’t correctly set - yes?
>> 
>>> On Aug 26, 2016, at 7:10 AM, r...@open-mpi.org <mailto:r...@open-mpi.org> 
>>> wrote:
>>> 
>>> I checked it with my browser and got the expected return message
>>> 
>>> 
>>>> On Aug 25, 2016, at 1:46 PM, Josh Hursey <jjhur...@open-mpi.org 
>>>> <mailto:jjhur...@open-mpi.org>> wrote:
>>>> 
>>>> Can you send me the portion of the ini script that you are using?
>>>> 
>>>> Can you access this site via the browser (you will need your login 
>>>> credentials):
>>>>   https://mtt.open-mpi.org/submit/cpy/api/ 
>>>> <https://mtt.open-mpi.org/submit/cpy/api/>
>>>> It should return:
>>>>  {"status": 0, "status_message": "Success"}
>>>> 
>>>> 
>>>> On Thu, Aug 25, 2016 at 3:01 PM, Howard Pritchard <hpprit...@gmail.com 
>>>> <mailto:hpprit...@gmail.com>> wrote:
>>>> HI Josh,
>>>> 
>>>> That doesn't seem to help:
>>>> 
>>>> <<<<<<< Payload (End  ) -->>>>>>
>>>> 
>>>> INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS 
>>>> connection (1): mtt.open-mpi.org <http://mtt.open-mpi.org/>
>>>> /Users/hpp/.virtualenvs/mtt_py3/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:315:
>>>>  SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject 
>>>> Name Indication) extension to TLS is not available on this platform. This 
>>>> may cause the server to present an incorrect TLS certificate, which can 
>>>> cause validation failures. For more information, see 
>>>> https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning 
>>>> <https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning>.
>>>> 
>>>>   SNIMissingWarning
>>>> 
>>>> /Users/hpp/.virtualenvs/mtt_py3/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:120:
>>>>  InsecurePlatformWarning: A true SSLContext object is not available. This 
>>>> prevents urllib3 from configuring SSL appropriately and may cause certain 
>>>> SSL connections to fail. For more information, see 
>>>> https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning
>>>>  
>>>> <https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning>.
>>>> 
>>>>   InsecurePlatformWarning
>>>> 
>>>> /Users/hpp/.virtualenvs/mtt_py3/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:791:
>>>>  InsecureRequestWarning: Unverified HTTPS request is being made. Adding 
>>>> certificate verification is strongly advised. See: 
>>>> https://urllib3.readthedocs.org/en/latest/security.html 
>>>> <https://urllib3.readthedocs.org/en/latest/security.html>
>>>>   InsecureRequestWarning)
>>>> 
>>>> DEBUG:requests.packages.u

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 
> >:
> 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': 

[MTT devel] MTT docs now online

2018-07-12 Thread r...@open-mpi.org
We finally got the bugs out and the documentation for Python MTT implementation 
is now online at https://open-mpi.github.io/mtt 
.
It also picked up the Perl stuff, but we’ll just ignore that little detail :-)

Thanks to Akshaya Jagannadharao for all the hard work to make that happen!

Ralph

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