open-mpi / mtt

MPI Testing Tool
https://open-mpi.github.io/mtt
Other
61 stars 47 forks source link

MTTDatabase needs to clearly report cause of upload failures #396

Open ompiteam opened 9 years ago

ompiteam commented 9 years ago

The MTTDatabase module may fail to upload test results to the database, though the root cause of why the results failed to upload is not clearly sent back to the user. E.g., the user will see only the following in the debug output:

{{{ ... MTTDatabase client getting a client serial number... MTTDatabase client trying proxy: / Default (none) MTTDatabase proxy successful / not 500 MTTDatabase client got response: *\ WARNING: MTTDatabase client did not get a serial ... }}}

In a later phase (e.g., MPI install) the test results will not upload because the MTT client could not get a client_serial. A Dumper on the HTTP response reveals that the cause of the upload problem is due to perl not being able to locate HTML/HeadParser.pm. Simply installing HTML/HeadParser.pm on the client system will enable the results to upload to the database.

{{{ $response = $VAR1 = bless( { '_protocol' => 'HTTP/1.1', '_content' => '', '_rc' => 200, '_headers' => bless( { 'connection' => 'close', 'x-powered-by' => 'PHP/4.3.9', 'client-response-num' => 1, 'date' => 'Fri, 21 May 2010 13:59:28 GMT', 'client-peer' => '129.79.247.128:80', 'content-length' => '32', 'client-aborted' => 'die', 'client-date' => 'Fri, 21 May 2010 14:35:08 GMT', 'content-type' => 'text/html; charset=UTF-8', 'x-died' => 'Can\'t locate HTML/HeadParser.pm in @INC (@INC contains: /workspace/em162155/hpc/mtt-utils/mtt-utils-hg-clone-nightly-testing/lib /ws/ompi-tools/lib/perl5/5.8.8 /usr/lib/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl . /workspace/em162155/hpc/mtt/cron/mtt-sandbox/lib) at /usr/lib/perl5/site_perl/5.8.8/LWP/UserAgent.pm line 592, line 1.', 'server' => 'Apache' }, 'HTTP::Headers' ), '_msg' => 'OK', 'default_add_content' => 1, '_request' => bless( { '_content' => 'SERIAL=1', '_uri' => bless( do{(my $o = 'http://www.open-mpi.org:80/mtt/submit/index.php')}, 'URI::http' ), '_headers' => bless( { 'user-agent' => 'MPI Test MTTDatabase Reporter', 'content-type' => 'application/x-www-form-urlencoded', 'content-length' => 8, 'authorization' => 'Basic XXXXXXXXXXXXXXX=' }, 'HTTP::Headers' ), '_method' => 'POST', '_uri_canonical' => bless( do{(my $o = 'http://www.open-mpi.org/mtt/submit/index.php')}, 'URI::http' ) }, 'HTTP::Request' ) }, 'HTTP::Response' ); }}}

ompiteam commented 9 years ago

Imported from trac issue 395. Created by emallove on 2010-05-21T10:45:52, last modified: 2010-05-21T10:45:52