summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-07-11 17:06:42 +0000
committerGerrit Code Review <review@openstack.org>2012-07-11 17:06:42 +0000
commitf220bf679086fdb3fbb01fd77fc2bb7234c121fe (patch)
tree6a84c5d8fddf1e205aaf8eec3451a3bf62931245 /nova/exception.py
parent0c8d9c749a5d697c49ba45c08ba716c47809e2ab (diff)
parent2fdd73816c56b578a65466db4e5a86b9b191e1c1 (diff)
Merge "Refactor instance_usage_audit. Add audit tasklog."
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py
index c1f417afe..0efe8e41b 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -1100,6 +1100,14 @@ class CouldNotFetchImage(NovaException):
message = _("Could not fetch image %(image_id)s")
+class TaskAlreadyRunning(NovaException):
+ message = _("Task %(task_name) is already running on host %(host)")
+
+
+class TaskNotRunning(NovaException):
+ message = _("Task %(task_name) is not running on host %(host)")
+
+
def get_context_from_function_and_args(function, args, kwargs):
"""Find an arg of type RequestContext and return it.