From 34167e2bd9e8fd3315b0ed35bdb5657b49c000ad Mon Sep 17 00:00:00 2001 From: jichenjc Date: Sun, 2 Mar 2014 21:54:58 +0800 Subject: [PATCH] Add fault wrapper for rescue function we might need to record the unsuccessful action for instance, rescue function currently don't have this method. This patch add it so that it will record failed rescue action into db. Change-Id: I615089e7562262dc286a55a2c7228be3201d6d94 --- nova/compute/manager.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nova/compute/manager.py b/nova/compute/manager.py index 1338d70f351a..4dec0b342312 100644 --- a/nova/compute/manager.py +++ b/nova/compute/manager.py @@ -2945,6 +2945,7 @@ class ComputeManager(manager.Manager): @wrap_exception() @reverts_task_state @wrap_instance_event + @wrap_instance_fault def rescue_instance(self, context, instance, rescue_password, rescue_image_ref=None): """Rescue an instance on this host."""