summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorKylin CG <kylin7.sg@gmail.com>2012-06-04 22:21:41 +0800
committerKylin CG <kylin7.sg@gmail.com>2012-08-06 23:55:22 +0800
commit391f345dfff174108e330de1ed4c7ed18f8ff923 (patch)
treef80dd112f40d94cdbb76b578a4b3b84c8915edef /nova/exception.py
parent51002f0d0f85f077bbbfed1d151df59240775ff8 (diff)
downloadnova-391f345dfff174108e330de1ed4c7ed18f8ff923.tar.gz
nova-391f345dfff174108e330de1ed4c7ed18f8ff923.tar.xz
nova-391f345dfff174108e330de1ed4c7ed18f8ff923.zip
Adds per-user-quotas support for more detailed quotas management
Implements blueprint per-user-quotas. Based on the original quotas structure. NOTE: quota_instances, quota_cores, quota_ram, quota_volumes, quota_gigabytes, quota_key_pairs and quota_security_groups are supported per user. Allow 'projectadmin' role to access the user quota setting methods. Add commands 'nova-manage quota project/user' for quotas management. Change-Id: I07a39499432571fedd819c53ae414240cefc3354
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py
index e4e738e85..9c579322b 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -721,6 +721,11 @@ class QuotaResourceUnknown(QuotaNotFound):
message = _("Unknown quota resources %(unknown)s.")
+class UserQuotaNotFound(QuotaNotFound):
+ message = _("Quota for user %(user_id)s in project %(project_id)s "
+ "could not be found.")
+
+
class ProjectQuotaNotFound(QuotaNotFound):
message = _("Quota for project %(project_id)s could not be found.")