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

[Xen-devel] [OSSTEST PATCH 5/9] ms-planner: Improve an error message



I experienced this `die' due to mg-schema-test-database failing to
borrow shared hosts properly, and added this Dumper for debugging.

I have not bothered to improve any of the other quite terse `die's in
ms-planner.

Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
---
 ms-planner |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ms-planner b/ms-planner
index fc65a5b..8c2e06f 100755
--- a/ms-planner
+++ b/ms-planner
@@ -319,7 +319,9 @@ END
        my ($reso, $shareix) = ($`, $1);
 
        my $share= $currentshare{$reso};
-       die unless !!$share == !!$shareix;
+       die Dumper($reskey, $reso, $shareix,
+                  $plan->{Allocations}{$reskey}, $currentshare{$reso})
+           unless !!$share == !!$shareix;
 
         if ($share && $share->{OnlyPreparing}) {
             delete $plan->{Allocations}{$reskey};
-- 
1.7.10.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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