diff options
| author | Eoghan Glynn <eglynn@redhat.com> | 2012-07-04 11:21:19 +0000 |
|---|---|---|
| committer | Eoghan Glynn <eglynn@redhat.com> | 2012-07-04 16:39:04 +0100 |
| commit | dea224ae26c752d328ccbb622048a63e990bee50 (patch) | |
| tree | 0cab8091383831ff520a4bebe121b5044da6a3a0 /nova/exception.py | |
| parent | 980c76266629ea66bc23fddb02f5be61c51d873c (diff) | |
Distinguish over-quota for volume size and number.
Fixes LP 1020634
Ensure that exceeding the allowed number of volumes is not
mis-represented in log messages and exception handling as
excessive space usage.
Change-Id: I71ec995c77bc447bfc9221084b057bd8d69a4513
Diffstat (limited to 'nova/exception.py')
| -rw-r--r-- | nova/exception.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py index c1f417afe..ff9a20a41 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -1005,6 +1005,10 @@ class VolumeSizeTooLarge(QuotaError): message = _("Maximum volume size exceeded") +class VolumeLimitExceeded(QuotaError): + message = _("Maximum number of volumes allowed (%(allowed)d) exceeded") + + class FloatingIpLimitExceeded(QuotaError): message = _("Maximum number of floating ips exceeded") |
