From 724081adc450a900a6c1ba97e2d1d61748e30d4f Mon Sep 17 00:00:00 2001 From: Rick Harris Date: Thu, 17 Jan 2013 03:09:43 +0000 Subject: Better instance fault message when rescheduling. The old code would use exc_info[0] which is the type of exception, not the exception itself. This would result in the `message` attribute always being 'type' and the first-line of details being useless. The solution is to pass the actual exception object so that `message` becomes the class-name and the first-line of details becomes the `repr` of the exception object. Fixes bug 1100559 Change-Id: Ibaeb5dc5af419de6c98b44aec07bff225b2f9956 --- nova/compute/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/compute/manager.py b/nova/compute/manager.py index a4f17ee3d..b07f57c2e 100644 --- a/nova/compute/manager.py +++ b/nova/compute/manager.py @@ -731,7 +731,7 @@ class ComputeManager(manager.SchedulerDependentManager): rescheduled = False compute_utils.add_instance_fault_from_exc(context, instance_uuid, - exc_info[0], exc_info=exc_info) + exc_info[1], exc_info=exc_info) try: self._deallocate_network(context, instance) -- cgit