diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-01-17 21:33:52 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-01-17 21:33:52 +0000 |
| commit | 5987ed97ffb90e52acb7a7d9e0a915d072aadaed (patch) | |
| tree | 99c8bf0270043631d801a4f275f128285377590d /nova/exception.py | |
| parent | fb75e2fd314330c3e6f371c228a4c5cf7a545028 (diff) | |
| parent | b76cc2f4426aef4422c5a4a6ad0a412a2cc4cbc3 (diff) | |
| download | nova-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.py | 25 |
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.") |
