summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-01-17 21:33:52 +0000
committerGerrit Code Review <review@openstack.org>2012-01-17 21:33:52 +0000
commit5987ed97ffb90e52acb7a7d9e0a915d072aadaed (patch)
tree99c8bf0270043631d801a4f275f128285377590d /nova/exception.py
parentfb75e2fd314330c3e6f371c228a4c5cf7a545028 (diff)
parentb76cc2f4426aef4422c5a4a6ad0a412a2cc4cbc3 (diff)
downloadnova-5987ed97ffb90e52acb7a7d9e0a915d072aadaed.tar.gz
nova-5987ed97ffb90e52acb7a7d9e0a915d072aadaed.tar.xz
nova-5987ed97ffb90e52acb7a7d9e0a915d072aadaed.zip
Merge "blueprint host-aggregates"
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py
index 6e60642f6..23bcf46f4 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -884,3 +884,28 @@ class WillNotSchedule(NovaException):
class QuotaError(ApiError):
"""Quota Exceeded."""
pass
+
+
+class AggregateNotFound(NotFound):
+ message = _("Aggregate %(aggregate_id)s could not be found.")
+
+
+class AggregateNameExists(Duplicate):
+ message = _("Aggregate %(aggregate_name)s already exists.")
+
+
+class AggregateHostNotFound(NotFound):
+ message = _("Aggregate %(aggregate_id)s has no host %(host)s.")
+
+
+class AggregateMetadataNotFound(NotFound):
+ message = _("Aggregate %(aggregate_id)s has no metadata with "
+ "key %(metadata_key)s.")
+
+
+class AggregateHostConflict(Duplicate):
+ message = _("Host %(host)s already member of another aggregate.")
+
+
+class AggregateHostExists(Duplicate):
+ message = _("Aggregate %(aggregate_id)s already has host %(host)s.")