summaryrefslogtreecommitdiff
path: root/nova/exception.py
diff options
context:
space:
mode:
authorJoe Gordon <jogo@cloudscaling.com>2011-11-01 16:35:08 -0700
committerJoe Gordon <jogo@cloudscaling.com>2011-11-08 09:21:03 -0800
commit1c389d0bd8e9c9f21f760f9b8f5b79baffd38d39 (patch)
treee2319d13b0a00e221ad6ea72db40db8672b5f280 /nova/exception.py
parent2826e862d73d1b2cbe80da3385075cd6c33f511d (diff)
downloadnova-1c389d0bd8e9c9f21f760f9b8f5b79baffd38d39.tar.gz
Exception cleanup in scheduler
Fixes NoValidHost and willNotSchedule by moving them to exception.py Removed unneeded imports Change-Id: Ib9bb4b36d5e4c00667bd0b2d73137ba9eac5b3b0
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 1b80a0f568..129dc775f6 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -863,3 +863,11 @@ class InsufficientFreeMemory(NovaException):
class CouldNotFetchMetrics(NovaException):
message = _("Could not fetch bandwidth/cpu/disk metrics for this host.")
+
+
+class NoValidHost(NovaException):
+ message = _("No valid host was found. %(reason)s")
+
+
+class WillNotSchedule(NovaException):
+ message = _("Host %(host)s is not up or doesn't exist.")