summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorJian Wen <jian.wen@canonical.com>2013-01-14 19:13:24 +0800
committerJian Wen <jian.wen@canonical.com>2013-01-31 15:22:43 +0800
commitbe62d6a86971abac57a1cc03c985ba1e97fd55cb (patch)
tree4f0beece6fdf6bec93e18341322ed070d67ca203 /nova/exception.py
parentb7e0c9dd588e5fad1cf4e3eb3f71828ca0122a55 (diff)
downloadnova-be62d6a86971abac57a1cc03c985ba1e97fd55cb.tar.gz
nova-be62d6a86971abac57a1cc03c985ba1e97fd55cb.tar.xz
nova-be62d6a86971abac57a1cc03c985ba1e97fd55cb.zip
Handle compute node not available for live migration
This patch handles exception.ComputeServiceUnavailable by restoring instance's vm_state and instance's task_state after live migration failure caused by unavailable source/dest compute node. Raises detailed HTTPBadRequest explanation for this exception. Fixes bug 973393 and bug 1051881 Change-Id: If825b61fad9c4e3030f2e6c5002907255eaf3661
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/exception.py b/nova/exception.py
index 6915c14bb..92bb8b993 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -358,7 +358,7 @@ class ComputeResourcesUnavailable(ServiceUnavailable):
class ComputeServiceUnavailable(ServiceUnavailable):
- message = _("Compute service is unavailable at this time.")
+ message = _("Compute service of %(host)s is unavailable at this time.")
class UnableToMigrateToSelf(Invalid):