From 391f345dfff174108e330de1ed4c7ed18f8ff923 Mon Sep 17 00:00:00 2001 From: Kylin CG Date: Mon, 4 Jun 2012 22:21:41 +0800 Subject: 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 --- nova/exception.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nova/exception.py') 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.") -- cgit