[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 01/13] sg-report-host-history: Improve debugging output


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
  • Date: Fri, 8 Nov 2019 18:49:49 +0000
  • Authentication-results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=ian.jackson@xxxxxxxxxxxxx; spf=Pass smtp.mailfrom=Ian.Jackson@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
  • Delivery-date: Fri, 08 Nov 2019 18:50:20 +0000
  • Ironport-sdr: GWQKNE16H2UwU6HHn9kVRe4mGvxsxoewaO/efOBRNqVlXl3gO3JG1y/QV2+MGXs1k2LsBpD772 xdmvN19f9zlYGpj1qPXIlaQtTsFzKewdYL+b5fhtCyRVtLbnU3cVG3uhCkQmGpLY2z8Ro4LYt2 mgCcNnNXmSJRUx0PkmV8yoNawtIlOg0bQYz5stCNJpVAOuQMgSlB9OY1vKhGDmNU1eXToa1NHh CGcI8RJgWhql9nqOF+EGACbfBBCqADHWx0yh7LPPCUWeV8ZmRIhR2oeH0QznZTwmDW7t1396IK JHE=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 sg-report-host-history | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/sg-report-host-history b/sg-report-host-history
index bd7391e0..42def6bf 100755
--- a/sg-report-host-history
+++ b/sg-report-host-history
@@ -101,6 +101,8 @@ END
     $minflight //= 0;
 
     $flightcond = "(flight > $minflight)";
+
+    print DEBUG "MINFLIGHT $minflight\n";
 }
 
 sub jobquery ($$) {
@@ -128,18 +130,22 @@ END
 
     push @params, scalar keys %hosts;
 
+    print DEBUG "MAINQUERY...\n";
     $runvarq->execute(@params);
 
     print DEBUG "FIRST PASS\n";
     while (my $jr= $runvarq->fetchrow_hashref()) {
-       print DEBUG "JOB $jr->{flight}.$jr->{job} ";
+       print DEBUG " $jr->{flight}.$jr->{job} ";
        push @{ $hosts{$jr->{val}} }, $jr;
     }
+    print DEBUG "\n";
 }
 
 sub reporthost ($) {
     my ($hostname) = @_;
 
+    print DEBUG "HOST $hostname...\n";
+
     die if $hostname =~ m/[^-_.+0-9a-z]/;
 
     my $html_file= "$htmlout/$hostname.html";
@@ -204,7 +210,7 @@ END
 
     my @rows;
     foreach my $jr (@$inrows) {
-       print DEBUG "JOB $jr->{flight}.$jr->{job}\n";
+       print DEBUG "JOB $jr->{flight}.$jr->{job} ";
 
        my $endedrow = jobquery($endedq, $jr);
        if (!$endedrow) {
@@ -222,6 +228,7 @@ END
 
     my $alternate = 0;
     foreach my $jr (@rows) {
+        print DEBUG "JR $jr->{flight}.$jr->{job}\n";
        my $ir = jobquery($infoq, $jr);
        my $ar = jobquery($allocdq, $jr);
        my $ident = $jr->{name};
@@ -340,6 +347,7 @@ foreach my $host (@ARGV) {
 END
             $hostsinflightq->execute($flight);
            while (my $row = $hostsinflightq->fetchrow_hashref()) {
+                print DEBUG "HR $row->{val}\n";
                $hosts{$row->{val}} = [ ];
            }
        });
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.