summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorRick Harris <rick.harris@rackspace.com>2011-05-17 16:26:40 -0500
committerRick Harris <rick.harris@rackspace.com>2011-05-17 16:26:40 -0500
commit579bbde235781f43e037410fd6402e4e6ecd534b (patch)
tree846e3a3819d456c05069fa0c154c34b18cceca24 /nova/exception.py
parent23bbbfcd3317859d44dba7da7996a978ad922543 (diff)
parentb66c689afc5923702b3d6d27a5c8f12f6749b07d (diff)
downloadnova-579bbde235781f43e037410fd6402e4e6ecd534b.tar.gz
nova-579bbde235781f43e037410fd6402e4e6ecd534b.tar.xz
nova-579bbde235781f43e037410fd6402e4e6ecd534b.zip
Merging in Sandy's changes adding Noop Cost Fn with tests
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/nova/exception.py b/nova/exception.py
index cf6069454..63ed6dd5e 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -460,11 +460,18 @@ class FlavorNotFound(NotFound):
class ZoneNotFound(NotFound):
message = _("Zone %(zone_id)s could not be found.")
-
+# TODO(sirp): move these into the schedule classes since they are internal?
class SchedulerHostFilterDriverNotFound(NotFound):
message = _("Scheduler Host Filter Driver %(driver_name)s could"
" not be found.")
+class SchedulerCostFunctionNotFound(NotFound):
+ message = _("Scheduler cost function %(cost_fn_str)s could"
+ " not be found.")
+
+class SchedulerWeightFlagNotFound(NotFound):
+ message = _("Scheduler weight flag not found: %(flag_name)s")
+
class InstanceMetadataNotFound(NotFound):
message = _("Instance %(instance_id)s has no metadata with "