diff --git a/nova/quota.py b/nova/quota.py index 615b4142c..96eb54448 100644 --- a/nova/quota.py +++ b/nova/quota.py @@ -222,6 +222,11 @@ class DbQuotaDriver(object): """ user_quotas = db.quota_get_all_by_project_and_user(context, project_id, user_id) + # Use the project quota for default user quota. + proj_quotas = db.quota_get_all_by_project(context, project_id) + for key, value in proj_quotas.iteritems(): + if key not in user_quotas.keys(): + user_quotas[key] = value user_usages = None if usages: user_usages = db.quota_usage_get_all_by_project_and_user(context,